iBotPeaches / Apktool

A tool for reverse engineering Android apk files
https://apktool.org/
Apache License 2.0
20.27k stars 3.59k forks source link

Exception in thread "main" unacceptable character #FFFD special characters are not allowed #471

Closed iBotPeaches closed 9 years ago

iBotPeaches commented 9 years ago

Original issue 360 created by hank.whu on 2012-11-30T03:31:39.000Z:

D:\apk>apktool b -f doudizhi doudizhi.apk Exception in thread "main" unacceptable character #FFFD special characters are not allowed in "<reader>", position 36 at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:68) at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:159) at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:117) at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:106) at org.yaml.snakeyaml.scanner.ScannerImpl.scanToNextToken(ScannerImpl.java:964) at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:237) at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183) at org.yaml.snakeyaml.parser.ParserImpl$ParseImplicitDocumentStart.produce(ParserImpl.java:200) at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163) at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148) at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:104) at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124) at org.yaml.snakeyaml.Yaml.load(Yaml.java:264) at org.yaml.snakeyaml.Yaml.load(Yaml.java:250) at brut.androlib.Androlib.readMetaFile(Androlib.java:160) at brut.androlib.Androlib.build(Androlib.java:179) at brut.androlib.Androlib.build(Androlib.java:174) at brut.apktool.Main.cmdBuild(Main.java:188) at brut.apktool.Main.main(Main.java:70)

iBotPeaches commented 9 years ago

Comment #1 originally posted by hank.whu on 2012-11-30T03:32:14.000Z:

file:doudizhu.apk

iBotPeaches commented 9 years ago

Comment #2 originally posted by hank.whu on 2012-11-30T03:33:07.000Z:

<empty>

iBotPeaches commented 9 years ago

Comment #3 originally posted by connor.tumbleson on 2012-11-30T03:54:57.000Z:

We a couple versions behind w/ snakeyaml so hopefully that'll fix it.

iBotPeaches commented 9 years ago

Comment #4 originally posted by connor.tumbleson on 2012-12-19T14:16:00.000Z:

I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/ibotpeaches/apktool/framework/1.apk
I: Loaded.
I: Regular manifest package....
I: Decoding file-resources...
I: Decoding values _/_ XMLs...
I: Done.
I: Copying assets and libs...
ibotpeaches@raganok:~/Downloads/Apktool$ apktool b doudizhu
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
I: Building apk file...
ibotpeaches@raganok:~/Downloads/Apktool$ 

Works fine after upgrade to snakeyaml to 1.11.

Fixed