You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.en.md
+38-33
Original file line number
Diff line number
Diff line change
@@ -110,39 +110,7 @@ USB connection normal use adb by the need to ensure that:
110
110
111
111
Description Connection successful.
112
112
113
-
#### Wireless connection (Android11+)
114
-
115
-
[Doc in Android developers](https://developer.android.com/studio/command-line/adb#connect-to-a-device-over-wi-fi-android-11+)
116
-
117
-
Android 11 and higher support deploying and debugging your app wirelessly from your workstation using Android Debug Bridge (adb). For example, you can deploy your debuggable app to multiple remote devices without physically connecting your device via USB. This eliminates the need to deal with common USB connection issues, such as driver installation.
118
-
119
-
To use wireless debugging, you need to pair your device to your workstation using a pairing code. Your workstation and device must be connected to the same wireless network. To connect to your device, follow these steps:
120
-
121
-
1. Update to the latest version of the [SDK Platform-Tools](https://developer.android.com/studio/releases/platform-tools).
122
-
123
-
2. Connect Android device to run adb computer connected to the same local area network, such as connected to the same WiFi.
124
-
125
-
3. Enable the **Wireless debugging** option.
126
-
127
-
4. On the dialog that asks **Allow wireless debugging on this network?**, click **Allow**.
128
-
129
-
5. Select **Pair device with pairing code**. Take note of the pairing code, IP address, and port number displayed on the device.
130
-
131
-
6. On your workstation, open a terminal and navigate to `android_sdk/platform-tools`.
132
-
133
-
7. Run `adb pair ipaddr:port`. Use the IP address and port number from step 5.
134
-
135
-
8. When prompted, enter the pairing code that you received in step 5. A message indicates that your device has been successfully paired.
136
-
137
-
```sh
138
-
none
139
-
Enter pairing code: xxxxxx
140
-
Successfully paired to ...
141
-
```
142
-
143
-
9. (For Linux or Microsoft Windows only) Run `adb connect ipaddr:port`. Use the IP address and port under **Wireless debugging**.
144
-
145
-
#### Wireless connection (need to use the USB cable)
113
+
#### Wireless connection (first time need to use the USB cable)
146
114
147
115
In addition to the USB connection to the computer to use adb, can also be a wireless connection - although the connection process is also step using USB needs, but after a successful connection to your device can get rid of the limit of the USB cable within a certain range it !
148
116
@@ -192,10 +160,47 @@ If you can not connect, verify that Android devices and the computer is connecte
192
160
193
161
If that does not work, by `adb kill-server` restart the adb and then try it all over again.
194
162
163
+
<details>
164
+
<summary>Hidden</summary>
165
+
166
+
#### Wireless connection (Android11+)
167
+
168
+
[Doc in Android developers](https://developer.android.com/studio/command-line/adb#connect-to-a-device-over-wi-fi-android-11+)
169
+
170
+
Android 11 and higher support deploying and debugging your app wirelessly from your workstation using Android Debug Bridge (adb). For example, you can deploy your debuggable app to multiple remote devices without physically connecting your device via USB. This eliminates the need to deal with common USB connection issues, such as driver installation.
171
+
172
+
To use wireless debugging, you need to pair your device to your workstation using a pairing code. Your workstation and device must be connected to the same wireless network. To connect to your device, follow these steps:
173
+
174
+
1. Update to the latest version of the [SDK Platform-Tools](https://developer.android.com/studio/releases/platform-tools).
175
+
176
+
2. Connect Android device to run adb computer connected to the same local area network, such as connected to the same WiFi.
177
+
178
+
3. Enable the **Wireless debugging** option.
179
+
180
+
4. On the dialog that asks **Allow wireless debugging on this network?**, click **Allow**.
181
+
182
+
5. Select **Pair device with pairing code**. Take note of the pairing code, IP address, and port number displayed on the device.
183
+
184
+
6. On your workstation, open a terminal and navigate to `android_sdk/platform-tools`.
185
+
186
+
7. Run `adb pair ipaddr:port`. Use the IP address and port number from step 5.
187
+
188
+
8. When prompted, enter the pairing code that you received in step 5. A message indicates that your device has been successfully paired.
189
+
190
+
```sh
191
+
none
192
+
Enter pairing code: xxxxxx
193
+
Successfully paired to ...
194
+
```
195
+
196
+
9. (For Linux or Microsoft Windows only) Run `adb connect ipaddr:port`. Use the IP address and port under **Wireless debugging**.
197
+
195
198
#### Wireless connection (without using the USB cable)
196
199
197
200
**Need root privileges**, not detailed here, see more [click here](https://github.com/mzlogin/awesome-adb/blob/master/README.en.md#wireless-connection-without-using-the-usb-cable)。
0 commit comments