Sitelet https://github.com/PowerX-NOT/Signing_Builds
Skip to content

About

Sign builds with private keys

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Signing_Builds

  1. Export your infos (replace with your infos)
C: Country shortform
ST: Country longform
L: Location
O, OU, CN: Your Name
emailAddress: Your email
  1. 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.

  1. Now, copy build.sh to your ROM source directory and replace rom build cmd accordingly with your ROM build command
chmod +x ./build.sh
./build.sh

NOTE

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.

References and Credits

About

Sign builds with private keys

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages