Chapt 5. Android 12 TV system instructions
5.5.1. Use network connection adb debugging
Using the network adb does not require a USB Type C interface data cable to connect the computer and the development board, but to communicate through the network, so first make sure that the wired or wireless network of the development board has been connected, and then obtain the IP address of the development board, and then to use.
1) Make sure that the service.adb.tcp.port of the Android system is set to port number 5555
apollo-p2:/ # 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 in the serial port
apollo-p2:/ # setprop service.adb.tcp.port 5555
apollo-p2:/ # stop adbd
apollo-p2:/ # start adbd
3) Install adb tool on Ubuntu PC
test@test:~$ sudo apt-get update
test@test:~$ sudo apt-get install -y adb
4) Then connect network adb on Ubuntu PC
test@test:~$ adb connect 192.168.1.xxx:5555
address of the development board)
* daemon not running; starting now at tcp:5037
* daemon started successfully
connected to 192.168.1.xxx:5555
(It needs to be modified to the IP
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
apollo-p2:/ #