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
做個記錄。