range Pi User Manual Copyright reserved by Shenzhen Xunlong Software Co., Ltd
353
1) Make sure that the service.adb.tcp.port of the Android system is set to port number
5555
console:/ # getprop | grep "adb.tcp"
[service.adb.tcp.port]: [5555]
2) If service.adb.tcp.port is not set, you can use the following command to set the port
number of network adb
console:/ # setprop service.adb.tcp.port 5555
console:/ # stop adbd
console:/ # start adbd
3) Install adb tool on Ubuntu PC
test@test:~$ sudo apt update
test@test:~$ sudo apt install -y adb
4) Then connect to the network adb on the Ubuntu PC
test@test:~$ adb connect 192.168.1.xxx (IP 地址需要修改为开发板的 IP 地址)
* daemon not running; starting now at tcp:5037
* daemon started successfully
connected to 192.168.1.xxx:5555
test@test:~$ adb devices
List of devices attached
192.168.1.xxx:5555 device
5) Then you can log in to the android system through the adb shell on the Ubuntu PC
test@test:~$ adb shell
console:/ #