Android closes the data connection and opens the data connection. OTA automatic upgrade test

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
network control and processing.
svc data disable
svc data enable 

findstr /s /i "backup" *.* 

ping -n 100000 -l 65500 192.168.1.2

1. Copy the version file to the device C:\Users\admin\update>adb push build.prop /system
2. Close the data connection svc data disable adb shell svc data disable
Open the data connection after 3.3 seconds svc data enable adb shell svc data enable
After 4.10 seconds, start to stop xxx app, ping -n 10 127.0.0.1 stop twice to prevent unsuccessful stop 
adb shell am force-stop com.xxx.car.device 
adb shell am force-stop com.xxx.car.device
After 5.2 seconds, ping -n 2 127.0.0.1 starts to start xxx app 
adb shell am start -n com.xxx.car.device/.liming.Main2Activity

//Save the log, save the log according to the current time, take the current time, and save the time as the log

6. Network push upgrade
7. General upgrade interval of 30 seconds
8. View the current version number 

Guess you like

Origin blog.csdn.net/u010689853/article/details/112908257