-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b782145
commit d100846
Showing
3 changed files
with
65 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
@echo off | ||
mode con: cols=70 lines=20 | ||
|
||
:start | ||
cls | ||
title Quest KeepAlive | ||
echo ========================================== | ||
echo [7mMake sure your quest is plugged in![0m | ||
echo ========================================== | ||
|
||
cmdMenuSel f870 "Enable Keep Alive" "Disable Keep Alive" "==Exit==" | ||
|
||
if "%errorlevel%"=="1" ( | ||
cls | ||
echo Enabling... | ||
adb shell am broadcast -a com.oculus.vrpowermanager.prox_close | ||
adb shell svc power stayon true | ||
start keepaliveReplay.bat | ||
if "%errorlevel%"=="1" goto error | ||
echo Enabled! | ||
pause | ||
goto start | ||
) | ||
|
||
if "%errorlevel%"=="2" ( | ||
cls | ||
echo Disabling... | ||
shell am broadcast -a com.oculus.vrpowermanager.automation_disable | ||
adb shell svc power stayon false | ||
if "%errorlevel%"=="2" goto error | ||
echo Disabled! | ||
pause | ||
goto start | ||
) | ||
|
||
if "%errorlevel%"=="3" exit | ||
|
||
:error | ||
cls | ||
echo [7mYou have either more than 1 or no Android devices connected! | ||
echo Please disconnect any other devices or connect your Quest.[0m | ||
pause | ||
goto start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters