Learn Android Rom development step by step (1) -- modify existing Rom resource files

Source: Internet
Author: User

I. Preparations

1. A development mobile phone.

I recommend using G7, which is also HTC Desire (whether it is a bit of advertising suspicion ...), This machine has a wide variety of ROM and more information. It is easy to fl root, and the Android version is also the latest version 2.3.3.


2. Auto-sign signing Tool

This is essential. There are many download points on the internet, mainly used for Rom signature.


3. apktool

Package and unpackage APK Tool


2. Steps

1. decompress the rompacket first. For example, you can see two folders, META-INF, system, one file, Boot. IMG.


2. Open System and then open the app. At this time, you will see a bunch of APK, which are all system APK, such as desktop, phone, SMS, etc.


3.copy xxx.apk to the apktool directory, go to the apktool directory in cmd, enter apktool D xxx.apk ABC, and an additional ABC folder will be displayed.


4. In ABC, It is the decompiled resource file. If it is Android-based, it is easy to understand the directory structure. All the resource files to be modified are under Res.


5. Modify the resource files under res. It is best to modify the string. xml file. If you do not understand other files, problems may occur.


6. After the modification, return to the apktool directory and package apktool B abcto the out.apk file,


7. Sign the APK. The automatic signature tool is not recommended here. Why do you need to sign others' names. First, use eclipse to generate a signature file, AAA. keystore, jarsigner-verbose-keystore AAA. keystore-signedjar out_signed.apk out.apk AAA. the keystore is now named out_signed.apk, which is a signed APK and changed to the file name you originally wanted to change. Copy it back and overwrite it.


8.select three files, system,meta-info,root.img, and compress them to update.zip. Remember to use the ZIP format.


9. Copy update.zipto auto_sign, click sign.bat, and get update_signed.zip. This file is the modified Rom.


10.refresh is simple. Copy update.zip to the SD root directory, shut down the device, press the sound down key, and press the open key. A method list is displayed. Select recovery mode.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.