how to enable adb wireless debug
To enable ADB wireless debugging, follow these steps:
- Connect your Android device to your computer using a USB cable.
- Open a command prompt or terminal window on your computer.
- Navigate to the directory where the Android Debug Bridge (ADB) is installed. This is usually located in the "platform-tools" folder of your Android SDK installation directory.
- Run the following command to start the ADB daemon:
adb start-server - Run the command
adb devicesto ensure that your device is recognized by ADB. You should see your device's serial number listed. - Run the command
adb tcpip 5555to enable wireless debugging on your device. This will open a network port on your device for ADB communication. - Disconnect your device from the computer.
At this point, your device should be ready for wireless debugging. Here's how to connect to it wirelessly:
- Ensure that your Android device and computer are connected to the same Wi-Fi network.
- Find the IP address of your device. You can usually find this information in the device's settings under "About phone" or "About device".
- Open a command prompt or terminal window on your computer.
- Run the command
adb connect <device-ip-address>:5555, replacing<device-ip-address>with the IP address of your device. - If everything is successful, you should see a message indicating that the connection was successful.
- Run the command
adb devicesto verify that your device is connected wirelessly. The device's serial number should be listed with "device" status.
You can now use ADB commands wirelessly to debug your Android device. Note that the wireless connection may not be as stable as a USB connection, so keep this in mind when using wireless debugging
原文地址: http://www.cveoy.top/t/topic/iRwU 著作权归作者所有。请勿转载和采集!