Apktool
Apktool copied to clipboard
[BUG] Ignores res folder of framework.jar
Information
- Apktool Version (
apktool -version) - 2.10.0-dirty - Operating System (Mac, Linux, Windows) - Windows
- APK From? (Playstore, ROM, Other) - ROM
- 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
Our jar parsing is probably very weak if non-source elements are packed within. Do you have a sample I can work from?
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.
@IgorEisberg considering your recent contributions in the project would you mind having a look at this? Any Android 14+ framework.jar ships a "res" folder which gets ignored by apktool when decompiling/recompiling. As explained in the issue, it contains a few files with a .types extension required by this class: https://github.com/aosp-mirror/platform_frameworks_base/blob/main/mime/java/android/content/type/DefaultMimeMapFactory.java