8,367
edits
Changes
→Use network connection adb debugging
=== Use network connection adb debugging ===
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
|
<big>'''注意,这里说的Linux镜像具体指的是从Orange Pi资料下载页面下载的Debian或者Ubuntu这样的Linux发行版镜像。'''</big>
|}
'''Using the network adb does not require a 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 is connected, and then obtain the IP address of the development board, which will be used later.'''
# Make sure that the '''service.adb.tcp.port''' of the Android system is set to port number 5555
::{| class="wikitable" style="width:800px;"
|-
|
console:/ # '''getprop | grep "adb.tcp"'''
[service.adb.tcp.port]: ['''5555''']
|}
<ol start="2" style="list-style-type: decimal;">
<li>If '''service.adb.tcp.port''' is not set, you can use the following command to set the port number of network adb</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
console:/ # '''setprop service.adb.tcp.port 5555'''
console:/ # '''start adbd'''
|}</ol>
<ol start="3" style="list-style-type: decimal;">
<li>Install adb tool on Ubuntu PC</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
test@test:~$ '''sudo apt update'''
test@test:~$ '''sudo apt install -y adb'''
|}</ol>
<ol start="4" style="list-style-type: decimal;">
<li>Then connect network adb on Ubuntu PC</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
test@test:~$ '''adb connect 192.168.1.xxx''' '''(The IP address needs to be changed to the IP address of the development board)'''
connected to 192.168.1.xxx:5555
test@test:~$ '''adb devices'''
192.168.1.xxx:5555 device
|}</ol>
<ol start="5" style="list-style-type: decimal;">
<li>Then you can log in to the android system through the adb shell on the Ubuntu PC</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
test@test:~$ '''adb shell'''
console:/ #
|}</ol>
<span id="appendix"></span>