MTK
如下代码编译的产物在 framework-res.apk
编译配置文件在device/mediatek/system/common/目录下的Android.bp
device/mediatek/system/common/overlay/telephony/frameworks/base/core/res/res/values-mcc655-mnc01/config.xml
在Android U上面还在overlay目录中进行了产品分类
overlay目录README介绍:
Product-Line level, Operator spec level & project level's common part overlay resource will be placed here.
Folder naming should follow the rule as below.[Naming Rule]
<resolution size abbr.>[Examples]
qHD => resource_overlay/qHD
WSQVGA => resource_overlay/WSQVGA
OEM
overlay 目录的 README 介绍:
NOTE:This static resources overlay is used for packages that packaged to system image or super image by SSI.* common: 通用的静态定制
* std: 仅适用于标准的非Android Go系统的定制
* go: 仅适用于Android Go系统的定制
编译产物:
- framework-res.apk
- framework-res-ext.apk
apk可以直接用 jadx反编译,查看resources.arsc资源细节或者解压生成文件夹内有resources.arsc。
但是偶尔会出现解析报错的
Error decode arsc
java.io.IOException: type chunk, res0, expected: 0x0, actual: 0x1, offset: 0x71198e
at jadx.core.xmlgen.ParserStream.throwException(ParserStream.java:118)
at jadx.core.xmlgen.ParserStream.checkInt8(ParserStream.java:103)
at jadx.core.xmlgen.ResTableParser.parseTypeChunk(ResTableParser.java:196)
at jadx.core.xmlgen.ResTableParser.parsePackage(ResTableParser.java:169)
at jadx.core.xmlgen.ResTableParser.decodeTableChunk(ResTableParser.java:118)
at jadx.core.xmlgen.ResTableParser.decode(ResTableParser.java:66)
at jadx.core.xmlgen.ResTableParser.decodeFiles(ResTableParser.java:71)
at jadx.api.ResourcesLoader.loadContent(ResourcesLoader.java:101)
at jadx.api.ResourcesLoader.lambda$loadContent$0(ResourcesLoader.java:82)
at jadx.api.ResourcesLoader.decodeStream(ResourcesLoader.java:71)
at jadx.api.ResourcesLoader.loadContent(ResourcesLoader.java:82)
at jadx.api.ResourceFile.loadContent(ResourceFile.java:60)
正常解析的情况:
在Android Studio内无法打开 resources.arsc