sky201503 / android-apktool2

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

[Error]Error in decode Backup.apk [MIUI] #249

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi :) i have some error when try to decode Backup.apk :)

[code]
[root@clshackArch Desktop]# java -jar apktool.jar d Backup.apk backup
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: /root/apktool/framework/1.apk
I: Loaded.
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, 
name=textColor, value=0x01060084
W: Could not decode attr value, using undecoded value instead: ns=android, 
name=textColor, value=0x01060084
I: Decoding values*/* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 
0x01060084
    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.encodeAsResXmlAttr(ResScalarValue.java:43)
    at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:40)
    at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:315)
    at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
    at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
    at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
    at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:46)
    at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
    at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100)
    at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:86)
    at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:132)
    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)

[/code]

Original issue reported on code.google.com by alessio.dallapiazza on 2 Dec 2011 at 11:54

Attachments:

GoogleCodeExporter commented 9 years ago
load the framework-miui-res.apk as well as the framework-res.apk when using 
apktool if framework-res.apk for example :-)

Original comment by markhedl...@gmail.com on 3 Jan 2012 at 10:38

GoogleCodeExporter commented 9 years ago
Yes, load MIUI frameworks.

Original comment by connor.tumbleson on 17 Nov 2012 at 6:48