Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Exception while decompiling weird twrp apk?? #3686

Open
endingisnight opened this issue Sep 6, 2024 · 4 comments
Open

[BUG] Exception while decompiling weird twrp apk?? #3686

endingisnight opened this issue Sep 6, 2024 · 4 comments

Comments

@endingisnight
Copy link

Information

  1. Apktool Version (apktool -version) - v2.9.2-64-62ad27a5-SNAPSHOT
  2. Operating System (Mac, Linux, Windows) - Linux
  3. APK From? (Playstore, ROM, Other) - hell (see APK)
  4. Java Version (java --version) -
openjdk version "1.8.0_422"
OpenJDK Runtime Environment (build 1.8.0_422-b05)
OpenJDK 64-Bit Server VM (build 25.422-b05, mixed mode)

Stacktrace/Logcat

Exception in thread "main" brut.androlib.exceptions.AndrolibException: unsupported res type name for bags. Found: c
        at brut.androlib.res.data.value.ResValueFactory.bagFactory(ResValueFactory.java:102)
        at brut.androlib.res.decoder.ARSCDecoder.readComplexEntry(ARSCDecoder.java:462)
        at brut.androlib.res.decoder.ARSCDecoder.readEntryData(ARSCDecoder.java:383)
        at brut.androlib.res.decoder.ARSCDecoder.readTableType(ARSCDecoder.java:340)
        at brut.androlib.res.decoder.ARSCDecoder.readResourceTable(ARSCDecoder.java:96)
        at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:44)
        at brut.androlib.res.data.ResTable.loadResPackagesFromApk(ResTable.java:182)
        at brut.androlib.res.data.ResTable.loadMainPkg(ResTable.java:134)
        at brut.androlib.res.ResourcesDecoder.decodeResources(ResourcesDecoder.java:153)
        at brut.androlib.ApkDecoder.decode(ApkDecoder.java:147)
        at brut.apktool.Main.cmdDecode(Main.java:220)
        at brut.apktool.Main.main(Main.java:92)

Steps to Reproduce

apktool decode --output 'out' 'GT.OTA.Helper_en.apk'

Frameworks

If this APK is from an OEM ROM (Samsung, HTC, LG). Please attach framework files
(.apks that live in /system/framework or /system/priv-app)

Not sure if it is..

APK

https://github.com/qiurigao/RMX2202/releases/download/1.1.0/GT.OTA.Helper_en.apk

Questions to ask before submission

  1. Have you tried apktool d, apktool b without changing anything? n/a
  2. If you are trying to install a modified apk, did you resign it? n/a
  3. Are you using the latest apktool version? yup
@iBotPeaches
Copy link
Owner

Exception in thread "main" brut.androlib.exceptions.AndrolibException: unsupported res type name for bags. Found: c

Interesting - what type is "c"

@endingisnight
Copy link
Author

Interesting - what type is "c"

that's what I came here to figure out :)

@endingisnight
Copy link
Author

Ah, it threw an exception so I thought it was a bug. Since this is out of the realm of apktool I'll close the issue.

@iBotPeaches
Copy link
Owner

I haven't reviewed this yet, could be bug.

@iBotPeaches iBotPeaches reopened this Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants