Document directory
- // Reprinted
- Android: Modify system. img
// Reprint the android modification system. IMG Method
10:16:11 | category: Android | Tag: Android system. IMG | font size subscription
1. Prerequisites
L source code downloaded
L Source Code make is complete
2. Modify the file
It is easier to modify launcher for verification. Here, modify the text background color under the launcher desktop icon (very simple ). Find the path and file, as shown in, and open it.
Add the following code to the Code:
3. Compile and Package
This step requires two prerequisites: four steps.
Prerequisites: L add/out/host/linux-x86/bin to system path ($ PATH) -- easy to use mkyaffs2image and emulator L add the environment variable $ android_product_out =/out/target/product/generic to facilitate loading the IMG generated by three make statements required by emulator. |
Steps: L run. Build/envsetup. Sh or source build/envsetup. Sh in the source code root directory. L run Mmm packages/apps/launcher2/ L continue running Mkyaffs2image-f out/target/product/generic/system. img L finally run emulator |
The overall process is as follows:
4. Interface Verification
Strong evidence shows that this method is effective.
.
5. Usage
Create a synchronization correspondence between the Code and the runtime environment, so that single-step tracking (how to search for keywords such as debug framework on the Internet will be inspired) has practical significance.