- Export your infos (replace with your infos)
C: Country shortform
ST: Country longform
L: Location
O, OU, CN: Your Name
emailAddress: Your email
- Then, run these commands
chmod +x ./setup.sh
./setup.sh
This will automatically generate and set up the RSA private key.
No need to regenerate RSA private keys and never leak them. You can use the same keys to sign newer builds. Otherwise, a data format will be required if you use new or regenerated keys. And leakage of these keys can compromise the security and authenticity of your builds.
- Now, copy
build.shto your ROM source directory and replace rom build cmd accordingly with your ROM build command
chmod +x ./build.sh
./build.sh
While Signing target files apks you may encounter the error OSError: [Errno 28] No space left on device because your tmp size is low. Use tmp.sh to increase the size.
[powerxnot@nobara-pc Signing_Builds]$ chmod +x ./tmp.sh
[powerxnot@nobara-pc Signing_Builds]$ sudo ./tmp.sh
[sudo] password for powerxnot:
Enter the desired size for /tmp (e.g., 16G for 16 gigabytes):
> 20G
Backup of /etc/fstab created.
/etc/fstab entry for /tmp modified.
systemd configuration reloaded.
/tmp remounted with the new size.
Filesystem Size Used Avail Use% Mounted on
tmpfs 20G 1.4M 20G 1% /tmp
The size of /tmp has been set to 20G and remounted successfully.