• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps [How-To] Signing ROMs

UnderWhat?

Well-Known Member
Aug 5, 2009
180
34
Hello everyone!

This quick guide will teach you how to sign ROMs!

WARNING : YOU WILL NEED AT LEAST A BASE KNOWLEDGE OF HOW TO USE COMMAND PROMPT.


The knowledge of signing ROMs can prove useful to anyone! By knowing how to sign ROMs, you can modify your favorite ROM to add or delete APKs, so when you flash the ROM your favorite apps will be present! Or you can delete apps you don't use so they will not be installed when flashing the ROM!


Before starting, you need a couple of things. First you will need Java SE Development Kit and Java SE Runtime Environment . You can download them HERE.

After you have downloaded and installed both, you will need a very useful tool made by someone at XDA-Developers (if you know who it is please let me know).

Download this tool (attached) and unzip everything inside of it into one common folder. I personally unzipped everything into my Android SDK folder.


Signing
Now run the autosign.bat. You will have to go through commands 1(Set PATH variable for SDK) ,2 (Set CLASSPATH variable for signing tool) and 3 (Install registry entries). They are very easy to use and just follow the instructions. If you are asked to confirm and/or replace a file, always select yes!

Now you are finally ready to sign! There are two options to sign the .zip

1)Find the ROM (.zip) and right click and select "Resign Zip". If you use this option a command prompt box should quickly appear and disappear.

OR

2) Using the Autosign.bat, select option 4, and then write the directory and file name of the ROM. For example,

D:\Android\ROMs\YourROMHere.zip

It will hang for a bit at the part where it says "signing", and then it should say something along the lines of "Successfully completed if no errors above"

If this helped you, comment below!
 

Attachments

  • AutoSign.zip
    25.4 KB · Views: 14,312
this was made by JesusFreke

JesusFreke was kind enough to build a custom signing tool for me that would allow me to right click on an apk and resign it from there. I am posting it here for others to use as well. Note that this is a courtesy of JF, so thank him for it. I cannot stress how much time this has saved me and will save you.

sorry here is more info

I have made a batch file that will automate the entire process of setting up to use the signing tool made by JF. This batch file will set the CLASSPATH, set the PATH, install the registries, and will even allow you to sign files manually if you wish. I plan on building onto this batch file to include other things. However, for the moment, it will only include what you see here.
 
Upvote 0
first off. Thank you sooooo much for this guide!! but i still cant get it working. it kinda sucks. I dl'd the autosign.zip and then extracted all to my sdk. i didnt put it in its own folder. I think thats what you meant unless it needs its own folder? second you cant install jdk and jre side by side. Well for me any way?? Next i did make sure the registry edit worked and the path was set. but is the path supposed to be for user variables or system variables?? i have sdk setup and i def know my adb cmd's not new to that. just java stuff is kinda giving me a headache. i have the eclipse installed for app development and that seems to work fine. any input?? o im using vista 32b also.
 
Upvote 0
I hate resurrecting this old thread, but I'm having trouble.

All I'm doing, is taking a ROM I like, using 7-Zip to add a few apk to the apps folder, remove a few, and put .bak on the tail of a few I want to disable....

I then tried changing the zip name to update.zip, and ran the .bat... and it created the update_signed.zip file.... but when I try to load it with Clockwork recovery, I get the "Can't find update script" message.

I don't know what I'm doing wrong :thinking:
 
Upvote 0
Thank you so much!! Just signed (successfully, after a few attempts-user error) my first rebuild! Copying last of the files back to SD now (full wipe of everything in progress, figured best time to attempt this as well). Still remains to be seen if I screwed anything up in the process, or if the zip flashes correctly, or at all (running ILWT Rom-G2), Though I have no doubts it's signed properly! Will begin a new post with update should it NOT work or have any issues(though they'd likely be attributable to me) to seek further assistance in correcting any issues/errors. If ya don't see me soon, it all went well!
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones