Really the *only* way to really protect against anti piracy is to perform mission critical operations on a server, at least some of the time, and enforce a good strategy to make sure that can't be cracked.
Doing checks in native code can be circumvented, what makes you think they can't? Albeit, it's harder to crack your app. In reality, there is not really anything you can do to "crack proof" your app unless you have a pretty significant security background. Even then, your app can probably be cracked by a skilled adversary. But of course, anti piracy is a cost / benefit analysis. By the way, putting in that number of days requirement doesn't fundamentally change things, the cracker can just remove that check. To have a server help, you need to perform critical operations *on* the server. kris On Fri, Mar 1, 2013 at 11:41 AM, dashman <[email protected]> wrote: > Thank you for some excellent suggestions. > > I've watched that google i/o a few times. > > i problem is actually doing it. e.g. just looking at the NDK and wish they > had a sample to read the package info etc. > > offloading app logic to server is a great idea - but my app is designed to > work while off-line - so that will not help me. > > i think my thinking is: > - doing some checks in native code > - also including some critical app functions in navtive code (thanks for > that suggestion) > - check license with my server (if online) - and make it a requirement > that it > needs to pass the test within a set # of days (e.g. 30). > > the problem now is that - all the user has to do is uninstall the app and > re-install it > and then they can use the app for another fixed amount of days. > > > >> > > -- > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Android Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

