New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StringIndexOutOfBoundsException when decompile Adobe Reader APK #307

Closed
iBotPeaches opened this Issue Mar 18, 2015 · 23 comments

Comments

Projects
None yet
1 participant
@iBotPeaches
Owner

iBotPeaches commented Mar 18, 2015

Original issue 196 created by dharm82465 on 2011-07-14T21:06:34.000Z:

What steps will reproduce the problem?

  1. try to decompile an APK file "com.adobe.reader.apk" using the following command:

java -jar apktool1.4.2.269870b.jar d -com.adobe.reader.apk

What is the expected output? What do you see instead?
Got the following exception:

I: Baksmaling...
I: Loading resource table...
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 33471
at java.lang.String.substring(String.java:1934)
at brut.androlib.res.decoder.StringBlock.getHTML(StringBlock.java:161)
at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:222)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:177)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:105)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:50)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:43)
at brut.androlib.Androlib.getResTable(Androlib.java:44)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)

What version of the product are you using? On what operating system?

apktool1.4.2.269870b.jar on Mac OS 10.7.4

Please provide any additional information below.

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #1 originally posted by acetimes on 2011-07-22T05:20:32.000Z:

I got the same problem , anyone could help me ??

Owner

iBotPeaches commented Mar 18, 2015

Comment #1 originally posted by acetimes on 2011-07-22T05:20:32.000Z:

I got the same problem , anyone could help me ??

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #2 originally posted by Brut.alll on 2011-11-05T20:55:07.000Z:

<empty>

Owner

iBotPeaches commented Mar 18, 2015

Comment #2 originally posted by Brut.alll on 2011-11-05T20:55:07.000Z:

<empty>

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #3 originally posted by Brut.alll on 2011-11-28T23:28:41.000Z:

This isn't a 169.

Owner

iBotPeaches commented Mar 18, 2015

Comment #3 originally posted by Brut.alll on 2011-11-28T23:28:41.000Z:

This isn't a 169.

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #4 originally posted by cskarthik on 2013-03-15T07:10:52.000Z:

Not fixed in latest Apktool v1.5.2

Owner

iBotPeaches commented Mar 18, 2015

Comment #4 originally posted by cskarthik on 2013-03-15T07:10:52.000Z:

Not fixed in latest Apktool v1.5.2

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #5 originally posted by connor.tumbleson on 2013-03-16T03:39:58.000Z:

Don't think I've said I've fixed it.

This seems to be same problem with outdated XML parser library. Dmitry might help with this.

Owner

iBotPeaches commented Mar 18, 2015

Comment #5 originally posted by connor.tumbleson on 2013-03-16T03:39:58.000Z:

Don't think I've said I've fixed it.

This seems to be same problem with outdated XML parser library. Dmitry might help with this.

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #6 originally posted by cskarthik on 2013-03-16T14:02:00.000Z:

Thanks Connor.

Owner

iBotPeaches commented Mar 18, 2015

Comment #6 originally posted by cskarthik on 2013-03-16T14:02:00.000Z:

Thanks Connor.

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #7 originally posted by jan@flowpilots.com on 2013-04-16T13:04:49.000Z:

Any news on this, I have the same issue.

Owner

iBotPeaches commented Mar 18, 2015

Comment #7 originally posted by jan@flowpilots.com on 2013-04-16T13:04:49.000Z:

Any news on this, I have the same issue.

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #8 originally posted by cskarthik on 2013-04-17T05:15:11.000Z:

Haven't heard about a fix yet. For now I have seen this issue on only one
apk (Adobe Reader)

Owner

iBotPeaches commented Mar 18, 2015

Comment #8 originally posted by cskarthik on 2013-04-17T05:15:11.000Z:

Haven't heard about a fix yet. For now I have seen this issue on only one
apk (Adobe Reader)

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #9 originally posted by jan@flowpilots.com on 2013-04-17T06:03:54.000Z:

I have this issue on an apk we just built, on Mac OS X 1.8.2 using apktool 1.5.2 (with smali 1.4.1).

