A script to set up a signing environment for Android builds by generating the necessary keys.
This script works only with password-less keys. Do not set a password as this method requires password-less keys for inline building.
- Run the script in your root build directory:
bash <(curl -s https://raw.githubusercontent.com/Envoy-Z-Lab/Signing-Script/main/keygen.sh)
-
Provide the certificate details when prompted and confirm.
-
Press Enter to set no password for each certificate. You cannot use a password with this method!
In your device.mk
or common.mk
file in the device tree, add:
# Signing keys
$(call inherit-product, vendor/extra/product.mk)
Then build as usual.