1. Download our Official Android App: Forums for Android!

Apps [How-To] Signing ROMs

Discussion in 'Android Development' started by UnderWhat?, Sep 3, 2009.

  1. UnderWhat?

    UnderWhat? Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    43
    Posts:
    180
    Joined:
    Aug 5, 2009

    Aug 5, 2009
    180
    34
    43
    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:


    Advertisement

    Blaqd, Guggy, progster and 31 others like this.
  2. NiNi

    NiNi G1/Cliq Guide
    Rank:
    None
    Points:
    56
    Posts:
    126
    Joined:
    Sep 4, 2009

    Sep 4, 2009
    126
    4
    56
    Florida
    this was made by JesusFreke

    sorry here is more info

     
  3. rockin_mod

    rockin_mod Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Oct 4, 2009

    Oct 4, 2009
    1
    0
    5
    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.
     
  4. banzro

    banzro Lurker
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Nov 8, 2009

    Nov 8, 2009
    2
    0
    5
    Hello,
    does someone has a solution without using windows?
    I'm looking for signing under ubuntu linux.

    Many Thanks for your hints

    Roman
     
  5. banzro

    banzro Lurker
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Nov 8, 2009

    Nov 8, 2009
    2
    0
    5

    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
     
  6. 7ymekk

    7ymekk Newbie
    Rank:
    None
    Points:
    15
    Posts:
    12
    Joined:
    Nov 11, 2009

    Nov 11, 2009
    12
    0
    15
    can't open /sdcard/mojhero-2.0.5.zip (bad)
    Installation aborted
     
  7. dub08

    dub08 Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Dec 4, 2009

    Dec 4, 2009
    1
    0
    5
    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
     
  8. scepterr

    scepterr Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Jan 2, 2010

    Jan 2, 2010
    1
    0
    5

    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.
     
  9. nixdorf

    nixdorf Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Jan 11, 2010

    Jan 11, 2010
    1
    0
    5
    I create zip with files then try to sing. Open autosing.bat and make all steps and when i sing then file is missing ?
     
  10. thihaz

    thihaz Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Sep 23, 2009

    Sep 23, 2009
    1
    0
    5
    Do you have the new key to sign to by pass the new hboot?
    thanks
     
  11. networx2002

    networx2002 Lurker
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Apr 28, 2010

    Apr 28, 2010
    2
    0
    5
    i'm having the same issue any help please.:D
     
  12. networx2002

    networx2002 Lurker
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Apr 28, 2010

    Apr 28, 2010
    2
    0
    5
    So i need to zip all the folders inside the rom:thinking:
     
  13. stringtokenizer

    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Dec 30, 2009

    Dec 30, 2009
    1
    0
    5
    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:

  14. Fulle

    Fulle Lurker
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Jul 1, 2010

    Jul 1, 2010
    2
    0
    5
    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:
     
  15. Fulle

    Fulle Lurker
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Jul 1, 2010

    Jul 1, 2010
    2
    0
    5
    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....
     
  16. sodino

    sodino Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Oct 21, 2010

    Oct 21, 2010
    1
    0
    5
    HI
    thanks
     
  17. StuntinX

    StuntinX Lurker
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Oct 21, 2010

    Oct 21, 2010
    3
    0
    5
    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?
     
  18. BoyPower

    BoyPower Lurker
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Jun 5, 2010

    Jun 5, 2010
    2
    0
    5
  19. androidfreakpr

    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Jan 8, 2011

    Jan 8, 2011
    1
    0
    5
    awsome now I'm signing Roms great
     
  20. almudhi

    almudhi Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Jul 22, 2011

    Jul 22, 2011
    1
    0
    5
    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
     
  21. kenhong

    kenhong Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Aug 26, 2011

    Aug 26, 2011
    1
    0
    5
    Thank You!!
     
  22. frankyangim

    frankyangim Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Sep 26, 2011

    Sep 26, 2011
    1
    0
    5
  23. UtCollector

    UtCollector Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Oct 30, 2011

    Oct 30, 2011
    1
    0
    5
    Thx finally managed 2 sing my rom under win xp
     
  24. elka

    elka Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Dec 5, 2011

    Dec 5, 2011
    1
    0
    5
    Thank You.
     
  25. mikebills

    mikebills Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Oct 8, 2011

    Oct 8, 2011
    1
    0
    5
    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!
     

Share This Page

Loading...