Creating Custom ROM: Question...


Last Updated:

  1. -Don

    -Don Active Member This Topic's Starter

    Joined:
    Nov 25, 2009
    Messages:
    30
    Likes Received:
    1
    I have a rooted Eris flashed w/one of the developer's custom ROMs (eris_0_3.zip file)....If I wanted to mount the IMG in the zipped ROM and change some things (delete apps, change default images, etc...) would I need to register the changes somewhere else so that I don't get errors?

    EDIT:


    Or is there a way to run the img in a VM(VMware), make the changes (since it's not actually a ROM) than create an image of that & flash it?
     

    Advertisement
  2. IzelTokatl

    IzelTokatl Well-Known Member

    Joined:
    Dec 11, 2009
    Messages:
    580
    Likes Received:
    90
    this may be something you want to post to XDA
     
  3. acidbath5546

    acidbath5546 Well-Known Member

    Joined:
    Jan 7, 2010
    Messages:
    575
    Likes Received:
    342
    Moved your thread to "All things Root section"

    Cheers
     
    -Don likes this.
  4. pkopalek

    pkopalek Well-Known Member

    Joined:
    Dec 19, 2009
    Messages:
    837
    Likes Received:
    117
    You can use adb shell to do a lot of things. You can use a 'nand' backup as your image, if you're using it for yourself, after you make your changes.

    Make a NAND backup with Recovery before you start,

    then look up how to use 'adb shell' 'su' ..... to investigate how to delete apps and push others to your phone, then if your phone BREAKS, restore from the NAND backup. If your phone works great, create a new NAND backup with your new phone image!

    You can flash other images, then go back to the NAND backup you made, any time you want.
     
  5. dandaman96

    dandaman96 Member

    Joined:
    Dec 16, 2009
    Messages:
    12
    Likes Received:
    1
    an on/off topic question... NAND... is it a compete data dump of the internal memory - from partition tables to application data and everything in between, or is it a dump of the rom (i.e. after restoring from a NAND, will I have to set the phone up again, install apps, etc)?

    I'm getting a little excited about what I can do w/ this phone... just need to find the time to play with it now.

    thanks
     
  6. -Don

    -Don Active Member This Topic's Starter

    Joined:
    Nov 25, 2009
    Messages:
    30
    Likes Received:
    1
    Thanks AcidBath, I was following the Eris root thread and I truly appreciate all of the work you and the other Developers put into making this happen & making it available to everyone.
    Thanks :D

    I'll check into that, Thanks

    Me too:)
    Thanks to the developers this phone has a lot of potential and it's fun to think about the possibilities w/customizations.
     
  7. GrdLock

    GrdLock Well-Known Member

    Joined:
    Nov 25, 2009
    Messages:
    405
    Likes Received:
    188
    You can simply unzip the rom package and make the changes you want. Depending on the changes you make, there is an update-script in the META-INF directory that may or may not need to be edited.

    When done, zip the files back up, and you need to sign them before you can flash them.
     
    -Don likes this.
  8. -Don

    -Don Active Member This Topic's Starter

    Joined:
    Nov 25, 2009
    Messages:
    30
    Likes Received:
    1
    LOL...Thanks for your reply,

    After a few hours of playing with it in the adb shell, editing the files, re-zipping them, and trying to mv & cp them back onto the phone while it was on, erroring out, re-flashing, and then doing it all over again in different ways, I thought about doing that and got an error because it wasn't signed.

    What do you use to sign the package?
    (I'll google it & see what I find but if you know of something that works well that might save me some time, I'd really appreciate it)

    (In the meantime, I will try out what I find & will post back w/my success or non-success)

    EDIT:

    I found a thread that explains how to sign packages:
    http://androidforums.com/developer-101/8665-how-signing-roms.html

    Unfortunately the flashing failed/aborted because it couldn't find the 'update script' then failed again because I must have deleted something it was looking for :/
    I'll try again later
     
  9. -Don

    -Don Active Member This Topic's Starter

    Joined:
    Nov 25, 2009
    Messages:
    30
    Likes Received:
    1
    The zipped ROM package signed successfully and the flashing process worked without any problems


    I still have a question about modifying a default .png image within the package.

    Does anyone know where the default image for incoming/outgoing calls?
    [​IMG]

    I found what I thought was the one and apparently I didn't modify the right one or I did something wrong because after modifying it w/GIMP (just erased it leaving a blank transparent .png image) then resigning the package & reflashing the phone, it's still showing up for phone calls?


    If anyone has any ideas of what I did wrong or other ideas how I can blank it out (or maybe modifying the reference to it in the XML file?) , I would really appreciate it.
     
  10. TheProfessional

    TheProfessional Well-Known Member

    Joined:
    Jan 5, 2010
    Messages:
    47
    Likes Received:
    9
    I don't like looking at the android either. I just replaced it too.

    The easiest way to do it is not to extract it. Just use winrar or 7zip to drop the new blank transparent image into the .apk.
     
  11. acidbath5546

    acidbath5546 Well-Known Member

    Joined:
    Jan 7, 2010
    Messages:
    575
    Likes Received:
    342
    No Worries man! Thanks for joining the community!
    And I have been trying to work on the dialer image...no luck yet though..
     
    -Don likes this.
  12. TheProfessional

    TheProfessional Well-Known Member

    Joined:
    Jan 5, 2010
    Messages:
    47
    Likes Received:
    9
    My new "Android"-less call screen.



    [​IMG]
     
  13. -Don

    -Don Active Member This Topic's Starter

    Joined:
    Nov 25, 2009
    Messages:
    30
    Likes Received:
    1
    Thanks, I've been playing with Eclipse (or trying to anyway...lol) and haven't had any luck either, still trying to create a new project... guess it's time for me to read the instructions.

    Dude...
    That's excellent! Please enlighten me as to how you did that?
    (Is it possible just to modify the .png then resign the package & flash?)
     
  14. RyanInFlorida

    RyanInFlorida New Member

    Joined:
    Mar 30, 2010
    Messages:
    4
    Likes Received:
    0
    Yes, I took would like to know how you did that.
     
  15. TheProfessional

    TheProfessional Well-Known Member

    Joined:
    Jan 5, 2010
    Messages:
    47
    Likes Received:
    9
    I mentioned earlier...


    The easiest way to do it not worry about repacking it or resigning it. All you have to do is open the .apk with 7-Zip or WinRAR.

    Here's a quick tutorial

    1. Locate the phone.apk file
    2. Open (do not extract) with 7-Zip or WinRAR
    3. Replace "phone_default_icon.png" with your new .png (Make sure your .png has transparency enabled)
    4. Replace phone.apk with your new one.
     
    -Don likes this.
  16. RyanInFlorida

    RyanInFlorida New Member

    Joined:
    Mar 30, 2010
    Messages:
    4
    Likes Received:
    0

    I didn't know it could be done like that. Thanks, bud.
     
  17. -Don

    -Don Active Member This Topic's Starter

    Joined:
    Nov 25, 2009
    Messages:
    30
    Likes Received:
    1
    Wow....lol
    I didn't think to look in /system/app/ directory, I was searching through every pic in the /framework/... directories and thought I found it but I guess there is more than one of them....those little green guys are everywhere:eek:

    Anyway... Thanks for the help! I actually love this phone now that I can make it my own...Pwned!:D
    (Thanks Devs)
    #Running modified sense-able.0.7 ROM in photos below :)

    [​IMG] [​IMG][​IMG]
     
  18. ECLIPS3

    ECLIPS3 Active Member

    Joined:
    Apr 4, 2010
    Messages:
    30
    Likes Received:
    28
    hey i am trying to do a custom rom too, but when i try to apply the rom, it passes validation, but it says it cant find the update script as well. what did you do to get your update script working / found?

    UPDATE:

    Never mind, im an idiot. i think i created my zip file wrong where it zipped the root directory as well as the files inside, so the installation doesn't know how to find the update script because of the incorrect folder structure.
     
  19. jamezelle

    jamezelle Well-Known Member

    Joined:
    Feb 3, 2010
    Messages:
    161
    Likes Received:
    15
    1. create rom system folder + boot.img
    2. sign the rom
    3. navigate to /META-INF then create this directory ./com/google/android/
    4. add the update-script to /META-INF/com/google/android/
    5. sign rom again
     

Share This Page

Loading...