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


做个记录。


更多相关文章

  1. android使用文件进行存储
  2. android log日志工具的使用
  3. 关于Android(安卓)LCD和键盘背光亮度 .
  4. android添加新驱动
  5. Android缓存理解
  6. Android(安卓)Studio删除缓存的依赖库
  7. Android下编译自己的库文件jar并在应用中调用
  8. Android开发资源下载目录
  9. 在Android中调用动态库文件(*.so)

随机推荐

  1. Android强制竖屏
  2. Android(安卓)Stduio 3.0进行JNI和NDK开
  3. Android开发_多线程详解(九)
  4. android中获取设备的型号和手机厂商
  5. Android(安卓)UI设计 ViewPager 中嵌套Ho
  6. Android实现倒计时跳转Activity
  7. android:EditText控件imeOptions属性
  8. ionic android打包
  9. 收到短信了,我该做点什么?
  10. Android地图尝试之两行代码调用高德地图