There are different initialization framework versions during decompilation and compilation
还没有人认领这个 Issue。
评估
调研方向
Start by comparing framework initialization in the decompile and build paths shown in the logs, focusing on why they select versions 34 and 33. Reproduce with the supplied APK and commands on APKEditor 1.4.7; done looks like both paths use a compatible framework version and the build no longer fails to resolve @android:string/config_pointing_ui_class.
由索引模型根据 Issue 内容生成。
描述
Describe the bug
When decompiling MIUISystemUIPlugin, there are different initialization framework versions during decompilation and compilation.
To Reproduce
Steps to reproduce the behavior:
- Used version 1.4.7
- Operating system Ubuntu24.04
Log/Stacktrace
java -jar APKEditor.jar d -f -i MIUISystemUIPlugin.apk -o ./mod/MIUISystemUIPlugin
00.000 I: [DECOMPILE] Using: APKEditor version 1.4.7, ARSCLib version 1.3.8
-t = xml
-load-dex = 3
-dex-lib = internal
-comment-level = basic
-i = MIUISystemUIPlugin.apk
-o = ./mod/MIUISystemUIPlugin
-f = true
00.009 I: [DECOMPILE] Loading ...
00.120 I: [DECOMPILE] Decompiling to xml ...
00.377 I: [DECOMPILE] Initializing android framework ...
00.378 I: [DECOMPILE] Loading android framework for version: 34
00.420 I: [DECOMPILE] Initialized framework: android-34 (14)
00.448 I: [DECOMPILE] [SANITIZE]: Sanitizing paths ...
00.455 I: [DECOMPILE] Validating resource names ...
00.496 I: [DECOMPILE] All resource names are valid
00.496 I: [DECOMPILE] Decode: archive-info.json
00.501 I: [DECOMPILE] Decode: uncompressed-files.json
00.516 I: [DECOMPILE] Decoding: AndroidManifest.xml
00.576 I: [DECOMPILE] public.xml: miui.systemui.plugin -> package_1
00.596 I: [DECOMPILE] Res files: resources
02.190 I: [DECOMPILE] Dex files: 4
02.682 I: [DECOMPILE] Baksmali: v039<5192> classes.dex
06.012 I: [DECOMPILE] Baksmali: v039<3195> classes2.dex
07.752 I: [DECOMPILE] Baksmali: v039<1995> classes3.dex
09.637 I: [DECOMPILE] Baksmali: v039<263> classes4.dex
09.757 I: [DECOMPILE] Extracting root files ...
09.816 I: [DECOMPILE] Dumping signatures ...
09.817 I: [DECOMPILE] Saved to: ./mod/MIUISystemUIPlugin
java -jar APKEditor.jar b -f -i ./mod/MIUISystemUIPlugin -o ./mod/MIUISystemUIPlugin_modified.apk
00.000 I: [BUILD] Using: APKEditor version 1.4.7, ARSCLib version 1.3.8
-t = xml
-dex-lib = internal
-i = ./mod/MIUISystemUIPlugin
-o = ./mod/MIUISystemUIPlugin_modified.apk
-f = true
00.010 I: [BUILD] Scanning XML directory ...
00.038 I: [BUILD] Scanning: MIUISystemUIPlugin
00.202 I: [BUILD] Initializing android framework ...
00.202 I: [BUILD] Loading android framework for version: 33
00.361 I: [BUILD] Initialized framework: android-33 (UpsideDownCake)
00.361 I: [BUILD] Set main package id from manifest: @mipmap/ic_launcher
00.365 I: [BUILD] Main package id initialized: id = 0x7f, from: @mipmap/ic_launcher
00.365 I: [BUILD] Encoding attrs ...
00.463 I: [BUILD] Encoding values ...
00.657 [BUILD] Encoding: package_1/res/values/styles.xml
ERROR:
at ./mod/MIUISystemUIPlugin/resources/package_1/res/values/styles.xml [line = 1940]
Resource not found for: '@android:string/config_pointing_ui_class', frameworks size=1 [android-33]: @android:string/config_pointing_ui_class
Bugs:
00.420 I: [DECOMPILE] Initialized framework: android-34 (14)
00.361 I: [BUILD] Initialized framework: android-33
- 主要语言
- Java
- 星标
- 2.3k
- 派生
- 417
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
REAndroid/APKEditor 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 67/100
-
难度 4/5 3-5 天 新手友好度 35/100
-
bug
难度 4/5 3-5 天 新手友好度 38/100
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
-
enhancement
难度 3/5 1-2 天 新手友好度 45/100
查看 REAndroid/APKEditor 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 2 天内回复
-
good first issue
难度 2/5 1-3 小时 新手友好度 78/100
seleniumboot/selenium-boot#275 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
jenkins-infra/plugin-modernizer-tool#2070 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 84/100
orientechnologies/orientdb#11020 ·
维护者通常 1 天内回复
-
Event search answers 500 when calendars, attendees or organizers holds a null element可能重新可做 关联的 PR 已关闭且未合并。 未关闭ai-driven-qa bug Minor
难度 2/5 1-3 小时 新手友好度 70/100
linagora/twake-calendar-side-service#1615 · 1 条评论 ·
维护者通常 1 天内回复