There are different initialization framework versions during decompilation and compilation

Abierto
#222 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
android, java
Área
cli, tooling

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Java
Estrellas
2.3k
Forks
417
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de REAndroid/APKEditor

Todos los issues de REAndroid/APKEditor

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.