-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_windows.bat
More file actions
29 lines (23 loc) · 856 Bytes
/
Copy pathsetup_windows.bat
File metadata and controls
29 lines (23 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@echo off
echo === Lighthouse Manager - Setup ===
echo.
set ADB=%LOCALAPPDATA%\Android\Sdk\platform-tools\adb.exe
%ADB% devices | find "device" > nul
if errorlevel 1 (
echo ERROR: headset Not detected.
echo 1. connect the headset
echo 2. Accept USB debugging on the headset
pause
exit /b 1
)
echo [OK] Quest detected.
echo [->] Installing Lighthouse Manager...
%ADB% install -r "%~dp0app\build\outputs\apk\debug\app-debug.apk"
echo [->] Granting permissions...
%ADB% shell appops set com.quest.lighthousemanager GET_USAGE_STATS allow
%ADB% shell settings put secure enabled_accessibility_services com.quest.lighthousemanager/.LighthouseAccessibilityService
%ADB% shell settings put secure accessibility_enabled 1
echo.
echo === Setup complete! ===
echo Open the app from Library -> Unknown Sources -> Lighthouse Manager
pause