There are different initialization framework versions during decompilation and compilation

Đang mở
#222 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
android, java
Lĩnh vực
cli, tooling

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

Describe the bug
When decompiling MIUISystemUIPlugin, there are different initialization framework versions during decompilation and compilation.

To Reproduce
Steps to reproduce the behavior:

  1. Used version 1.4.7
  2. 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

Used apk file
https://dumps.tadiphone.dev/dumps/xiaomi/haotian/-/blob/aa09eecc6a6e5fc977e579f1bed8d13c62b3fd1e/product/app/MIUISystemUIPlugin/MIUISystemUIPlugin.apk

Ngôn ngữ chính
Java
Star
2.3k
Fork
417
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của REAndroid/APKEditor

Tất cả issue của REAndroid/APKEditor

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.