(1)编译软件,再编ota make otapackage
(2)拷贝两个版本target包
./build/tools/releasetools/ota_from_target_files -s ./device/mediatek/build/releasetools/mt_ota_from_target_files --block -k ./device/mediatek/common/security/mt6580/releasekey -i V2604AN_6.0_QMB_PK_31_TARGET.zip V2604AN_6.0_QMB_PK_32_TARGET.zip update2604_31_32.zip
注:如果是展讯的项目命令换成:
./build/tools/releasetools/ota_from_target_files --block -i
如果是降级包的话:
./build/tools/releasetools/ota_from_target_files --downgrade --block -i
(3)adb reboot recovery,进入工厂模式,选择更新
———-加密———–
(1)md5sum -b update.zip
(2)echo ecb1945afe1d732a0dc93f76a8564630 >md5sum
(3)zip -r0 package31_32.zip update.zip md5sum
(4)zip -r0 package.zip(这个是你生成的新包) update.zip(这个是你之前做的包名) md5sum