New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
hexskrew
Old
#1  
hexskrew's Avatar
Senior Member - OP
Thanks Meter 18
Posts: 570
Join Date: May 2010
Angry Change Carrier Name in AOSP roms

How to create a custom eri.xml files to change the carrier name in AOSP roms.

Instructions lower are for making your own.





(((Prerequisites)))

1. Android Device (doesn't have to necessarily be a phone)
2. Root
3. Working adb connection to phone
4. 7zip
5. HxD or another hex editor

(((How To)))

1. Connect your phone and mount your it with adb.

2. use adb to pull the framework-res.apk file from the phone


3. open the framework-res.apk file with 7zip

4. go into the res/xml folder


5. pull eri.xml from the zip file and open with HxD or your favorite hex editor

6. scroll down until you find the provider name (usually sprint)


7. Change the name to whatever you want. WARNING! Depending on your phone you can have as little as 9 characters available all the way to 16. It depends on the phone. I have found that the Hero CDMA only has 9.

8. Save eri.xml, and copy it back into the zip file via drag and drop into 7zip.

9. Using adb, push the file back onto the phone. You may have to reset it to get it to show up.
Previously:
O.S.: AOSP 2.3.4
Build: RC2.2
Carrier:Cellular South
Device:HTC Hero CDMA

Currently:
O.S.: 2.3.5 (Stock)
Device: Motorola Droid X!
 
TheDanimal
Old
#2  
Senior Member
Thanks Meter 96
Posts: 139
Join Date: May 2010
I used 7zip and deleted the eri.xml file from framework-res.apk. I had found an eri.xml file from another ROM that is viewable in IE; after editing the file I pushed it to /data/. works fine and you don't have to mess with hex editors.
 
Ganii
Old
#3  
Ganii's Avatar
Senior Member
Thanks Meter 667
Posts: 1,878
Join Date: Mar 2010
Location: Zell i.Fichtelgebirge

 
DONATE TO ME
Tried it with my Hero and some of my custom Android 2.2 Froyo,but
don`t find provider name at "eri.xml"

Only this:

Quote:
VersionNumber...NumberOfEriEntries...EriFileType.. .EriFile...1357...12...1...Id...CallPromptText...C allPromptId...0...CallPromptId0...CallPromptId1... 2...CallPromptId2...RoamingIndicator...IconIndex.. .IconMode...EriText...AlertId...EriInfo...64...T-CDMA 64...65...T-CDMA 65...66...T-CDMA Ext 66...67...T-CDMA Ext 67...68...T-CDMA Roam 68...69...T-CDMA Ext 69...70...T-CDMA Roam 70...71...T-CDMA Ext 71...72...T-CDMA Ext 72...73...T-CDMA Roam 73...74...T-CDMA Ext 74...75...T-CDMA Roam 75.......`......
 
hexskrew
Old
#4  
hexskrew's Avatar
Senior Member - OP
Thanks Meter 18
Posts: 570
Join Date: May 2010
If you don't see it then it may just not have been set on build time. Did you build it yourself?

Either way it should be at this address in the hex edior:

Line: 000002D0
You have the column space from 02 to 0A to edit.

However I would side with TheDanimal on this. It would be easier to just find the xml that you can open in a text editor and then push to /data but I have never done this. Hey TheDanimal! does there need to be directory structure there like in metamorph?!
Previously:
O.S.: AOSP 2.3.4
Build: RC2.2
Carrier:Cellular South
Device:HTC Hero CDMA

Currently:
O.S.: 2.3.5 (Stock)
Device: Motorola Droid X!
 
TheDanimal
Old
(Last edited by TheDanimal; 12th October 2010 at 05:56 PM.)
#5  
Senior Member
Thanks Meter 96
Posts: 139
Join Date: May 2010
here is the contents of my eri.xml:

- <EriFile VersionNumber="1357" NumberOfEriEntries="1" EriFileType="1">
<CallPromptId Id="0" CallPromptText="CallPromptId0" />
<CallPromptId Id="1" CallPromptText="CallPromptId1" />
<CallPromptId Id="2" CallPromptText="CallPromptId2" />
<EriInfo RoamingIndicator="128" IconIndex="1" IconMode="0" EriText="Verizon Wireless" CallPromptId="0" AlertId="0" />
</EriFile>

I guess deleting it from framework-res.apk makes it look elsewhere for the file. I posted the eri.xml I use. I had to zip it because it won't let me upload a .xml
Attached Files
File Type: zip eri.zip - [Click for QR Code] (297 Bytes, 99 views)
 
hexskrew
Old
(Last edited by hexskrew; 12th October 2010 at 06:59 PM.)
#6  
hexskrew's Avatar
Senior Member - OP
Thanks Meter 18
Posts: 570
Join Date: May 2010
@TheDanimal - Awesome man! And this also lifts the 9char restriction! 10chars+ for u!

Now if I could just find out where to change the word 'Phone' for the center rosie button...
Previously:
O.S.: AOSP 2.3.4
Build: RC2.2
Carrier:Cellular South
Device:HTC Hero CDMA

Currently:
O.S.: 2.3.5 (Stock)
Device: Motorola Droid X!
 
Ganii
Old
#7  
Ganii's Avatar
Senior Member
Thanks Meter 667
Posts: 1,878
Join Date: Mar 2010
Location: Zell i.Fichtelgebirge

 
DONATE TO ME
Hm,deleted "eri.xml" from framework and pushed framework back to
phone,then used attached "eri.xml" and pushed to /data/ but nothing.
Only deleting "eri.xml" the same,still T-Mobile there

Name:  Unbenannt.jpg
Views: 1594
Size:  56.7 KB Name:  Unbenannt2.jpg
Views: 1598
Size:  49.3 KB Name:  Unbenannt3.jpg
Views: 1601
Size:  93.9 KB
 
TheDanimal
Old
#8  
Senior Member
Thanks Meter 96
Posts: 139
Join Date: May 2010
You may have to use a hex editor then. I deleted the eri.xml out of framework before i zipped and signed my ROM. I'm also using an AOSP 2.1 build.
 
raiderep
Old
#9  
raiderep's Avatar
Senior Member
Thanks Meter 208
Posts: 1,287
Join Date: Feb 2010
Location: Nor Cal
That works fine for a sprint phone. Any idea where Verizon is hiding the carrier name? Its not in eri.xml, I've looked.

sent by an Epic4g through the cosmos
 
hexskrew
Old
#10  
hexskrew's Avatar
Senior Member - OP
Thanks Meter 18
Posts: 570
Join Date: May 2010
@raiderep - AOSP is not carrier specific. Actually the carrier name is something of just a stickit really. I am on cellular south but it will say sprint by default cause thats what the builder put as the carrier name. Maybe the version your running is modified to have it shown somewhere else?
Previously:
O.S.: AOSP 2.3.4
Build: RC2.2
Carrier:Cellular South
Device:HTC Hero CDMA

Currently:
O.S.: 2.3.5 (Stock)
Device: Motorola Droid X!


XDA PORTAL POSTS

Expand Your Choice of Icons with Icon Themer

Icons are some of the most commonly themed elements of the Android UI, and there is certainly no … more

MicrowaveTimePicker Brings 4.2 TimePicker to 2.1+ Devices

It’s frustrating to see slick new features that you can’t use when … more

What’s Possible with CASUAL & How to Make Your Own CASUAL – XDA Developer TV

XDA Elite Recognized Developer AdamOutler is known … more

Pearl Chen to Talk NFC Development at XDA:DevCon 2013

From HTML to LEDs or Android to Arduino, Hardware Hacking is a pastime of many people … more