android 升级包制作
1 制作升级kernel,system ,userdata的升级包
FILE目录为out/target/product/generic
mkdir -p update/file/fs
cp ../out/host/linux-x86/framework/signapk.jar ./update/
cp ../build/target/product/security/testkey.x509.pem ./update/
cp ../build/target/product/security/testkey.pk8 ./update/
cp -rf $FILE/root/* ./update/file/fs/
cp -rf $FILE/system ./update/file/fs/
cp -rf $FILE/data ./update/file/
rm -rf ./update/file/fs/sys
rm -rf ./update/file/fs/data
rm -rf ./update/file/fs/proc
rm -rf ./update/file/fs/dev
cp -rf $FILE/system/bin/updater ./META-INF/com/google/android/update-binary
cp -rf ./META-INF ./update/file/
chmod -R 777 ./update
#for system data and kernel
cd ./update/file/
zip -ry sor_update.zip META-INF/ fs/ data/ uImage
cp sor_update.zip ../
cd ../
echo "please wait ..........."
java -jar signapk.jar -w testkey.x509.pem testkey.pk8 sor_update.zip update.zip
做个记录。
更多相关文章
- android使用文件进行存储
- android log日志工具的使用
- 关于Android(安卓)LCD和键盘背光亮度 .
- android添加新驱动
- Android缓存理解
- Android(安卓)Studio删除缓存的依赖库
- Android下编译自己的库文件jar并在应用中调用
- Android开发资源下载目录
- 在Android中调用动态库文件(*.so)