My Profile Photo


Android developer—among other things

Signing an Android app for a custom Android build

If you want to sign your apps for a custom Android build, first find the keys you used to sign the build. They can be usually found in,

<source directory>/build/target/product/security/

You will see a bunch of keys in the folder. Find the platform `pem` and `pk8` files and sign the app with the following command,

java -jar <source dir>/prebuilts/sdk/tools/lib/signapk.jar <source dir>/build/target/product/security/platform.x509.pem <source dir>/build/target/product/security/platform.pk8 your-app.apk your-app-signed.apk