I tried building the apktool, which includes smali 1.4.2, from source, but the tests seem to fail on my machine :(

Any thoughts on how to fix this?

Owner

iBotPeaches commented Mar 18, 2015

Comment #9 originally posted by jan@flowpilots.com on 2013-04-17T06:03:54.000Z:

I have this issue on an apk we just built, on Mac OS X 1.8.2 using apktool 1.5.2 (with smali 1.4.1).

I tried building the apktool, which includes smali 1.4.2, from source, but the tests seem to fail on my machine :(

Any thoughts on how to fix this?

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #10 originally posted by connor.tumbleson on 2013-04-17T11:40:16.000Z:

Send me the source of that APK. The problem isn't dex related, so different smali(s) won't help at all. The problem comes down to some length that isn't being read correctly thus falling out of bounds.

I've been tracing similar problems for weeks in hopes to fix for Apktool 2.0. If you'd like to help the problem starts, I believe, at the AXmlResourceParser which passes bad values to StringBlock, which fails.

Having the source will allow me to see whats in the /values folder and AndroidManifest prior to decompilation, which might speed up the process of tracking this down.

Owner

iBotPeaches commented Mar 18, 2015

Comment #10 originally posted by connor.tumbleson on 2013-04-17T11:40:16.000Z:

Send me the source of that APK. The problem isn't dex related, so different smali(s) won't help at all. The problem comes down to some length that isn't being read correctly thus falling out of bounds.

I've been tracing similar problems for weeks in hopes to fix for Apktool 2.0. If you'd like to help the problem starts, I believe, at the AXmlResourceParser which passes bad values to StringBlock, which fails.

Having the source will allow me to see whats in the /values folder and AndroidManifest prior to decompilation, which might speed up the process of tracking this down.

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #11 originally posted by cskarthik on 2013-04-18T04:48:43.000Z:

Connor .. I don't have ths source for the APK I am using. I am using some third party APK. Jan, do you have source you can provide Connor?

Owner

iBotPeaches commented Mar 18, 2015

Comment #11 originally posted by cskarthik on 2013-04-18T04:48:43.000Z:

Connor .. I don't have ths source for the APK I am using. I am using some third party APK. Jan, do you have source you can provide Connor?

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #12 originally posted by reg987 on 2013-10-05T16:02:31.000Z:

I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: H:\Users\Zaxk\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values_/_ XMLs...
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String ind
ex out of range: 4
at java.lang.String.charAt(Unknown Source)
at brut.androlib.res.xml.ResXmlEncoders.findNonPositionalSubstitutions(R
esXmlEncoders.java:165)
at brut.androlib.res.xml.ResXmlEncoders.hasMultipleNonPositionalSubstitu
tions(ResXmlEncoders.java:138)
at brut.androlib.res.data.value.ResStringValue.serializeExtraXmlAttrs(Re
sStringValue.java:63)
at brut.androlib.res.data.value.ResScalarValue.serializeToResValuesXml(R
esScalarValue.java:65)
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)

Owner

iBotPeaches commented Mar 18, 2015

Comment #12 originally posted by reg987 on 2013-10-05T16:02:31.000Z:

I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: H:\Users\Zaxk\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values_/_ XMLs...
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String ind
ex out of range: 4
at java.lang.String.charAt(Unknown Source)
at brut.androlib.res.xml.ResXmlEncoders.findNonPositionalSubstitutions(R
esXmlEncoders.java:165)
at brut.androlib.res.xml.ResXmlEncoders.hasMultipleNonPositionalSubstitu
tions(ResXmlEncoders.java:138)
at brut.androlib.res.data.value.ResStringValue.serializeExtraXmlAttrs(Re
sStringValue.java:63)
at brut.androlib.res.data.value.ResScalarValue.serializeToResValuesXml(R
esScalarValue.java:65)
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)

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #13 originally posted by reg987 on 2013-10-05T16:03:47.000Z:

