An Android library that prevents your app from being pirated / cracked using Google Play Licensing (LVL), APK signature protection and more. API 14+ required.
Target Android 10
enableAPKCheck(boolean enable)
blockIfUnauthorizedAppDetected(SharedPreferences preferences, @NonNull String preferenceName)
blockIfUnauthorizedAppDetected(String preferencesName, @NonNull String preferenceName)
enableEmulatorCheck()
withActivityColor(@ColorRes int colorPrimary, @ColorRes int colorPrimaryDark)
enableUnauthorizedAppsCheck(boolean enable)
enableStoresCheck(boolean enable)
enableDebugCheck(boolean enable)
.addAppToCheck(app)
to allow adding custom apps to check. Closes #41.PirateApp app = new PirateApp("Lucky Patcher", "the.package.name");
new PiracyChecker(this)
.addAppToCheck(app)
...
.start();
.getPackage()
method to PirateApp to return an string instead of array. Closes #42.new PiracyChecker(this)
.enableFoldersCheck(true)
...
.start();
A huge thanks to @jahirfiquitiva for his contributions to this update (again) 🥇
boolean deep = false;
new PiracyChecker(this)
.enableEmulatorCheck(deep)
...
.start();
Note: the deep boolean with make the library do extra checks to detect if device is an emulator or not. It could lead to some weird crashes, so be wise when using it.
destroy()
method just to make sure everything is properly destroyed..withActivityColors(R.color.colorPrimary, R.color.colorPrimaryDark, withLightStatusBar)
.withActivityLayout(R.layout.my_custom_layout)
A huge thanks to @jahirfiquitiva for his contributions to this update.