工作需要更改Android的分区大小,分区大小改变后,升级会报错,自定义升级包解决报错问题
1. Extra OTA.zip //解压OTA包
2. replace the scatter.txt //替换解压出来的scatter.txt
3. Place the apk to /system //把自己需要放到OTA中的apk放到 /system 下
4. zip -0 -r update.zip ./* //再将OTA包压缩
5. sign the ota package with testkey. //给OTA签名
java -jar out/host/linux-x86/framework/signapk.jar -w build/target/product/security/testkey.x509.pem build/target/product/security/testkey.pk8 update.zip update_sign.zip
SignApk.java: ******************Modified by Vic Siu********************
Key file: testkey.pk8