sky201503 / android-apktool2

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

Exception When Decoding Phone.apk from Shooter (EVO3D) #210

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
C:\Test\PhoneTest>apktool.bat d Phone.apk ./Phone.apk_out
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Derek\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\Derek\apktool\framework\2.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, 
name=text, value=0x7f0d045c
W: Could not decode attr value, using undecoded value instead: ns=android, 
name=text, value=0x7f0d045b
I: Decoding values*/* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 
0x7f0d045c
        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:120)
        at brut.apktool.Main.main(Main.java:57)

What is the expected output? What do you see instead?

No exception

What version of the product are you using? On what operating system?

Tried this on 1.4.2, 1.3.2, 1.3.1

Please provide any additional information below.

Original issue reported on code.google.com by derekrey...@gmail.com on 29 Aug 2011 at 6:46

GoogleCodeExporter commented 9 years ago
Here is the stock Phone.apk from shooter (EVO3D) 2.08 OTA

Original comment by derekrey...@gmail.com on 29 Aug 2011 at 6:49

Attachments:

GoogleCodeExporter commented 9 years ago
Appears to be corrupt Phone.apk..

Please close.

Original comment by derekrey...@gmail.com on 29 Aug 2011 at 7:40

GoogleCodeExporter commented 9 years ago
Yeah, I think it's corrupted. You can fix these errors by hand.

Original comment by Brut.alll on 5 Nov 2011 at 10:14