android 关闭数据连接打开开数据连接。OTA自动升级测试

am force-stop  com.xxx.car.device
adb shell am force-stop  com.xxx.car.device
am start -n com.xxx.car.device/.liming.Main2Activity
网络的控制与处理。
svc data disable
svc data enable 

findstr /s /i "backup" *.* 

ping -n 100000 -l 65500 192.168.1.2

1.拷贝版本文件到 设备  C:\Users\admin\update>adb push build.prop /system
2.关闭数据连接 svc data disable    adb shell svc data disable
3.3秒后打开数据连接 svc data enable  adb shell svc data enable
4.10秒后,开始停止xxx app ,ping -n 10 127.0.0.1   停止两次,防止停止不成功 
adb shell am force-stop  com.xxx.car.device 
adb shell am force-stop  com.xxx.car.device
5.2秒后, ping -n 2 127.0.0.1  开始启动xxx app 
adb shell am start -n com.xxx.car.device/.liming.Main2Activity

//保存log,根据当前的时间,保存log,取当前的时间,保存成log的时间

6.网络推送升级
7.一般间隔 时间 升级 30 秒
8.查看当前的版本号 

猜你喜欢

转载自blog.csdn.net/u010689853/article/details/112908257
今日推荐