Closed ghost closed 5 years ago
Your dex file has too many method references
Ok, thanks, I'll check that out.
*] Rebuilding apk with meterpreter injection as /tmp/d20200613-1624-1iltt0j/output.apk [-] I: Using Apktool 2.4.1 I: Checking whether sources has changed... I: Smaling smali folder into classes.dex... Exception in thread "main" org.jf.util.ExceptionWithContext: Exception occurred while writing code_item for method Lafdh;->a()[[Ljava/lang/String; at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:917) at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:341) at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:297) at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:61) at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:36) at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:418) at brut.androlib.Androlib.buildSources(Androlib.java:349) at brut.androlib.Androlib.build(Androlib.java:301) at brut.androlib.Androlib.build(Androlib.java:268) at brut.apktool.Main.cmdBuild(Main.java:251) at brut.apktool.Main.main(Main.java:79) Caused by: org.jf.util.ExceptionWithContext: Error while writing instruction at code offset 0x2 at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:1190) at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:913) ... 10 more Caused by: org.jf.util.ExceptionWithContext: Unsigned short value out of range: 65580 at org.jf.dexlib2.writer.DexDataWriter.writeUshort(DexDataWriter.java:116) at org.jf.dexlib2.writer.InstructionWriter.write(InstructionWriter.java:356) at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:1150) ... 11 more
Error: Unable to rebuild apk with apktool i need solution for this i tried number of days but no solution please help me
script kiddie up to no good...
I've modified the .smali files and have hit some sort limit where a short is required in an instruction but my value is too high. It would be nice to know what limit I hit so I can massage things differently.
I've counted the methods and that doesn't seem to be it
Maybe it's an offset or an index of some kind which requires a short. Throwing an exception showing what index or offset I overflowed would be great.
There's zip file of the directory in www.sonic.net/~crb/wyze.zip
Thanks for the wonderful work.