How to compile a resource file after Android modifies the framework

Source: Internet
Author: User

After you add a resource file under Framework/base/core/res/res, you need to compile the resource and then compile the framework to reference it properly.

Go to Project root CD frameworks/base/core/res/execute mm command (native or Qualcomm), compile framework-res.apk

Or./mk mm Frameworks/base/core/res (MTK varies depending on the platform compilation command)

A reference to the resource is generated when the COM.ANDROID.INTERNAL.R is compiled.

Execute mm compile Framework.jar (native or Qualcomm) under directory frameworks/base/

Or./mk mm Frameworks/base (MTK varies depending on the platform compilation command)

If there are changes under Frameworks/base/services, you also need to compile

frameworks/base/services/java/Execute mm Compilation Services.jar

Or./mk mm Frameworks/base/services/java

Execute the following command

ADB remount

ADB push framework-res.apk/system/framework/

ADB push framework.jar/system/framework/

ADB push services.jar/system/framework/(if modified)

Some systems also generate Secondary_framework.jar after the framework has been compiled

also push.

After push is complete, you can enter the directory by CD System/framework

Then ll two a lowercase l command to confirm whether the push succeeded

ADB reboot restart the device.


How to compile a resource file after Android modifies the framework

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.