sky201503 / android-apktool2

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

java.lang.IndexOutOfBoundsException #164

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. java -jar d:\temp\apktool.jar d -f -d --keep-broken-res Snaptic.Compass.apk

What is the expected output? What do you see instead?
Exception in thread "main" java.lang.IndexOutOfBoundsException
        at java.nio.ByteBuffer.wrap(Unknown Source)
        at brut.androlib.res.decoder.StringBlock.decodeString(StringBlock.java:2
81)
        at brut.androlib.res.decoder.StringBlock.getString(StringBlock.java:108)

        at brut.androlib.res.decoder.StringBlock.getHTML(StringBlock.java:124)
        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:10
5)
        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(AndrolibRes
ources.java:315)
        at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.jav
a:50)
        at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.jav
a: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?
Windows 7 64-bit
APKTOOL 1.4.1

Please provide any additional information below.

Original issue reported on code.google.com by gaochun...@gmail.com on 16 May 2011 at 4:35

GoogleCodeExporter commented 9 years ago
Issue attachment storage quota exceeded...

Original comment by gaochun...@gmail.com on 16 May 2011 at 4:43

GoogleCodeExporter commented 9 years ago
"Issue attachment storage quota exceeded..."

I know and I can't do anything about it. Upload it to multiupload.com, please.

Original comment by Brut.alll on 16 May 2011 at 7:04

GoogleCodeExporter commented 9 years ago
http://dstatic.esqimg.com/5196601/Snaptic.Compass.apk

Original comment by gaochun...@gmail.com on 16 May 2011 at 7:10

GoogleCodeExporter commented 9 years ago
Does this apk work on a device? It's broken, even if you open it using aapt 
you'll see warnings:

W/ResourceType( 6283): Bad string block: string #294 extends to 25267, past end 
at 23968
W/ResourceType( 6283): Bad string block: string #541 extends to 30889, past end 
at 23968

and I think decoded strings are broken too.

Original comment by Brut.alll on 16 May 2011 at 7:44

GoogleCodeExporter commented 9 years ago
install ok on nexus one, android 2.3.4.

Original comment by gaochun...@gmail.com on 16 May 2011 at 8:10

GoogleCodeExporter commented 9 years ago
I got the same problem,anyone could help me ??

Original comment by aceti...@gmail.com on 22 Jul 2011 at 5:18

GoogleCodeExporter commented 9 years ago

Original comment by connor.tumbleson on 16 Nov 2012 at 7:56