kikfox / ARSCTool

Convert android resources.arsc from/to xml
23 stars 6 forks source link

Depth out of bounds #3

Open cqsniha opened 1 year ago

cqsniha commented 1 year ago

As you can see,It can not deal with depth more than 3 levels. ![Uploading 16680055789201194173028405090771.jpg…]() I: 00.015 Dumping ... 'D:\platform-tools\Java\resources.arsc' Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3 at com.kikfox.lib.arsc.AItemString.decodeUtf8StringByteLength(AItemString.java:388) at com.kikfox.lib.arsc.AItemString.decodeString(AItemString.java:358) at com.kikfox.lib.arsc.AItemString.decodeString(AItemString.java:205) at com.kikfox.lib.arsc.AItemString.onBytesChanged(AItemString.java:213) at com.kikfox.lib.arsc.AItemString.loadBytes(AItemString.java:92) at com.kikfox.lib.arsc.ARSCArrayOffsets.loadItemBytes(ARSCArrayOffsets.java:49) at com.kikfox.lib.arsc.ARSCBlockArray.loadBytes(ARSCBlockArray.java:31) at com.kikfox.lib.arsc.ARSCBlockArray.loadItemBytes(ARSCBlockArray.java:39) at com.kikfox.lib.arsc.ARSCBlockArray.loadBytes(ARSCBlockArray.java:31) at com.kikfox.lib.arsc.ARSCResource.loadBodyBytes(ARSCResource.java:65) at com.kikfox.lib.arsc.ARSCResource.loadItemBytes(ARSCResource.java:56) at com.kikfox.lib.arsc.ARSCBlockArray.loadBytes(ARSCBlockArray.java:31) at com.kikfox.lib.arsc.ARSCBlockArray.loadItemBytes(ARSCBlockArray.java:39) at com.kikfox.lib.arsc.ARSCBlockArray.loadBytes(ARSCBlockArray.java:31) at com.kikfox.lib.arsc.ARSCResource.loadBodyBytes(ARSCResource.java:65) at com.kikfox.lib.arsc.ARSCResource.loadItemBytes(ARSCResource.java:56) at com.kikfox.lib.arsc.ARSCBlockArray.loadBytes(ARSCBlockArray.java:31) at com.command.CommandDump.dump(CommandDump.java:35) at com.command.CommandDump.run(CommandDump.java:28) at com.command.BaseCommand.parse(BaseCommand.java:36) at com.command.CommandDump.parse(CommandDump.java:13) at com.command.Command.run(Command.java:34) at com.kikfox.arscTool.Main.main(Main.java:15)

cqsniha commented 1 year ago

Really useful tool!Hope you fix it.Thanks very much

REAndroid commented 1 year ago

Really useful tool!Hope you fix it.Thanks very much

Check this tool:

https://github.com/REAndroid/APKEditor

cqsniha commented 1 year ago

Really useful tool!Hope you fix it.Thanks very much

Check this tool:

https://github.com/REAndroid/APKEditor

Thanks!