[TIP] [FROYO] How to change the carrier name
Here's how to change the carrier name in the Triumph. I ran across this while looking for some other strings.
You will need to decompile framework-res.apk, make your changes, and then recompile it. If you don't know how to decompile the file, I recommend that you read this great thread on XDA written by KBanause; he gives you links to the tools that you will need as well as walking you through making theming edits:
The steps below will assume that you are using apkmanager:
1. Decompile framework-res.apk
1a. To do that, place the framework-res.apk
file into the place-apk-here-for-modding
1b. Start apkmanager. In Windows, double-click on the script.bat file in the main apkmanager folder. I'm not sure what you would type to start apkmanager in another OS since I haven't used this in any other OS at this time.
1c. In APKMANAGER, hit 22
and select the number for your framework-res.apk file -- if it is the only file in the place-apk-here-for-modding folder, it should be 1.
1d. Back on the main menu, select 9
to decompile framework-res.apk.
2. Once, the decompile is complete, browse to the projects
folder in apkmanager and you should now have a new folder inside named framework-res.apk
. Look inside the framework-res.apk folder and you should now be able to find the subfolder \res\values
. This folder ONLY shows up if you decompile framework-res.apk.
3. Find strings.xml in that folder and open it in a text editor such as notepad++ or such. I don't recommend using the built-in Notepad in windows.
4. Find the line:
<string name="roamingText1">Virgin Mobile</string>
Change the "Virgin Mobile
" to whatever you want. For example, changing this to:
<string name="roamingText1">Save the tatas</string>
5. After making your changes, recompile framework-res.apk
5a. In apkmanager, use option 11
5b. When asked if this is a system file, select Yes
5c. When asked if you want to copy over additional files, click Yes
and it will extract the files into a folder named Keep
in apkmanager and then pause.
5d. Go into the Keep
folder and delete any files that you changed, in this case you only need to delete the resources.arsc
since the only thing you changed was the strings.xml file.
5d. Back on the apkmanager screen, hit the space bar or Enter to continue.
5e. A file named unsignedframework-res.apk
will be created in the place-apk-here-for-modding
folder. You'll need to rename it back to framework-res.apk
6. Either adb push the new framework-res.apk back into your phone or put it in a flashable Zip file and flash it in recovery.
6a. For anyone wanting to put their new file into a flashable zip, I've attached an empty Zip file in this thread. Add your new framework-res.apk file into the \system\framework
folder. Make sure that you have your Zip utility set to just use the Store
or No Compression
method. You do not need to change anything in the META-INF folder for just this simple flash. Note: the updater script in the zip file mounts the file system as ext3 so I don't know how well that will work if your file system is ext4.
This results in the changes on the lockscreen and the extended status screen: