MrOnlineCoder
MrOnlineCoder

Reputation: 410

How to protect app from patching

I am making paid application and I check license using Google LVL library. But some patchers (like Lucky Patcher) can remove that license check. How can I protect it from patching or in what way I can make a remote server from license check?

Upvotes: 3

Views: 769

Answers (2)

guni
guni

Reputation: 322

If your app uses data from a server, you can send the licence number with the requests and you can deny the answer when the licence is invalid.

Upvotes: 0

Sam
Sam

Reputation: 1662

Since anyone has access to your apk you can't prevent patching. Although you can make it way more difficult is several ways:

  • Code obfuscation - ProGuard can do it for you, makes code barely human readable
  • Add additional offline checks - you can access app signature using PackageManager and compare with yours. Nobody can fake your signature + code obfuscation will help to hide that couple of lines of code

Upvotes: 3

Related Questions