adb wait-for-device
adb push update.zip /sdcard/ota/update.zip
adb shell rm /sdcard/update.zip
adb shell cp /sdcard/ota/update.zip /data/media/0/update.zip
adb shell "echo \"/data/media/0/update.zip\" >> /cache/recovery/uncrypt_file "
adb shell "echo \"--update_package=@/cache/recovery/block.map\" >> /cache/recovery/command"
adb shell sync
adb shell /system/bin/uncrypt //about 7mins
TIMEOUT /T 600 /NOBREAK // 10 min
adb shell cat /cache/recovery/uncrypt_status >= 100 /// while
adb shell sync
TIMEOUT /T 60 /NOBREAK
adb reboot recovery
配合fastboot命令,可进行完整包和差分包 在内置/外置SD 和线刷版本的同时自动压力测试。
it is a good idea !
refer :
http://blog.csdn.net/miaotao/article/details/45129423
http://blog.csdn.net/miaotao/article/details/50174881