How to modify the existing ROM resource file for Android

Android modifies an existing ROM resource file

1、 Preparatory work

1. Develop a mobile phone.

I recommend using G7, which is also the HTC Desire (is there some advertising suspicion...). This machine has a wide range of ROMs and more data, which is easy to brush to root. The Android version is also the latest 2.3.3

2. Auto sign signature tool is a must. There are many download points on the Internet, which are mainly used for ROM signature

3. Apktool packaging and unpacking APK tool

2、 Specific steps

1. Unzip the ROM package first. For example, I use G7_ 3.3_ hiapk_ Signed. Zip, you will see two folders, meta inf, system, and a file, boot. Img

2. Open the system and then open the app. At this time, you will see a pile of apks. These are the apks of the system, such as desktop, phone, SMS, etc

3. Copy xxx.apk to apktool directory, go to apktool directory in CMD, enter apktool D xxx.apk ABC, and an ABC folder will be added

4. Under ABC, the decompiled resource files are obtained. If there is some Android foundation, it is easy to understand the directory structure. All the resource files we want to modify are under res.

5. Modify the resource file under res. it's best to modify the string.xml file. If you don't understand it, it's easy to cause problems.

6. After modification, return to apktool directory and package apktool B ABC to get out.apk file,

7. Sign APK. Automatic signature tool is not recommended here. Why sign someone else's name. First, use eclipse to generate a signature file, aaa.keystore, jarsigner - verbose - keystore aaa.keystore - signedjar out_ Signed.apk out.apk aaa.keystore get out at this time_ Signed.apk, this is the signed APK, then change the name to the file name you originally wanted to change, and copy it back to overwrite it

8. Select system, meta info and root.img and compress them to update.zip. Remember the ZIP format

9. Copy update.zip to auto_ Under sign, click sign.bat to get update_ Signed.zip, this file is the modified ROM

10. It's easy to brush the machine. Copy update.zip to the SD root directory, shut down the machine, press and hold the voice down key and power on key at the same time, and a list of brush methods will appear. Select the recovery mode, and you can understand it in English below.

Thank you for reading, hope to help you, thank you for your support to this site!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>