Skip to content

[BUG] Apktool can't unpack com.foreo.foreoapp's resources #4059

@johnnybgoode1885

Description

@johnnybgoode1885

Information

  1. Apktool Version (apktool -version) - v2.12.1-41-07ae073b-SNAPSHOT
  2. Operating System (Mac, Linux, Windows) - Linux
  3. APK From? (Playstore, ROM, Other) - tried both playstore and apkmirror's
  4. Java Version (java --version) - 25.0.1

Stacktrace/Logcat

Exception in thread "main" java.lang.IllegalArgumentException: Chunk [ font-family:Avenir-Roman] is not a valid entry
        at com.google.common.base.Preconditions.checkArgument(Preconditions.java:217)
        at com.google.common.base.Splitter$MapSplitter.split(Splitter.java:507)
        at brut.androlib.res.decoder.data.StyledString$Span.getAttributes(StyledString.java:167)
        at brut.androlib.res.decoder.data.StyledString.decodeIterate(StyledString.java:89)
        at brut.androlib.res.decoder.data.StyledString.decode(StyledString.java:75)
        at brut.androlib.res.decoder.data.StyledString.toString(StyledString.java:60)
        at brut.androlib.res.decoder.data.ResStringPool.getHTML(ResStringPool.java:196)
        at brut.androlib.res.decoder.BinaryResourceParser.parseItem(BinaryResourceParser.java:668)
        at brut.androlib.res.decoder.BinaryResourceParser.parseItem(BinaryResourceParser.java:652)
        at brut.androlib.res.decoder.BinaryResourceParser.parseEntry(BinaryResourceParser.java:600)
        at brut.androlib.res.decoder.BinaryResourceParser.parseType(BinaryResourceParser.java:410)
        at brut.androlib.res.decoder.BinaryResourceParser.parsePackage(BinaryResourceParser.java:253)
        at brut.androlib.res.decoder.BinaryResourceParser.parseTable(BinaryResourceParser.java:181)
        at brut.androlib.res.decoder.BinaryResourceParser.parse(BinaryResourceParser.java:110)
        at brut.androlib.res.table.ResTable.loadResPackagesFromApk(ResTable.java:99)
        at brut.androlib.res.table.ResTable.loadMainPackage(ResTable.java:75)
        at brut.androlib.res.ResourcesDecoder.decodeResources(ResourcesDecoder.java:69)
        at brut.androlib.ApkDecoder.decodeResources(ApkDecoder.java:212)
        at brut.androlib.ApkDecoder.decode(ApkDecoder.java:82)
        at brut.apktool.Main.cmdDecode(Main.java:506)
        at brut.apktool.Main.main(Main.java:315)

Steps to Reproduce

  1. apktool -d -f com.foreo.apk

APK

https://apkpure.com/foreo-for-you/com.foreo.foreoapp

Questions to ask before submission

  • Have you tried apktool d, apktool b without changing anything?
    Yes

  • Are you using the latest apktool version?
    Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions