What steps will reproduce the problem?
1.Version 1.3.1 will decompile certan apks while 1.4.1 will spit out errors
2.
3.
What is the expected output? What do you see instead?
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)
--------------------------------------------------------------------------
|Tue 08/23/2011 -- 21:29:52.71|
--------------------------------------------------------------------------
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)
I: Framework installed to: C:\Users\Zelendel\apktool\framework\2.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Zelendel\apktool\framework\1.apk
I: Loaded.
I: Loading resource table from file: C:\Users\Zelendel\apktool\framework\2.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String ind
ex out of range: 21
at java.lang.String.charAt(Unknown Source)
at brut.androlib.res.xml.ResXmlEncoders.findNonPositionalSubstitutions(R
esXmlEncoders.java:165)
at brut.androlib.res.xml.ResXmlEncoders.enumerateNonPositionalSubstituti
ons(ResXmlEncoders.java:142)
at brut.androlib.res.data.value.ResStringValue.encodeAsResXmlValue(ResSt
ringValue.java:45)
at brut.androlib.res.data.value.ResArrayValue.serializeToResValuesXml(Re
sArrayValue.java:55)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResour
ces.java:264)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:137
)
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)
Press any key to continue . . .
What version of the product are you using? On what operating system?
1.3.1 and 1.4.1 windows 7 64x
Please provide any additional information below.
Depending on the version apktool will error out on some apks while it wont do
it on the other version. Ex. Settings.apk will decompile fine on 1.3.1 but
errors out on 1.4.1, downloading provider will decompile on 1.4.1 but will
error out on 1.3.1
Original issue reported on code.google.com by dracus.d...@gmail.com on 24 Aug 2011 at 8:39
Original issue reported on code.google.com by
dracus.d...@gmail.com
on 24 Aug 2011 at 8:39