arshidkv12 / android-apktool

Automatically exported from code.google.com/p/android-apktool
0 stars 1 forks source link

Problem of loading resource table #753

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm running apkool_2.0.0rc3 to decode QQ_182.apk (link: 
http://gdown.baidu.com/data/wisegame/2c6a60c5cb96c593/QQ_182.apk) on a MAC 
10.10.1

And it gives me following error message:

$java -jar ~/Downloads/apktool_2.0.0rc3.jar d -f QQ_182.apk
I: Using Apktool 2.0.0-RC3 on QQ_182.apk
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple res specs: 
attr/0
    at brut.androlib.res.data.ResType.addResSpec(ResType.java:58)
    at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:182)
    at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:157)
    at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:125)
    at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:100)
    at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:78)
    at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)
    at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:606)
    at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:75)
    at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:67)
    at brut.androlib.Androlib.getResTable(Androlib.java:61)
    at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:206)
    at brut.androlib.ApkDecoder.decode(ApkDecoder.java:92)
    at brut.apktool.Main.cmdDecode(Main.java:165)
    at brut.apktool.Main.main(Main.java:81)

Any clue of why this happen? Thanks.

Original issue reported on code.google.com by wfg61100...@gmail.com on 30 Jan 2015 at 7:18

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Mine is the original 1.apk from apktool.

Original comment by wfg61100...@gmail.com on 1 Feb 2015 at 1:12

GoogleCodeExporter commented 9 years ago
This APK lacks a res folder and is showing some non-standard patterns of 
development. It doesn't match any known version of AOSP/Android I know, nor 
does it match any popular OEM (LG, Samsung, HTC).

This APK then is highly modified and Apktool cannot handle this. Unfortunately 
that means, this is unlikely to be fixed as these customized APK structs are 
closed source. 

Original comment by connor.tumbleson on 3 Feb 2015 at 9:45