Skip to content

Commit

Permalink
more keepalive options
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchv2020 committed Dec 28, 2021
1 parent b782145 commit d100846
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 13 deletions.
33 changes: 21 additions & 12 deletions QuestToolbox.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
:: Developed By:
:: mitchv2020 and lordnikon

set version=v1.4.7
set version=v1.4.8

:::::::::::::::::::::
:::: FILE CHECKS ::::
Expand Down Expand Up @@ -107,21 +107,22 @@ echo Which would you like to do?
echo ==========================================

:: Options
cmdMenuSel f870 "Change Recording Res/FPS" "Stream Quest screen to PC" "Sideload an APK File" "Uninstall an App" "Enable Wired ALVR" "Change Refresh Rate" "Replay Tools" "Change Quest Resolution" "Update QuestToolbox" "ADB Options" "==========================================" "Developer Credits" "Special Thanks" "Help"
cmdMenuSel f870 "Change Recording Res/FPS" "Stream Quest screen to PC" "Sideload an APK File" "Uninstall an App" "Keep Alive" "Enable Wired ALVR" "Change Refresh Rate" "Replay Tools" "Change Quest Resolution" "Update QuestToolbox" "ADB Options" "==========================================" "Developer Credits" "Special Thanks" "Help"
if "%errorlevel%"=="1" goto capture
if "%errorlevel%"=="2" goto mirrorScreen
if "%errorlevel%"=="3" goto sideloadPrompt
if "%errorlevel%"=="4" goto uninstallAPKPrompt
if "%errorlevel%"=="5" goto wiredALVR
if "%errorlevel%"=="6" goto refreshrate
if "%errorlevel%"=="7" goto replayTools
if "%errorlevel%"=="8" goto changeResPrompt
if "%errorlevel%"=="9" goto update
if "%errorlevel%"=="10" goto adbmenu
if "%errorlevel%"=="11" goto MainMenu
if "%errorlevel%"=="12" goto devcredits
if "%errorlevel%"=="13" goto specialThanks
if "%errorlevel%"=="14" goto Support
if "%errorlevel%"=="5" goto startkeepAlive
if "%errorlevel%"=="6" goto wiredALVR
if "%errorlevel%"=="7" goto refreshrate
if "%errorlevel%"=="8" goto replayTools
if "%errorlevel%"=="9" goto changeResPrompt
if "%errorlevel%"=="10" goto update
if "%errorlevel%"=="11" goto adbmenu
if "%errorlevel%"=="12" goto MainMenu
if "%errorlevel%"=="13" goto devcredits
if "%errorlevel%"=="14" goto specialThanks
if "%errorlevel%"=="15" goto Support
goto MainMenu


Expand Down Expand Up @@ -509,6 +510,14 @@ goto uninstalling



:startkeepAlive
cls
echo Starting keepAlive.bat...
start keepAlive.bat
goto MainMenu



:wiredALVR
cls
echo ==========================================
Expand Down
43 changes: 43 additions & 0 deletions Requirements/keepalive.bat
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 Make sure your quest is plugged in!
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 You have either more than 1 or no Android devices connected!
echo Please disconnect any other devices or connect your Quest.
pause
goto start
2 changes: 1 addition & 1 deletion Requirements/keepaliveReplay.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
echo off
:: Sets the title and window size respectively
title KeepAlive - Replay Mod
title KeepAlive
mode con: cols=72 lines=20

:tap
Expand Down

0 comments on commit d100846

Please sign in to comment.