Go Back   Android Forums > Android Development > Application Development > Developer 101

Developer 101 101 Tutorials



Reply
 
LinkBack (1) Thread Tools
Old September 3rd, 2009, 02:31 PM   1 links from elsewhere to this Post. Click to view. #1 (permalink)
Member
 
Join Date: Aug 2009
Posts: 181
 
Device(s):
Thanks: 0
Thanked 23 Times in 1 Post
Default [How-To] Signing ROMs

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!
Attached Files
File Type: zip AutoSign.zip (25.4 KB, 7362 views)

UnderWhat? is offline  
Last edited by UnderWhat?; September 3rd, 2009 at 02:36 PM.
Reply With Quote
The Following 23 Users Say Thank You to UnderWhat? For This Useful Post:
alberto13 (May 31st, 2010), cattleprod (January 15th, 2011), chko (August 17th, 2011), darkyy92 (October 14th, 2010), ferminx360 (May 28th, 2010), GhAeM (May 10th, 2010), haiduongbk (January 5th, 2012), jomupu (June 12th, 2010), jshealton (April 24th, 2011), khoailang2500 (September 13th, 2010), lonelysky (August 30th, 2011), masachan (May 20th, 2010), mikebills (February 8th, 2012), Miroid (January 24th, 2011), nenebear (August 16th, 2011), nickislauw (August 21st, 2010), nmt8112 (May 29th, 2010), Omegapsy (November 2nd, 2011), pesiran (September 7th, 2010), qbking77 (April 25th, 2011), ranpreetbhatia (July 19th, 2011), T2noob (May 7th, 2010), xtreme35967 (July 15th, 2010)
Sponsors
Old September 13th, 2009, 02:05 PM   #2 (permalink)
G1/Cliq Guide
 
NiNi's Avatar
 
Join Date: Sep 2009
Location: Florida
Posts: 122
 
Device(s):
Thanks: 18
Thanked 4 Times in 2 Posts
Send a message via AIM to NiNi Send a message via Yahoo to NiNi Send a message via Skype™ to NiNi bellaitaliana09
Default

this was made by JesusFreke

Quote:
Originally Posted by Stericson View Post
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

Quote:
Originally Posted by Stericson View Post
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.
NiNi is offline  
Last edited by NiNi; September 13th, 2009 at 02:08 PM.
Reply With Quote
The Following User Says Thank You to NiNi For This Useful Post:
pradomint (April 10th, 2010)
Old October 4th, 2009, 07:25 PM   #3 (permalink)
New Member
 
Join Date: Oct 2009
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
rockin_mod is offline  
Reply With Quote
Old November 8th, 2009, 06:55 PM   #4 (permalink)
New Member
 
Join Date: Nov 2009
Posts: 2
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,
does someone has a solution without using windows?
I'm looking for signing under ubuntu linux.

Many Thanks for your hints

Roman
banzro is offline  
Reply With Quote
Old November 8th, 2009, 07:18 PM   #5 (permalink)
New Member
 
Join Date: Nov 2009
Posts: 2
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Wink Found solution under Linux!

Quote:
Originally Posted by banzro View Post
Hello,
does someone has a solution without using windows?
I'm looking for signing under ubuntu linux.

Many Thanks for your hints

Roman

java -jar /opt/android/tools/tools/signapk.jar /opt/android/tools/tools/testkey.x509.pem /opt/android/tools/tools/testkey.pk8 update.zip signed-update.zip

Have a nice day
banzro is offline  
Reply With Quote
Old November 11th, 2009, 06:32 AM   #6 (permalink)
New Member
 
Join Date: Nov 2009
Posts: 12
 
Device(s):
Thanks: 1
Thanked 0 Times in 0 Posts
Default

can't open /sdcard/mojhero-2.0.5.zip (bad)
Installation aborted
7ymekk is offline  
Reply With Quote
Old December 4th, 2009, 09:51 AM   #7 (permalink)
New Member
 
Join Date: Dec 2009
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default error

I followed each one of your steps. I get an error when trying to install the signed zip. "Can't find update script" Can anyone please help me with this. thank you
dub08 is offline  
Last edited by dub08; December 4th, 2009 at 09:55 AM.
Reply With Quote
Old January 9th, 2010, 06:33 PM   #8 (permalink)
New Member
 
Join Date: Jan 2010
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by dub08 View Post
I followed each one of your steps. I get an error when trying to install the signed zip. "Can't find update script" Can anyone please help me with this. thank you

I had the same thing happen, you probably zipped the folder containing boot.img META-INF, Data and System. You need to open up the folder and zip the 4 items in there and then sign.
scepterr is offline  
Reply With Quote
Old January 11th, 2010, 08:56 AM   #9 (permalink)
New Member
 
Join Date: Jan 2010
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I create zip with files then try to sing. Open autosing.bat and make all steps and when i sing then file is missing ?
nixdorf is offline  
Reply With Quote
Old January 27th, 2010, 01:47 AM   #10 (permalink)
New Member
 
