SoFunction
Updated on 2025-04-04

How to modify existing ROM resource files on Android

Android Modify existing ROM resource files

1. Preparation

1. A development mobile phone.

I recommend using G7, which is the HTC Desire model (is it a bit suspicious of advertising...). This phone has a complete range of ROMs and more information, so it is easy to get root. The Android version is also the latest 2.3.3.

-sign signature tool
This is a must-have, with many download points online, mainly used for ROM signatures


Packaging and unpacking apk tool

2. Specific steps

1. First unzip the ROM package. For example, I use g7_3.3_hiapk_signed.zip, and you will see two folders, META-INF, system, and a file.

2. Start the system and then open the app. At this time, you will see a bunch of apks, which are all system apks, such as desktop, phone, text messages, etc., here.

3. Copy to the apktool directory, go to the apktool directory in CMD, enter apktool d ABC, and there will be an additional ABC folder.

4. Under ABC, the resource file obtained by decompiling. If it is a bit basic android, it is easy to understand the directory structure. The resource file we want to modify is under res.

5. Modify the resource file under res. It is best to modify the file. Other problems may occur if you don’t understand it.

6. After modification, return to the apktool directory, package apktool b  ABC, and get the file.

7. Sign the apk. Automatic signature tool is not recommended here, so why do you need to sign someone else's name? First use eclipse to generate a signed file, jarsigner -verbose -keystore -signedjar out_signed.apk   At this time, we get out_signed.apk, which is the signed apk, and then change the name to, the file name you originally wanted to change, copy it back and overwrite it

8. Select three files, system, META-INFO, compress them to, remember to be in zip format

9. Copy it to auto_sign, click to get update_signed.zip, this file is the modified ROM

10. Flashing the machine is very simple. Copy it to the root directory of SD, shut down, press and hold the down key of the sound and the start key at the same time, and a list of flashing methods will appear. Select the recovery mode, and you can understand it by reading English below.

Thank you for reading, I hope it can help you. Thank you for your support for this site!