What steps will reproduce the problem?
1. Decompile the attached apk in debug mode.
What is the expected output? What do you see instead?
> java -jar apktool-cli.jar d -d -f C:\RE\Softs\TextFree\com.pinger.textfree.apk
I: Using Apktool 2.0.0-dirty on com.pinger.textfree.apk
I: Loading resource table...
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Yop\apktool\framework\1.apk
I: Regular manifest package...
[Fatal Error] AndroidManifest.xml:2:37: Element type "manifest" must be
followed by either attribute specifications, ">" or "/>".
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=, name=style,
value=0x7f010007
W: Could not decode attr value, using undecoded value instead: ns=, name=class,
value=0x00000003
Exception in thread "main" java.lang.NullPointerException
at java.io.Writer.write(Writer.java:157)
at brut.androlib.res.util.ExtMXSerializer.writeAttributeValue(ExtMXSerializer.java:38)
at org.xmlpull.mxp1_serializer.MXSerializer.attribute(MXSerializer.java:696)
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:87)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:146)
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:304)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:119)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:115)
at brut.apktool.Main.cmdDecode(Main.java:169)
at brut.apktool.Main.main(Main.java:85)
==============================================
> java -jar apktool-cli.jar d -d -r -f
C:\RE\Softs\TextFree\com.pinger.textfree.apk
I: Using Apktool 2.0.0-dirty on com.pinger.textfree.apk
I: Loading resource table...
I: Loading resource table...
I: Copying raw resources...
I: Baksmaling...
testException in thread "main" brut.androlib.AndrolibException:
brut.androlib.AndrolibException: java.nio.charset.UnmappableCharacterException:
Input length = 1
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:80)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:140)
at brut.apktool.Main.cmdDecode(Main.java:169)
at brut.apktool.Main.main(Main.java:85)
Caused by: brut.androlib.AndrolibException:
java.nio.charset.UnmappableCharacterException: Input length = 1
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:110)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:46)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:78)
... 3 more
Caused by: java.nio.charset.UnmappableCharacterException: Input length = 1
at java.nio.charset.CoderResult.throwException(CoderResult.java:278)
at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:285)
at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:125)
at java.io.OutputStreamWriter.write(OutputStreamWriter.java:207)
at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:129)
at java.io.BufferedWriter.close(BufferedWriter.java:264)
at brut.androlib.src.SmaliDecoder$SmaliFileVisitor.visitFile(SmaliDecoder.java:149)
at brut.androlib.src.SmaliDecoder$SmaliFileVisitor.visitFile(SmaliDecoder.java:122)
at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:135)
at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:199)
at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:199)
at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:199)
at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:199)
at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:199)
at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:69)
at java.nio.file.Files.walkFileTree(Files.java:2600)
at java.nio.file.Files.walkFileTree(Files.java:2633)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:107)
... 5 more
What version of the product are you using? On what operating system?
2.0.0b9 or 2.0.0 rev 11210a089671 on Windows 8
Please provide any additional information below.
Original issue reported on code.google.com by sageo.i...@gmail.com on 14 Mar 2014 at 10:02
Original issue reported on code.google.com by
sageo.i...@gmail.com
on 14 Mar 2014 at 10:02Attachments: