adb WiFi 连接设备并进行 OTA升级

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

猜你喜欢

转载自blog.csdn.net/weixin_44618297/article/details/131251193