Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent my android apps from being cracked? (AntiLVL)

Tags:

android

Recently, I found my application is crack by some anti-lvl tools.

This tool could easily crack the "Android License Verification Library" in my application, and generate a new cracked apk.

It also provide lots of function hooks to prevent the developer from detecting their application is cracked. Such as get file length function or check signature function ...

Any one know how to defeat it?

Thanks.

like image 966
dong221 Avatar asked May 13 '11 11:05

dong221


1 Answers

I don't like the standard response of "go check the google i/o presentation" simply because many of the techniques mentioned are defeated by antilvl. It is bad advice in my opinion as the topics, such as reflection and crc checking are already defeated.

Doing further research on antilvl, i came across the svn trunk to antilvl, with a very descriptive hint in a readme.txt file. Here is to prevent antilvl according to the author, prettied up by me. this will return true/false depending on the presence of smaliHook.java, which antilvl uses to hook normal package checks. This only works as a first line of defense, since the class name could be changed with a modded version of antilvl which is likely circulating somewhere. This is a good first check however, since it will defeat the average script kiddie.

protected boolean isAntiLVL(){
    try{
        Class.forName("smaliHook");
        return true;
    }catch(Exception e){}
    return false;
}
like image 103
ThumbsDP Avatar answered Oct 10 '22 14:10

ThumbsDP