I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: H:\Users\Zaxk\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values_/_ XMLs...
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String ind
ex out of range: 4
at java.lang.String.charAt(Unknown Source)
at brut.androlib.res.xml.ResXmlEncoders.findNonPositionalSubstitutions(R
esXmlEncoders.java:165)
at brut.androlib.res.xml.ResXmlEncoders.hasMultipleNonPositionalSubstitu
tions(ResXmlEncoders.java:138)
at brut.androlib.res.data.value.ResStringValue.serializeExtraXmlAttrs(Re
sStringValue.java:63)
at brut.androlib.res.data.value.ResScalarValue.serializeToResValuesXml(R
esScalarValue.java:65)
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)


apktool 1.5.2 on win8 x6x

Owner

iBotPeaches commented Mar 18, 2015

Comment #13 originally posted by reg987 on 2013-10-05T16:03:47.000Z:

I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: H:\Users\Zaxk\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values_/_ XMLs...
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String ind
ex out of range: 4
at java.lang.String.charAt(Unknown Source)
at brut.androlib.res.xml.ResXmlEncoders.findNonPositionalSubstitutions(R
esXmlEncoders.java:165)
at brut.androlib.res.xml.ResXmlEncoders.hasMultipleNonPositionalSubstitu
tions(ResXmlEncoders.java:138)
at brut.androlib.res.data.value.ResStringValue.serializeExtraXmlAttrs(Re
sStringValue.java:63)
at brut.androlib.res.data.value.ResScalarValue.serializeToResValuesXml(R
esScalarValue.java:65)
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)


apktool 1.5.2 on win8 x6x

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #14 originally posted by reg987 on 2013-10-05T16:10:01.000Z:

apktool 1.5.2 on win8 x64

apktool.jar d "aa.apk"

I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: H:\Users\Zaxk\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values_/_ XMLs...
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String ind
ex out of range: 4
at java.lang.String.charAt(Unknown Source)
at brut.androlib.res.xml.ResXmlEncoders.findNonPositionalSubstitutions(R
esXmlEncoders.java:165)
at brut.androlib.res.xml.ResXmlEncoders.hasMultipleNonPositionalSubstitu
tions(ResXmlEncoders.java:138)
at brut.androlib.res.data.value.ResStringValue.serializeExtraXmlAttrs(Re
sStringValue.java:63)
at brut.androlib.res.data.value.ResScalarValue.serializeToResValuesXml(R
esScalarValue.java:65)
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)

Owner

iBotPeaches commented Mar 18, 2015

Comment #14 originally posted by reg987 on 2013-10-05T16:10:01.000Z:

apktool 1.5.2 on win8 x64

apktool.jar d "aa.apk"

I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: H:\Users\Zaxk\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values_/_ XMLs...
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String ind
ex out of range: 4
at java.lang.String.charAt(Unknown Source)
at brut.androlib.res.xml.ResXmlEncoders.findNonPositionalSubstitutions(R
esXmlEncoders.java:165)
at brut.androlib.res.xml.ResXmlEncoders.hasMultipleNonPositionalSubstitu
tions(ResXmlEncoders.java:138)
at brut.androlib.res.data.value.ResStringValue.serializeExtraXmlAttrs(Re
sStringValue.java:63)
at brut.androlib.res.data.value.ResScalarValue.serializeToResValuesXml(R
esScalarValue.java:65)
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)

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #15 originally posted by connor.tumbleson on 2013-10-05T16:11:07.000Z:

Comment # 13 error is not the same as OP error, and is actually probably fixed in 2.0. The original OP error is still a valid one.

Owner

iBotPeaches commented Mar 18, 2015

Comment #15 originally posted by connor.tumbleson on 2013-10-05T16:11:07.000Z:

Comment # 13 error is not the same as OP error, and is actually probably fixed in 2.0. The original OP error is still a valid one.

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #16 originally posted by reg987 on 2013-10-05T16:15:04.000Z:

apktool 1.5.2 on win8 x64

apktool.jar d "aa.apk"

I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: H:\Users\Zaxk\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values_/_ XMLs...
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String ind
ex out of range: 4
at java.lang.String.charAt(Unknown Source)
at brut.androlib.res.xml.ResXmlEncoders.findNonPositionalSubstitutions(R
esXmlEncoders.java:165)
at brut.androlib.res.xml.ResXmlEncoders.hasMultipleNonPositionalSubstitu
tions(ResXmlEncoders.java:138)
at brut.androlib.res.data.value.ResStringValue.serializeExtraXmlAttrs(Re
sStringValue.java:63)
at brut.androlib.res.data.value.ResScalarValue.serializeToResValuesXml(R
esScalarValue.java:65)
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)

