制作android 升级包

来源:互联网 发布:串口调试助手发送数据 编辑:程序博客网 时间:2024/04/28 05:06
参考:
http://blog.csdn.net/wuxy_shenzhen/article/details/7613718
http://www.blogjava.net/MEYE/articles/357111.html
http://blog.csdn.net/imyfriend/article/details/8564969
http://www.diypda.com/thread-325134-1-1.html


1、在android_src 路径下 make otapackge得到升级包。
编译过程中,出错:
acp: file 'out/target/product/nuclear-jiuhui/bootloader' does not exist
acp: file 'out/target/product/nuclear-jiuhui/bootloader.fex' does not exist
acp: file 'out/target/product/nuclear-jiuhui/env.fex' does not exist
make: *** [out/target/product/nuclear-
jiuhui/obj/PACKAGING/target_files_intermediates/nuclear_jiuhui-
target_files-20130829.zip] Error 1


解决办法:在lichee 中搜索分别找到
./tools/pack/out/bootloader.fex
./tools/pack/out/env.fex
拷贝到out/target/product/nuclear-jiuhui/下
bootloader 始终无法找到,随便找个一个文件改为bootloader,生成zip包。
2、mrdir update ,将生产的zip解压到update目录下。
除了META-INF文件夹,其它全部删除。新创建一个system目录,需要覆盖的内容放入
system下。 (不通过make otapackage获取META-INF文件夹,自己创建不知道是否可行,没试)
3、修改update/META-INF/com/google/android/update-script
show_progress(0.1, 5);
mount("ext4", "EMMC", "/dev/block/nandd", "/system");
package_extract_dir("system", "/system");
unmount("/system");
ui_print("extract kotidata success...");
show_progress(1, 10);
4、
/out/host/linux-x86/framework/signapk.jar 
/build/target/product/security/testkey.x509.pem  
/build/target/product/security/testkey.pk8
拷贝到update路径下
5、在update/目录下运行:
zip -qry ./update.unsigned.zip ./