1、adb wifi连接安卓设备
(1)设备端执行以下命令
adb tcpip 5555
(2)查看设备IP
adb shell ifconfig wlan0
(3)PC端执行
例如:adb connect 192.168.1.1:5555
2、adb验证ota升级
adb root
adb push update.zip data
adb shell "echo \"--update_package=/data/update.zip\" > /cache/recovery/command"
adb reboot recovery
update.zip 是2个固件版本之间的差分包,升级成功之后,版本号会发生改变,可以用如下命令查看
adb shell getprop ro.build.display.id
或者
adb shell getprop | grep version