由于N版本data分区加密,则需要进行如下操作
- 在normal mode先把升级包(update.zip) push 到data分区目,比如
/data/update.zip.
adb push -p update.zip /data/update.zip //-p显示进度百分比
- adb shell 下执行:system/bin/uncrypt /data/update.zip
/cache/recovery/block.map
adb shell uncrypt /data/update.zip /cache/recovery/block.map
注意:要等待一段时间,直到命令执行退出…,然后在执行如下命令;
- adb shell 下执行:echo “–update_package=@/cache/recovery/block.map” >
/cache/recovery/command
adb shell "echo \"--update_package=@/cache/recovery/block.map\" > /cache/recovery/command"
adb reboot recovery