android开发板端:
启动adb
: start adbd
重设adbd端口:
#stop adbd
#setprop service.adb.tcp.port 5555
#start adbd
#ifconfig eth0
设置临时IP:
#busybox
ifconfig eth0 192.168.0.59 netmask 255.255.255.0
设置临时网关:
#busybox
route add default gw 192.168.0.1
设置临时MAC地址:
#busybox ifconfig eth0 hw ether 00:77:77:00:00:88
Windows端:
解决adb端口被占用问题:
打开命令提示符,输入:
netstat -ano | findstr "5037"
显示: TCP
127.0.0.1:5037 0.0.0.0:0 LISTENING 5776
输入:
taskkill /F /IM 5776
adb kill-server
adb disconnect 192.168.8.59
adb connect 192.168.8.59
adb devices
时间: 2024-10-30 23:01:35