34
THE OFFICIAL ORANGE PI USER'S GUIDE
Install adb tool on Ubuntu using following commands
$ sudo apt update
$ sudo apt install adb
View the identified ADB device
$ adb devices
List of devices attached
8c00141167058911ccd device
Then you can log in to the android system through adb shell on the Ubuntu PC
$ adb shell
cupid-p2:/ #
Use network connection adb debugging
1) Using the network adb does not require a USB Typc C interface data cable to
connect the computer and the development board, but communicates through the
network, so first make sure that the wired or wireless network of the development
board is connected, and then obtain the IP address of the development board , To be
used later
2) Make sure that the USB debugging option is turned on
3) Make sure that the service.adb.tcp.port of the Android system is set to port
number 5555
cupid-p2:/ # getprop | grep "adb.tcp"
[service.adb.tcp.port]: [5555]
4) If service.adb.tcp.port is not set, you can use the following command to set the
port number of the network adb
cupid-p2:/ # setprop service.adb.tcp.port 5555
cupid-p2:/ # stop adbd
cupid-p2:/ # start adbd