desword / android-apktool

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

NullPointException #723

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Decompiling the SecContacts.apk attached.

What is the expected output? What do you see instead?
It should decompile all well, but what I get is below.
--------------------------------
D:\Android_old_sdk\fanbianyi\res\apktool-install-windows\xxx\apktool-install-win
dows-r05-ibot>apktool.bat d -s zappos.apk
I: Using Apktool 2.0.0-RC2 on zappos.apk
I: Loading resource table...
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\matrixxun\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, 
name=requiredAccountType, value=0x7f0e000f
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, 
name=fontFamily, value=0x00000014
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$1.event(XmlPullStreamDecoder.java:83)
        at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:141)
        at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:33)
        at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:107)
        at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:91)
        at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:322)
        at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:123)
        at brut.androlib.ApkDecoder.decode(ApkDecoder.java:102)
        at brut.apktool.Main.cmdDecode(Main.java:170)
        at brut.apktool.Main.main(Main.java:86)

What version of the product are you using? On what operating system?
I am using apktool_2.0.0RC2, on Windows 8.1.

Please provide any additional information below.

Original issue reported on code.google.com by matrix...@gmail.com on 8 Dec 2014 at 6:40

Attachments:

GoogleCodeExporter commented 9 years ago
ibotpeaches@raganok:~/Downloads/Apktool/Bug723$ apktool d zappos.apk 
I: Using Apktool 2.0.0-RC3 on zappos.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/ibotpeaches/apktool/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
ibotpeaches@raganok:~/Downloads/Apktool/Bug723$ 

Couldn't duplicate on RC3. Try reading FrameworkFiles and deleting the file at 
$HOME/apktool/framework/1.apk and trying again.

Not a bug.

Original comment by connor.tumbleson on 8 Dec 2014 at 1:38