An app that enables wireless ADB from within a Quest 2/Quest Pro VR headset.
This is done through the Android global settings provider (requires manually granting WRITE_SECURE_SETTINGS
).
Since the TCP port is random each time, parsing is done on logcat output (READ_LOGS
permission required) in order to display it within the app.
adb install app-debug.apk
adb shell pm grant tdg.oculuswirelessadb android.permission.WRITE_SECURE_SETTINGS
adb shell pm grant tdg.oculuswirelessadb android.permission.READ_LOGS
After ADB wireless is enabled, a script can be used to automatically discover and connect to it with the help of the mDNS protocol.