Lucky patcher, how can I protect from it? [duplicate]

Code to check your certificate: public void checkSignature(final Context context) { try { Signature[] signatures = context.getPackageManager().getPackageInfo(context.getPackageName(), PackageManager.GET_SIGNATURES).signatures; if (signatures[0].toCharsString() != <YOUR CERTIFICATE STRING GOES HERE>) { // Kill the process without warning. If someone changed the certificate // is better not to give a hint about why the app stopped working android.os.Process.killProcess(android.os.Process.myPid()); } } … Read more