主页
开发板系列
键盘电脑
平板电脑
开源手机
开源游戏机
Orange Pi OS
通用问题
开发板常见问题
英文网站
中文网站
英文论坛
中文论坛
打开主菜单
Wiki-Orange Pi
β
搜索
查看“使用网络连接 adb 调试”的源代码
←
使用网络连接 adb 调试
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |- | <br><big>'''使用网络 adb 无需 USB Typc C 接口的数据线来连接电脑和开发板,而是通过网络来通信,所以首先请确保开发板的有线或者无线网络已经连接好了,然后获取开发板的 IP 地址,后面要用到。'''</big><br><br> |} 1) 确保 Android 系统的 '''service.adb.tcp.port''' 设置为 5555 端口号<br> {| class="wikitable" style="width:800px;" |- | console:/ # '''getprop | grep "adb.tcp"'''<br> [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 |} 5) 然后在 Ubuntu PC 上通过 adb shell 就可以登录到 android 系统了<br> {| class="wikitable" style="width:800px;" |- |test@test:~$ '''adb shell'''<br> console:/ # |}
返回至
使用网络连接 adb 调试
。