lnln1111 / android-apktool

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

Decompile 4.0.3 Phone failed #312

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. If framework miui-res, etc
2. Decompile Phone.apk
3.

What is the expected output? What do you see instead?
peaches@gemini-server:~$ apktool d Phone.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: /home/peaches/apktool/framework/1.apk
I: Loaded.
I: Decoding file-resources...
I: Loading resource table from file: /home/peaches/apktool/framework/2.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, 
name=textColor, value=0x0205009a
I: Decoding values*/* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 
0x0205002f
        at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
        at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
        at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
        at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:59)
        at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
        at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValue(ResScalarValue.java:54)
        at brut.androlib.res.data.value.ResScalarValue.serializeToResValuesXml(ResScalarValue.java:71)
        at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:264)
        at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:137)
        at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
        at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
        at brut.apktool.Main.cmdDecode(Main.java:128)
        at brut.apktool.Main.main(Main.java:65)

What version of the product are you using? On what operating system?
All up to date.

Please provide any additional information below.
Ubuntu and Centos

Original issue reported on code.google.com by iBotPeac...@gmail.com on 7 Mar 2012 at 4:50

GoogleCodeExporter commented 9 years ago
Your missing all the frameworks, probably the MIUI dummy frameworks located 
here: http://miui.connortumbleson.com/other/apktool/frameworks/

Original comment by connor.tumbleson on 17 Nov 2012 at 2:22