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

Root Creating Custom ROM: Question...

-Don

Newbie
Nov 25, 2009
30
1
San Diego
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?
 
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?

Moved your thread to "All things Root section"

Cheers
 
  • Like
Reactions: -Don
Upvote 0
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.
 
Upvote 0
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
 
Upvote 0
Moved your thread to "All things Root section"

Cheers
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

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.
I'll check into that, Thanks

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.
Me too:)
Thanks to the developers this phone has a lot of potential and it's fun to think about the possibilities w/customizations.
 
Upvote 0
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.

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
 
Upvote 0
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?
File


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.
 
Upvote 0
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?


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.

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.
 
Upvote 0
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.

No Worries man! Thanks for joining the community!
And I have been trying to work on the dialer image...no luck yet though..
 
  • Like
Reactions: -Don
Upvote 0
No Worries man! Thanks for joining the community!
And I have been trying to work on the dialer image...no luck yet though..
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.

My new "Android"-less call screen.
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?)
 
Upvote 0
I mentioned earlier...

I don't like looking at the android either. I just replaced it too.

The easiest way to do it is not to worry about extracting it, repacking it, and resigning it. Just use winrar or 7zip to drop the new blank transparent image into the .apk.


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.
 
  • Like
Reactions: -Don
Upvote 0
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.


I didn't know it could be done like that. Thanks, bud.
 
Upvote 0
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.

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 :)

1.jpg
img_3503.jpg
img_3507.jpg

 
Upvote 0
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

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.
 
Upvote 0
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.

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
 
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