Friday, July 15, 2016

How to Create Android Update Zip Package

Create Android Update Zip Package

              To install a system app or set the permission of a system file or folder or to place a system library under system/lib folder on a nonrooted device, we need to prepare update_pacakge and install from recovery.

To prepare update_package download the sample Create_Update_Pacakge.zip and make the corresponding script changes under update_package\META-INF\com\google\android\updater-script . Place the files you need to copy to the device under update_package\system and make corresponding script changes.

Zip all the folder under update_ package using the below command
zip -r ../update.zip *

Sign the package using the below command

java -jar ./signing_keys/signapk.jar -w ./signing_keys/package.x509.pem ./signing_keys/package.pk8 update.zip update-signed.zip

Flash the signed update package from recovery on the device.

Suppose you want to sign the package from the different key, then you can download from below GIT location
Download keys from
https://github.com/android/platform_build/tree/master/target/product/security

Download Sample


Share:

Popular Posts

Contact Form

Name

Email *

Message *

Pages