Join Date: Sep 2009
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Do you have the new key to sign to by pass the new hboot?
thanks
thihaz is offline  
Reply With Quote
Sponsors
Old April 28th, 2010, 05:02 PM   #11 (permalink)
New Member
 
Join Date: Apr 2010
Posts: 2
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by dub08 View Post
I followed each one of your steps. I get an error when trying to install the signed zip. "Can't find update script" Can anyone please help me with this. thank you
i'm having the same issue any help please.
networx2002 is offline  
Reply With Quote
Old April 28th, 2010, 09:28 PM   #12 (permalink)
New Member
 
Join Date: Apr 2010
Posts: 2
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by scepterr View Post
I had the same thing happen, you probably zipped the folder containing boot.img META-INF, Data and System. You need to open up the folder and zip the 4 items in there and then sign.
So i need to zip all the folders inside the rom
networx2002 is offline  
Reply With Quote
Old May 20th, 2010, 04:32 AM   #13 (permalink)
New Member
 
Join Date: Dec 2009
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi guys, try this out.

1.) Download it and upzip to a folder (eg, c:\auto-sign\)
2.) Copy your rom's update.zip into c:\auto-sign\ folder.
3.) Double click on the Sign.bat, it will signing the update.zip automatically.

Cheers !
Attached Files
File Type: zip Auto-sign.zip (9.8 KB, 833 views)
stringtokenizer is offline  
Reply With Quote
Old July 1st, 2010, 03:13 AM   #14 (permalink)
New Member
 
Join Date: Jul 2010
Posts: 2
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help!

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
Fulle is offline  
Reply With Quote
Old July 1st, 2010, 03:45 AM   #15 (permalink)
New Member
 
Join Date: Jul 2010
Posts: 2
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ah hell, nevermind... I figured it out. Something I was doing somehow added a duplicate folder into the file structure.... guess that's what happens when you try to do new things when you're too sleepy....
Fulle is offline  
Reply With Quote
Old October 21st, 2010, 03:32 AM   #16 (permalink)
New Member
 
Join Date: Oct 2010
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

HI
thanks
sodino is offline  
Reply With Quote
Old November 5th, 2010, 07:42 PM   #17 (permalink)
New Member
 
Join Date: Oct 2010
Posts: 3
 
Device(s):
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Well I'm glad you brought attention back to this thread lol... I used stringtokenizer's file and changed the .zip parts to .apk so I could sign and app and it said it worked but I can't get it to install on my phone... Anyone offer some help?
StuntinX is offline  
Reply With Quote
Old December 22nd, 2010, 03:33 AM   #18 (permalink)
New Member
 
Join Date: Jun 2010
Posts: 2
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

just found it today,
might be useful
[TOOL] ROM Cleaner for CWM Roms V# 0.5.1 - xda-developers
BoyPower is offline  
Reply With Quote
Old January 9th, 2011, 12:00 AM   #19 (permalink)
New Member
 
Join Date: Jan 2011
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

awsome now I'm signing Roms great
androidfreakpr is offline  
Reply With Quote
Old July 23rd, 2011, 12:14 AM   #20 (permalink)
New Member
 
Join Date: Jul 2011
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

help please
after signing update_rom
when I tried to flash it in my phone this messages appear
" E:Can't find update script "

please I need help
almudhi is offline  
Reply With Quote
Sponsors
Old August 26th, 2011, 07:17 AM   #21 (permalink)
New Member
 
Join Date: Aug 2011
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank You!!
kenhong is offline  
Reply With Quote
Old September 26th, 2011, 07:07 AM   #22 (permalink)
New Member
 
Join Date: Sep 2011
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank U
frankyangim is offline  
Reply With Quote
Old October 30th, 2011, 08:31 PM   #23 (permalink)
New Member
 
Join Date: Oct 2011
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thx finally managed 2 sing my rom under win xp
UtCollector is offline  
Reply With Quote
Old December 5th, 2011, 03:32 AM   #24 (permalink)
New Member
 
Join Date: Dec 2011
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default Thank You.

Thank You.
elka is offline  
Reply With Quote
Old February 8th, 2012, 10:28 PM   #25 (permalink)
New Member
 
Join Date: Oct 2011
Posts: 1
 
Device(s):
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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!
mikebills is offline  
Reply With Quote
Reply

Bookmarks

Tags
sign rom


Go Back   Android Forums > Android Development > Application Development > Developer 101 User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://androidforums.com/developer-101/8665-how-signing-roms.html
Posted By For Type Date
[?] How do you "sign" a .zip file? - xda-developers This thread Refback January 8th, 2012 05:52 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Signing in... VictorySpeedway Introductions 2 November 24th, 2010 01:58 PM
San Diego signing on sparkplug619 Introductions 1 May 7th, 2010 01:16 PM
signing out of facebook? confuzzled HTC Desire 1 April 22nd, 2010 03:35 AM
Nutshell signing in nutshell Introductions 3 March 5th, 2010 01:09 AM
Unsync/ signing out. eric.desmond9 Android Lounge 2 January 1st, 2010 06:17 PM



All times are GMT -5. The time now is 11:32 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo


SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.