iBotPeaches / Apktool

A tool for reverse engineering Android apk files
https://apktool.org/
Apache License 2.0
19.47k stars 3.55k forks source link

[BUG] Ignores res folder of framework.jar #3615

Open chiteroman opened 1 month ago

chiteroman commented 1 month ago

Information

  1. Apktool Version (apktool -version) - 2.10.0-dirty
  2. Operating System (Mac, Linux, Windows) - Windows
  3. APK From? (Playstore, ROM, Other) - ROM
  4. Java Version (java --version) -
    OpenJDK Runtime Environment Corretto-21.0.3.9.1 (build 21.0.3+9-LTS)
    OpenJDK 64-Bit Server VM Corretto-21.0.3.9.1 (build 21.0.3+9-LTS, mixed mode, sharing)

Apktool ignores "res" dir even I use -c. -r, "-resm keep"

I need to manually add res files to unknownFiles in apktool.yml

Res dir contains three files: android.mime.types, debian.mime.types and vendor.mime.types

iBotPeaches commented 1 month ago

Our jar parsing is probably very weak if non-source elements are packed within. Do you have a sample I can work from?

salvogiangri commented 3 weeks ago

Our jar parsing is probably very weak if non-source elements are packed within. Do you have a sample I can work from?

Any Android 14+ framework.jar file should be good. I've had this issue as well.