Skip to content

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

@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions