sky201503 / android-apktool2

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

NullPointerException in Writer #186

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I have problem with decode Locus apk file. See bellow:

>apktool.bat d -f --keep-broken-res 1.8.10.4.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\user\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, 
name=fragment, value=0x00000008
Exception in thread "main" java.lang.NullPointerException
        at java.io.Writer.write(Unknown Source)
        at brut.androlib.res.util.ExtMXSerializer.writeAttributeValue(ExtMXSerializer.java:38)
        at org.xmlpull.mxp1_serializer.MXSerializer.attribute(MXSerializer.java:673)
        at org.xmlpull.v1.wrapper.classic.XmlSerializerDelegate.attribute(XmlSerializerDelegate.java:106)
        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)

This apk is located at: http://forum.asamm.cz/viewtopic.php?f=25&t=613

I use the latest ApkTool ver 1.4.1 on Windows 7 x64 Czech, Java 1.6.0_26-b03 
x86.

Original issue reported on code.google.com by martin.sloup on 27 Jun 2011 at 6:27

GoogleCodeExporter commented 9 years ago
Sorry, my mistake. I forgot to delete old framework apk from profile. :)

Original comment by martin.sloup on 27 Jun 2011 at 6:33

GoogleCodeExporter commented 9 years ago
Issue 216 has been merged into this issue.

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

GoogleCodeExporter commented 9 years ago
Issue 226 has been merged into this issue.

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

GoogleCodeExporter commented 9 years ago

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