backdoor-apk icon indicating copy to clipboard operation
backdoor-apk copied to clipboard

Failed to recompile original project with backdoor

Open majid-d opened this issue 5 years ago • 6 comments

"Failed to recompile original project with backdoor" Stuck at this process, i have tried with other .apk files but no success using Parrot OS the latest version on virtual box am i the only one confronting with this issue ?

majid-d avatar Sep 03 '19 16:09 majid-d

hello,i had the same issue with that process?,i don't know how to do ,please tell me if you knew already.thanks

yeguangxiadedaya avatar Jan 13 '20 06:01 yeguangxiadedaya

oh my friend, no I am with this problem too, I've kali 19 roling and probe diferent options and nothing to do if you know how do it please write me, thanks.

sindikto avatar Jan 18 '20 17:01 sindikto

Devem instalar zipalign. sudo apt-get install zipalign

Alexandre-ux avatar Mar 29 '20 15:03 Alexandre-ux

Devem instalar zipalign. sudo apt-get install zipalign

that doesn't solve the problem for me .... normal decompile and recompile works just fine I tried changing the apktools.jar zipalign is installed installed lib32ncurses5 changed to java 8 no luck yet.


this is the run.log error


invoke-static {}, Lcom/snaptube/premium/gjqzy/Jlwfr;->start()V The smali file was hooked successfully 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 Landroid/support/v4/util/LongSparseArray;->clone()Landroid/support/v4/util/LongSparseArray; 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 0x13 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: 65537 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

Forcing cleanup due to a failure or error state!

frostKn avatar Aug 02 '20 09:08 frostKn

Alright here is how I fixed the error : first, check if these r installed

ib32z1 lib32ncurses5 lib32stdc++6

then,

apt-get purge apktool

and now we will install it manually go to https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool and copy everything to a blank file and name it apktool

now give it permissions by

chmod +x apktool

download the latest apktool from here https://bitbucket.org/iBotPeaches/apktool/downloads/ and rename it apktool.jar

give it permissions

chmod +x apktool.jar

now move both of them to /usr/local/bin

sudo mv apktool /usr/local/bin && sudo mv apktool.jar /usr/local/bin

now apktool in terminal and see if it works.

i am using java11 with no issues but if r still having problems try changing it to java8 by

update-alternatives --config java

frostKn avatar Aug 02 '20 13:08 frostKn

chmod +x apktool_2.4.1.jar

ghost avatar Sep 04 '20 03:09 ghost

Always use the latest version of Apktool.

dana-at-cp avatar Sep 12 '22 16:09 dana-at-cp