当前位置:网站首页>How to edit a framework resource file separately
How to edit a framework resource file separately
2022-07-27 15:23:00 【C% bookworm】
One : compile framework Resource file
If modified android framework Resource file , You need to compile the resource file first , Then compile framework Can be quoted normally ,
Enter project directory cd xxx Project directory /frameworks/base/core/res/ perform mm compile framework-res.apk( Native or Qualcomm , If it is only modified core The resource code under the directory , That's it !)
1、 After compilation com.android.internal.R A reference to the resource is generated in .
2、 In the catalog work/source/frameworks/base/ perform mm compile framework.jar
3、 If frameworks/base/services There's a change , Then compile , In the catalog work/source/frameworks/base/services/java/ perform mm compile services.jar
The compiled files are located in your out/target/product/k630/system/frameworks/ Under the table of contents
notes : If no new apk、jar Package file , Please put the old one .apk、.jar Package to delete 
Two : Verify the modified effect
adb root
adb remount
adb push framework-res.apk /system/framework/
adb push framework.jar /system/framework/
adb push secondary_framework.jar /system/framework/ ( If there is secondary_framework.jar, need push)
adb push services.jar /system/framework/ ( If service Modified , need push)
adb reboot Restart the device .
3、 ... and : summary
In the development process , In especial framework When it comes to development , Sometimes you need to recompile the resource file . The compilation order and precautions are as follows ( All in the source root directory ):
Resource file location :frameworks/base/core/res, Compiled files :framework-res.apk in addition com.android.internal.R Will update this R.java In the directory /out/target/common/R/com/android/internal.
After compiling resources , Must recompile framework.jar.
If in frameworks/base/core/res perform mm Does not recompile , Please use toutch filename( file name ) perhaps mm -B
The resource file should be lowercase
边栏推荐
- Leetcode 244 week competition - post competition supplementary question solution [broccoli players]
- Unity performance optimization ----- LOD (level of detail) of rendering optimization (GPU)
- 网络设备硬核技术内幕 路由器篇 CISCO ASR9900拆解 (一)
- Unity 鼠标控制第一人称摄像机视角
- 网络设备硬核技术内幕 路由器篇 9 CISCO ASR9900拆解 (二)
- Notice on printing and distributing the Interim Measures for the administration of green manufacturing pilot demonstration of Shenzhen Bureau of industry and information technology
- 周鸿祎:数字安全能力落后也会挨打
- 魔塔项目中的问题解决
- 工具 - markdown编辑器常用方法
- 对话框管理器第三章:创建控件
猜你喜欢

周鸿祎:数字安全能力落后也会挨打

LeetCode 781. 森林中的兔子 哈希表/数学问题 medium

对话框管理器第三章:创建控件

Unity 鼠标控制第一人称摄像机视角

ad7606与stm32连接电路介绍

3.3-5v conversion

代码覆盖率统计神器-jacoco工具实战

What is tor? What is the use of tor browser update?

ADB command (install APK package format: ADB install APK address package name on the computer)

Unity performance optimization ----- occlusion culling of rendering optimization (GPU)
随机推荐
Watermelon book machine learning reading notes Chapter 1 Introduction
Wechat applet realizes music search page
MySQL 面试40连问,面试官你再问下去我可要翻脸了
反射
工具 - markdown编辑器常用方法
两阶段提交与三阶段提交
网络设备硬核技术内幕 路由器篇 20 DPDK (五)
generic paradigm
What is tor? What is the use of tor browser update?
DevEco Studio2.1运行项目报错
Unity performance optimization ----- occlusion culling of rendering optimization (GPU)
DIY制作示波器的超详细教程:(一)我不是为了做一个示波器
数据仓库项目从来不是技术项目
《终身成长》读书笔记(一)
Usage of countdownlatch in multithreaded environment
Is it safe for Guosen Securities to open a mobile account? Is Zhongshan securities reliable
Data warehouse project is never a technical project
网络设备硬核技术内幕 路由器篇 13 从鹿由器到路由器(上)
Discussion on STM32 power down reset PDR
LeetCode 240. 搜索二维矩阵 II medium