打开主菜单

Wiki-Orange Pi β

更改

Orange Pi 5 detail

添加66字节, 2023年4月20日 (四) 16:14
使用网络连接 adb 调试
[service.adb.tcp.port]: [5555]
|}
2) 如果 '''service.adb.tcp.port ''' 没有设置,可以使用下面的命令设置网络 adb 的端口号<br>
{| class="wikitable" style="width:800px;"
|-
|console:/ # '''setprop service.adb.tcp.port 5555'''<br>console:/ # '''stop adbd'''<br>console:/ # '''start adbd'''
|}
3) 在 Ubuntu PC 上安装 adb 工具<br>
{| class="wikitable" style="width:800px;"
|-
|test@test:~$ '''sudo apt update'''<br>test@test:~$ '''sudo apt install -y adb'''
|}
4) 然后在 Ubuntu PC 上连接网络 adb<br>
{| class="wikitable" style="width:800px;"
|-
|test@test:~$ '''adb connect 192.168.1.xxx ''' ('''IP ''' 地址需要修改为开发板的 '''IP ''' 地址)<br>
daemon not running; starting now at tcp:5037<br>
daemon started successfully <br>
connected to 192.168.1.xxx:5555<br><br><br>
test@test:~$ '''adb devices'''<br>
List of devices attached <br>
192.168.1.xxx:5555 device
{| class="wikitable" style="width:800px;"
|-
|test@test:~$ '''adb shell'''<br>
console:/ #
|}
8,460
个编辑