Android: Modify system. img

Source: Internet
Author: User
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.

Related Article

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.