[Android] wifi debug
Connect to a device over Wi-Fi (Android 10 and lower)
- Connect your Android device and
adbhost computer to a common Wi-Fi network. - Connect the device to the host computer with a USB cable.
- Set the target device to listen for a TCP/IP connection on port 5555:
- Disconnect the USB cable from the target device.
- Find the IP address of the Android device. For example, on a Nexus device, you can find the IP address at Settings > About tablet (or About phone) > Status > IP address.
- Connect to the device by its IP address:
- Confirm that your host computer is connected to the target device:
Note: Beware that not all access points are suitable. You might need to use an access point whose firewall is configured properly to support adb.
Your device is now connected to adb.
If the adb connection to your device is lost:
- Make sure that your host is still connected to the same Wi-Fi network as your Android device.
- Reconnect by executing the
adb connectstep again. - If that doesn't work, reset your
adbhost:Then start over from the beginning.
留言
張貼留言