Skip to content

Commit 7640c7b

Browse files
update android instructions
1 parent 2d7320a commit 7640c7b

File tree

2 files changed

+37
-5
lines changed

2 files changed

+37
-5
lines changed

README.md

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ The OpenXR VR mode renders a spinning triangle, infinite grid, and procedural sk
8686
```
8787
This installs the Android Rust toolchains and xbuild.
8888

89-
2. Connect your Android device via USB and enable USB debugging, or start an Android emulator.
89+
2. Connect your Android device via USB and enable USB debugging, or connect wirelessly (see below).
9090

9191
3. Find your device ID:
9292
```bash
@@ -104,6 +104,34 @@ The OpenXR VR mode renders a spinning triangle, infinite grid, and procedural sk
104104
```
105105
Example: `just run-android RFCY61DZZKT`
106106

107+
### Wireless Debugging Setup
108+
109+
To connect to your Android device wirelessly:
110+
111+
1. On your Android device, go to **Settings > About phone** and tap **Build number** 7 times to enable Developer options.
112+
113+
2. If your device has an auto-blocker setting (common on Samsung devices), disable it in **Settings > Security > Auto Blocker**.
114+
115+
3. Go to **Settings > Developer options** and enable **Wireless debugging**.
116+
117+
4. Tap on **Wireless debugging**, then tap **Pair device with pairing code**. Note the IP address and port shown (e.g., `192.168.1.100:37000`).
118+
119+
5. On your computer, pair with the device:
120+
```bash
121+
just pair-android 192.168.1.100:37000
122+
```
123+
Enter the pairing code when prompted.
124+
125+
6. List devices to get the device ID:
126+
```bash
127+
just list-android
128+
```
129+
130+
7. Run the app:
131+
```bash
132+
just run-android DEVICE_ID
133+
```
134+
107135
### Additional Android Commands
108136

109137
```bash
@@ -117,7 +145,7 @@ just build-android-all
117145
just install-android DEVICE_ID
118146

119147
# Connect to device over wireless ADB
120-
just connect-android 192.168.1.100
148+
just connect-android 192.168.1.100:5555
121149

122150
# List all connected devices
123151
just list-android

justfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,13 @@ init-android:
6969
rustup target add x86_64-linux-android
7070
cargo install --locked xbuild
7171

72-
# Connect to Android device via wireless ADB (provide IP and port)
73-
connect-android ip port="5555":
74-
adb connect {{ip}}:{{port}}
72+
# Pair with Android device for wireless debugging (provide IP:port from pairing screen)
73+
pair-android address:
74+
adb pair {{address}}
75+
76+
# Connect to Android device via wireless ADB (provide IP:port)
77+
connect-android address:
78+
adb connect {{address}}
7579

7680
# List connected Android devices
7781
list-android:

0 commit comments

Comments
 (0)