Thursday, April 11, 2013

How to Sign Your Own Android ROM



1. Download Auto-sign from the Media Fire website that helps you sign an Android ROM. Click on the 'Download' button and save the file on your hard drive.

2. Right-click on the 'Auto-sign.zip' archive and select 'Extract All' from the resulting menu. Select the desktop in the file browser and click on the 'Extract' button. A folder named 'Auto-sign' is created on your desktop.

3. Download OpenSSL for your Windows operating system from the Open SSL website. Click on 'Source' in the navigation menu. Click on the 'openssl-1.0.0e.tar.gz' link and save the archive on your hard drive.

4. Right-click on the 'openssl-1.0.0e.tar.gz' archive and select 'Extract All' from the resulting menu. Select the 'Auto-sign' folder and click on the 'Extract' button.

5. Copy the Android ROM ZIP file to the 'Auto-sign' folder. Go to the 'Start' menu and type 'cmd' in the Run box. Press 'Enter' to start the Command Prompt tool.

6. Type 'cd desktop\Auto-sign' in the Command Prompt and press 'Enter' to run the command and point the Command Prompt to the 'Auto-sign' folder.

7. Run these commands in the Command Prompt to generate some private keys and sign the Android ROM file:openssl genrsa -out key.pem 1024

openssl req -new -key key.pem -out request.pem

openssl x509 -req -days 9999 -in request.pem -signkey key.pem -out certificate.pem

openssl pkcs8 -topk8 -outform DER -in key.pem -inform PEM -out key.pk8 -nocrypt

java -jar signapk.jar certificate.pem key.pk8 Your_Application.zip Signed_Application.zipReplace 'Your_Application' with the exact name of your ZIP file. Replace 'Signed_Application' with the name you want your signed ROM to have. A new ZIP file will be created containing the signed ROM you can upload to the Android device.

No comments:

Post a Comment