Owner

iBotPeaches commented Mar 18, 2015

Comment #16 originally posted by reg987 on 2013-10-05T16:15:04.000Z:

apktool 1.5.2 on win8 x64

apktool.jar d "aa.apk"

I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: H:\Users\Zaxk\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values_/_ XMLs...
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String ind
ex out of range: 4
at java.lang.String.charAt(Unknown Source)
at brut.androlib.res.xml.ResXmlEncoders.findNonPositionalSubstitutions(R
esXmlEncoders.java:165)
at brut.androlib.res.xml.ResXmlEncoders.hasMultipleNonPositionalSubstitu
tions(ResXmlEncoders.java:138)
at brut.androlib.res.data.value.ResStringValue.serializeExtraXmlAttrs(Re
sStringValue.java:63)
at brut.androlib.res.data.value.ResScalarValue.serializeToResValuesXml(R
esScalarValue.java:65)
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)

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #17 originally posted by reg987 on 2013-10-05T16:19:07.000Z:

Where can I download 2.0?

Owner

iBotPeaches commented Mar 18, 2015

Comment #17 originally posted by reg987 on 2013-10-05T16:19:07.000Z:

Where can I download 2.0?

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #18 originally posted by xuweimdm on 2013-10-14T13:02:26.000Z:

i have the same issue.and how to use the 2.0? 2.0 seems like a document of jar?

Owner

iBotPeaches commented Mar 18, 2015

Comment #18 originally posted by xuweimdm on 2013-10-14T13:02:26.000Z:

i have the same issue.and how to use the 2.0? 2.0 seems like a document of jar?

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #19 originally posted by xuweimdm on 2013-10-14T13:09:31.000Z:

i have just tried the 2.0 and found the same issue.

Owner

iBotPeaches commented Mar 18, 2015

Comment #19 originally posted by xuweimdm on 2013-10-14T13:09:31.000Z:

i have just tried the 2.0 and found the same issue.

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #20 originally posted by connor.tumbleson on 2013-10-14T16:02:00.000Z:

As would be expected, as this bug report isn't marked as "Fixed".

Owner

iBotPeaches commented Mar 18, 2015

Comment #20 originally posted by connor.tumbleson on 2013-10-14T16:02:00.000Z:

As would be expected, as this bug report isn't marked as "Fixed".

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #21 originally posted by Ineedtogo on 2013-12-14T19:08:58.000Z:

I have the same error.
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -68
at java.lang.String.substring(Unknown Source)

I attach apk. I hope this will help you to fix the error.

Owner

iBotPeaches commented Mar 18, 2015

Comment #21 originally posted by Ineedtogo on 2013-12-14T19:08:58.000Z:

I have the same error.
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -68
at java.lang.String.substring(Unknown Source)

I attach apk. I hope this will help you to fix the error.

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #22 originally posted by connor.tumbleson on 2013-12-19T01:51:41.000Z:

Seems some apk's are abusing a string length miscalculation in apktool.

The problematic function getHTML() of StringBlock.java seems to be the cause. Will investigate when more time is present.

Owner

iBotPeaches commented Mar 18, 2015

Comment #22 originally posted by connor.tumbleson on 2013-12-19T01:51:41.000Z:

Seems some apk's are abusing a string length miscalculation in apktool.

The problematic function getHTML() of StringBlock.java seems to be the cause. Will investigate when more time is present.

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #23 originally posted by connor.tumbleson on 2014-02-10T02:47:44.000Z:

The chinese apk fixed: d90bea1

The OP issue fixed: ca314b9

Owner

iBotPeaches commented Mar 18, 2015

Comment #23 originally posted by connor.tumbleson on 2014-02-10T02:47:44.000Z:

The chinese apk fixed: d90bea1

The OP issue fixed: ca314b9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment