Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to go from cracked APK to java code? 1-click tool cracked my app

Tags:

android

apk

So I published my android app, I proguarded it, applied LVL and even changed some of the LVL code but offcourse, I found it cracked somewhere using a tool called Lucky Patcher. I am not going to ask how can I protect against 1 click tools like that, as I guess there is no single answer ( unless you have an idea and can point me toward).

I need to ask you to help figure out how my code was cracked. I understand that this tool takes APK file and removes licensing. Now given that, how can I take this APK file and reverse engineer it back to Java files to see how the tool cracked my code (so I fix it)

Please help me Thanks

like image 843
Snake Avatar asked Jun 05 '12 20:06

Snake


2 Answers

After Proguard, there's no way to decompile your code into humanly-readable Java.
While it makes the reverse engineering process more difficult, it's not impossible for a clever reverser to figure out the hidden algorithm.

As for tools,
Use android-apktool to decompile to smali and extract all the encoded xml resources.
Use dex2jar to translate Dalvik into jar and finally jd-gui to see the resulting reversed java code

like image 98
eladr Avatar answered Sep 28 '22 03:09

eladr


There's a lot of info here on how to go from a DEX file back to Java source. Also, have you looked at this blog post which addresses many of the ways to protect your source?

like image 38
scorpiodawg Avatar answered Sep 28 '22 04:09

scorpiodawg