{"id":13493537,"url":"https://github.com/javiersantos/PiracyChecker","last_synced_at":"2025-03-28T11:32:57.670Z","repository":{"id":44683677,"uuid":"59766839","full_name":"javiersantos/PiracyChecker","owner":"javiersantos","description":"An Android library that prevents your app from being pirated / cracked using Google Play Licensing (LVL), APK signature protection and more. API 14+ required.","archived":false,"fork":false,"pushed_at":"2021-07-19T15:48:59.000Z","size":9277,"stargazers_count":1556,"open_issues_count":25,"forks_count":174,"subscribers_count":54,"default_branch":"master","last_synced_at":"2025-03-25T08:07:47.320Z","etag":null,"topics":["android-library","apk","apk-signature-protection","attacker","gradle","lvl","signature","verify"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/javiersantos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["javiersantos","jahirfiquitiva"]}},"created_at":"2016-05-26T16:39:21.000Z","updated_at":"2025-03-24T05:09:49.000Z","dependencies_parsed_at":"2022-08-22T08:50:27.306Z","dependency_job_id":null,"html_url":"https://github.com/javiersantos/PiracyChecker","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiersantos%2FPiracyChecker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiersantos%2FPiracyChecker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiersantos%2FPiracyChecker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiersantos%2FPiracyChecker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javiersantos","download_url":"https://codeload.github.com/javiersantos/PiracyChecker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246021509,"owners_count":20710946,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android-library","apk","apk-signature-protection","attacker","gradle","lvl","signature","verify"],"created_at":"2024-07-31T19:01:16.236Z","updated_at":"2025-03-28T11:32:55.867Z","avatar_url":"https://github.com/javiersantos.png","language":"Java","funding_links":["https://github.com/sponsors/javiersantos","https://github.com/sponsors/jahirfiquitiva"],"categories":["Java"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003ePiracyChecker \u003ca href=\"https://github.com/javiersantos/PiracyChecker#how-to-include\"\u003e\u003cimg src=\"https://jitpack.io/v/javiersantos/PiracyChecker.svg\"\u003e\u003c/a\u003e\u003c/h1\u003e\n\u003ch4 align=\"center\"\u003eAndroid Library\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca target=\"_blank\" href=\"https://android-arsenal.com/api?level=14\"\u003e\u003cimg src=\"https://img.shields.io/badge/API-14%2B-orange.svg\"\u003e\u003c/a\u003e\n  \u003ca target=\"_blank\" href=\"https://travis-ci.org/javiersantos/PiracyChecker\"\u003e\u003cimg src=\"https://travis-ci.org/javiersantos/PiracyChecker.svg?branch=master\"\u003e\u003c/a\u003e\n  \u003ca target=\"_blank\" href=\"http://android-arsenal.com/details/1/3641\"\u003e\u003cimg src=\"https://img.shields.io/badge/Android%20Arsenal-PiracyChecker-blue.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eAn Android library that prevents your app from being pirated / cracked using Google Play Licensing (LVL), APK signature protection and more.\u003c/p\u003e\n\n\u003ci\u003e\u003cp align=\"center\"\u003e\n  Owner \u0026 Author: \u003ca target=\"_blank\" href=\"https://github.com/javiersantos\"\u003eJavier Santos\u003c/a\u003e\u003cbr\u003e\n  Co-Author: \u003ca target=\"_blank\" href=\"https://jahirfiquitiva.com/\"\u003eJahir Fiquitiva\u003c/a\u003e\n\u003c/p\u003e\u003c/i\u003e\n\n## Disclaimer\nThis library applies some techniques to help protect your app's users and attempt to thwart reverse engineers and attackers. BUT, this isn't guaranteed to stop your app from getting pirated. There is no such thing as 100% security, and a determined and skilled attacker with enough time, could remove these checks from the code. The real objective here is to raise the bar out of reach of opportunist and automatic attackers.\n\nSome of the techniques included in this library can be found [here](https://www.airpair.com/android/posts/adding-tampering-detection-to-your-android-app).\n\n\n## How to include\nAdd the repository to your project **build.gradle**:\n\n```gradle\nallprojects {\n    repositories {\n        maven {\n            url \"https://jitpack.io\"\n        }\n    }\n}\n```\n\nAnd add the library to your module **build.gradle**:\n\n**AndroidX**\n\n```gradle\ndependencies {\n    implementation 'com.github.javiersantos:PiracyChecker:1.2.8'\n}\n```\n\n**Pre AndroidX (no longer supported)**\n\n```gradle\ndependencies {\n    implementation 'com.github.javiersantos:PiracyChecker:1.2.4'\n}\n```\n\n\n## Recommendations\n* Always enable ProGuard in your production release. Always, without exceptions.\n* PiracyChecker should be included in your `onCreate` method in order to check for a valid license as soon as possible.\n* It's recommended to show a new Activity instead of a Dialog when the license is not valid. This way you make sure that the main activity of the app is finished. See \"[Display results in a Dialog or a new Activity](https://github.com/javiersantos/PiracyChecker#display-results-in-a-dialog-or-a-new-activity)\".  \n* Don't forget to enable ProGuard ;)\n\n## Usage\n\n### Verify Google Play Licensing (LVL)\nGoogle Play offers a licensing service that lets you enforce licensing policies for applications that you publish on Google Play. With Google Play Licensing, your application can query Google Play to obtain the licensing status for the current user.\n\nAny application that you publish through Google Play can use the Google Play Licensing service. No special account or registration is needed.\n\nFor more information check out the [Google Developers page](https://developer.android.com/google/play/licensing/index.html).\n\n```kotlin\npiracyChecker {\n\tenableGooglePlayLicensing(\"BASE_64_LICENSE_KEY\")\n\t...\n}.start()\n```\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eJava Sample\u003c/b\u003e\u003c/summary\u003e\n\n```java\nnew PiracyChecker(this)\n\t.enableGooglePlayLicensing(\"BASE_64_LICENSE_KEY\")\n\t...\n\t.start();\n```\n\n\u003c/details\u003e\u003cbr\u003e\n\n\n\nIn order to retrieve your BASE64 license key your app must be uploaded to the [Google Play Developer Console](https://play.google.com/apps/publish/). Then access to your app -\u003e Services and APIs.\n\nWhen using Google Play Licensing your should call `.destroy()` in the `onDestroy()` method of your Activity to avoid multiple instances of the service running. Have a look to the Wiki for a [sample Activity](https://github.com/javiersantos/PiracyChecker/wiki/Using-Google-Play-Licensing-(LVL)) with `destroy()`.\n\n### Verify your app's signing certificates (signatures)\nIn a nutshell, developers must sign applications with their private key/certificate (contained in a .keystore file) before the app can be installed on user devices. The signing certificate must stay consistent throughout the life of the app, and typically have an expiry date of 25 years in the future.\n\nThe app signatures will be broken if the .apk is altered in any way — unsigned apps cannot typically be installed. We can imagine an attacker removing license-checking code to enable full app features without paying, for instance. A more dangerous example would be altering the .apk to include malware in a legitimate app to harvest sensitive user data. In order for the altered .apk to be installed, the attacker must resign it.\n\n\n```kotlin\npiracyChecker {\n\tenableSigningCertificates(\"478yYkKAQF+KST8y4ATKvHkYibo=\") // The original APK signature for the PRODUCTION version\n\t...\n}.start()\n```\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eJava Sample\u003c/b\u003e\u003c/summary\u003e\n\n```java\nnew PiracyChecker(this)\n\t.enableSigningCertificates(\"478yYkKAQF+KST8y4ATKvHkYibo=\") // The original APK signature for the PRODUCTION version\n\t...\n\t.start();\n```\n\n\u003c/details\u003e\u003cbr\u003e\n\n\n\n**Don't use this method when using [Google Play App Signing](https://support.google.com/googleplay/android-developer/answer/7384423?hl=en) since Google removes the original signature and add another one, so this method will fail.**\n\n**BE CAREFUL!!** Your app signature can be retrieved using a PiracyCheckerUtils method. Make sure that you have signed your APK using your PRODUCTION keystore (not using the DEBUG one) and installed the version that you plan to distribute. Then copy the signature returned by this method on the console and paste in `enableSigningCertificate(\"YOUR_APK_SIGNATURE\")`\n\n```kotlin\n// This method will print your app signatures in the console\napkSignatures.forEach { Log.e(\"SIGNATURE\", it) }\n```\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eJava Sample\u003c/b\u003e\u003c/summary\u003e\n\n```java\n// This method will print your app signatures in the console\nfor (String signature : LibraryUtilsKt.getApkSignatures(this)) {\n    Log.e(\"SIGNATURE\", signature);\n}\n```\n\n\u003c/details\u003e\u003cbr\u003e\n\n\n\n### Verify the installer\nIf you only plan to distribute the app on a particular store this technique will block from installing the app using any another store.\n\nSupported stores: Google Play, Amazon App Store and Samsung Galaxy Apps.\n\n```kotlin\npiracyChecker {\n\tenableInstallerId(InstallerID.GOOGLE_PLAY, InstallerID.AMAZON_APP_STORE, InstallerID.GALAXY_APPS)\n\t...\n}.start()\n```\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eJava Sample\u003c/b\u003e\u003c/summary\u003e\n\n```java\nnew PiracyChecker(this)\n\t.enableInstallerId(InstallerID.GOOGLE_PLAY, InstallerID.AMAZON_APP_STORE, InstallerID.GALAXY_APPS)\n\t...\n\t.start();\n```\n\n\u003c/details\u003e\u003cbr\u003e\n\n\n\n**BE CAREFUL!!** This is a really restrictive technique since it will block your app from being installed using another market or directly installing the .apk on the device. It isn't recommended for most cases.\n\n### Verify the use of pirate apps\nIf you want to check if user has pirate apps installed, you can use this code.\n\nIt will check for: Lucky Patcher, Uret Patcher, Freedom, CreeHack and HappyMod.\n\n```kotlin\npiracyChecker {\n\tenableUnauthorizedAppsCheck()\n\t...\n}.start()\n```\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eJava Sample\u003c/b\u003e\u003c/summary\u003e\n\n```java\nnew PiracyChecker(this)\n\t.enableUnauthorizedAppsCheck()\n\t...\n\t.start();\n```\n\n\u003c/details\u003e\u003cbr\u003e\n\n\n\n#### Add custom apps to check\nSince version 1.2.2 you can add additional apps to be checked using this code:\n\n```kotlin\nval app = PirateApp(\"Lucky Patcher\", \"the.package.name\")\npiracyChecker {\n\taddAppToCheck(app)\n\t...\n}.start()\n```\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eJava Sample\u003c/b\u003e\u003c/summary\u003e\n\n```java\nPirateApp app = new PirateApp(\"Lucky Patcher\", \"the.package.name\");\nnew PiracyChecker(this)\n\t.addAppToCheck(app)\n\t...\n\t.start();\n```\n\n\u003c/details\u003e\u003cbr\u003e\n\n\n\nYou can block the app even when this pirate apps has been uninstalled. This prevents the app from being patched and then uninstall the pirate app in order to continue using your app. The library will save a `SharedPreference` value to know when a pirate app has been detected.\n\nThere are two ways to do this:\n\nDefine the `SharedPreferences` and the name of the preference where you want to save the result.\n\n```kotlin\npiracyChecker {\n\tenableUnauthorizedAppsCheck()\n\tblockIfUnauthorizedAppUninstalled(preferences, \"app_unauthorized\") // Change \"app_unauthorized\" with your own value\n\t...\n}.start()\n```\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eJava Sample\u003c/b\u003e\u003c/summary\u003e\n\n```java\nnew PiracyChecker(this)\n\t.enableUnauthorizedAppsCheck()\n\t.blockIfUnauthorizedAppUninstalled(preferences, \"app_unauthorized\") // Change \"app_unauthorized\" with your own value\n\t...\n\t.start();\n```\n\n\u003c/details\u003e\u003cbr\u003e\n\n\n\nDefine the `SharedPreferences` name and the name of the preference where you want to save the result.\n\n```kotlin\npiracyChecker {\n\tenableUnauthorizedAppsCheck()\n\tblockIfUnauthorizedAppUninstalled(\"license_preferences\", \"app_unauthorized\") // Change \"license_preferences\" and \"app_unauthorized\" with your own value\n\t...\n}.start()\n```\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eJava Sample\u003c/b\u003e\u003c/summary\u003e\n\n```java\nnew PiracyChecker(this)\n\t.enableUnauthorizedAppsCheck()\n\t.blockIfUnauthorizedAppUninstalled(\"license_preferences\", \"app_unauthorized\") // Change \"license_preferences\" and \"app_unauthorized\" with your own value\n\t...\n\t.start();\n```\n\n\u003c/details\u003e\u003cbr\u003e\n\n\n\n### Verify the use of third-party store apps\nIf you want to check if user has third-party store apps installed, you can use this code.\n\nIt will check for: Aptoide, BlackMart, Mobogenie, 1Mobile, GetApk, GetJar, SlideMe and ACMarket.\n\n```kotlin\npiracyChecker {\n\tenableStoresCheck()\n\t...\n}.start()\n```\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eJava Sample\u003c/b\u003e\u003c/summary\u003e\n\n```java\nnew PiracyChecker(this)\n\t.enableStoresCheck()\n\t...\n\t.start();\n```\n\n\u003c/details\u003e\u003cbr\u003e\n\n\n\n### Enable deep pirate and third-party store apps check\nIf you want to check if these kind of apps left some files that could make your app work as pirated still, you can enable its check as follows:\n\n```kotlin\npiracyChecker {\n\tenableFoldersCheck()\n\t...\n}.start()\n```\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eJava Sample\u003c/b\u003e\u003c/summary\u003e\n\n```java\nnew PiracyChecker(this)\n\t.enableFoldersCheck()\n\t...\n\t.start();\n```\n\n\u003c/details\u003e\u003cbr\u003e\n\n\n\nIf you also want to check for `.apk` files in certain system folders, you can enable it like so:\n\n```kotlin\npiracyChecker {\n\tenableAPKCheck()\n\t...\n}.start()\n```\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eJava Sample\u003c/b\u003e\u003c/summary\u003e\n\n```java\nnew PiracyChecker(this)\n\t.enableAPKCheck()\n\t...\n\t.start();\n```\n\n\u003c/details\u003e\u003cbr\u003e\n\n\n\n**BE CAREFUL!** This means, that some times, the app will be recognized as pirated even after those pirate and third-party store apps were uninstalled. Set it to false if you don't like this behaviour/approach.\n\n### Verify if app is a debug build\nAllowing apps to be debugged when installed on an Android device is something that, as developers, we only enable during the development process. Therefore, if debugging occurs on a live build of your app, it's likely that someone other than you is trying to analyze the app.\n\n\n```kotlin\npiracyChecker {\n\tenableDebugCheck()\n\t...\n}.start()\n```\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eJava Sample\u003c/b\u003e\u003c/summary\u003e\n\n```java\nnew PiracyChecker(this)\n\t.enableDebugCheck()\n\t...\n\t.start();\n```\n\n\u003c/details\u003e\u003cbr\u003e\n\n\n\n### Verify if app is being run in an emulator\nIf your app is running on an emulator outside the development process, it gives an indication that someone other than you is trying to analyze the app.\n\n**Warning!**: Using deep check can cause crashes in some specific devices.\n\n```kotlin\nval deepCheck = false\npiracyChecker {\n\t.enableEmulatorCheck(deepCheck)\n\t...\n}.start()\n```\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eJava Sample\u003c/b\u003e\u003c/summary\u003e\n\n```java\nboolean deep = false;\nnew PiracyChecker(this)\n\t.enableEmulatorCheck(deep)\n\t...\n\t.start();\n```\n\n\u003c/details\u003e\u003cbr\u003e\n\n\n\n**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.\n\n### Save the result of the license check in `SharedPreferences`\n\nSaving the result of the license check is useful for checking the license status without calling `.start()` multiple times.\n\nThere are two ways to do this:\n\nDefine the `SharedPreferences` and the name of the preference where you want to save the result.\n\n```kotlin\npiracyChecker {\n\tsaveResultToSharedPreferences(preferences, \"valid_license\") // Change \"valid_license\" with your own value\n\t...\n}.start()\n```\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eJava Sample\u003c/b\u003e\u003c/summary\u003e\n\n```java\nnew PiracyChecker(this)\n\t.saveResultToSharedPreferences(preferences, \"valid_license\") // Change \"valid_license\" with your own value\n\t...\n\t.start();\n```\n\n\u003c/details\u003e\u003cbr\u003e\n\n\n\nDefine the `SharedPreferences` name and the name of the preference where you want to save the result.\n\n```kotlin\npiracyChecker {\n\tsaveResultToSharedPreferences(\"license_preferences\", \"valid_license\") // Change \"license_preferences\" and \"valid_license\" with your own value\n\t...\n}.start()\n```\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eJava Sample\u003c/b\u003e\u003c/summary\u003e\n\n```java\nnew PiracyChecker(this)\n\t.saveResultToSharedPreferences(\"license_preferences\", \"valid_license\") // Change \"license_preferences\" and \"valid_license\" with your own value\n\t...\n\t.start();\n```\n\n\u003c/details\u003e\u003cbr\u003e\n\n\n\n\n## Customizations\n\n### Display results in a Dialog or a new Activity\n\nIt's recommended to show a new Activity instead of a Dialog when the license is not valid. This way you make sure that the main activity of the app is finished.\n\nBy default a non-cancelable Dialog will be displayed.\n\n```kotlin\npiracyChecker {\n\tdisplay(Display.ACTIVITY)\n\t...\n}.start()\n```\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eJava Sample\u003c/b\u003e\u003c/summary\u003e\n\n```java\nnew PiracyChecker(this)\n\t.display(Display.ACTIVITY)\n\t...\n\t.start();\n```\n\n\u003c/details\u003e\u003cbr\u003e\n\n\n\nBy default, the displayed Activity will use the library colors. To apply a custom primary and primary dark color, and to define if the activity should show normal or light status bar, use:\n\n```kotlin\nwithActivityColors(R.color.colorPrimary, R.color.colorPrimaryDark, withLightStatusBar)\n```\n\nYou can also define a custom layout xml for this activity content, using:\n\n```kotlin\n.withActivityLayout(R.layout.my_custom_layout)\n```\n\n### Using custom callbacks\nAdding a callback to the builder allows you to customize what will happen when the license has been checked and manage the license check errors if the user is not allowed to use the app. Keep in mind that when using this method **you must be aware of blocking the app from unauthorized users**.\n\nBy default, the library will display a non-cancelable dialog if the user is not allowed to use the app, otherwise nothing will happen.\n\nUse the builder and add following:\n\n```kotlin\ncallback {\n    allow {\n        // Do something when the user is allowed to use the app\n    }\n    doNotAllow { piracyCheckerError, pirateApp -\u003e\n        // You can either do something specific when the user is not allowed to use the app\n        // Or manage the error, using the 'error' parameter, yourself (Check errors at {@link PiracyCheckerError}).\n        \n        // Additionally, if you enabled the check of pirate apps and/or third-party stores, the 'app' param\n        // is the app that has been detected on device. App can be null, and when null, it means no pirate app or store was found,\n        // or you disabled the check for those apps.\n        // This allows you to let users know the possible reasons why license is been invalid.\n    }\n    onError { error -\u003e\n        // This method is not required to be implemented/overriden but...\n        // You can either do something specific when an error occurs while checking the license,\n        // Or manage the error, using the 'error' parameter, yourself (Check errors at {@link PiracyCheckerError}).\n    }\n}\n```\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eJava Sample\u003c/b\u003e\u003c/summary\u003e\n\n```Java\n.callback(new PiracyCheckerCallback() {\n\t@Override\n\tpublic void allow() {\n\t\t// Do something when the user is allowed to use the app\n\t}\n\t\n\t@Override\n\tpublic void doNotAllow(@NonNull PiracyCheckerError error, @Nullable PirateApp app) {\n\t\t// You can either do something specific when the user is not allowed to use the app\n\t\t// Or manage the error, using the 'error' parameter, yourself (Check errors at {@link PiracyCheckerError}).\n\t\t\n\t\t// Additionally, if you enabled the check of pirate apps and/or third-party stores, the 'app' param\n\t\t// is the app that has been detected on device. App can be null, and when null, it means no pirate app or store was found,\n\t\t// or you disabled the check for those apps.\n\t\t// This allows you to let users know the possible reasons why license is been invalid.\n\t}\n\n\t@Override\n\tpublic void onError(@NonNull PiracyCheckerError error) {\n\t\t// This method is not required to be implemented/overridden but...\n\t\t// You can either do something specific when an error occurs while checking the license,\n\t\t// Or manage the error, using the 'error' parameter, yourself (Check errors at {@link PiracyCheckerError}).\n    }\n})\n```\n\n\u003c/details\u003e\u003cbr\u003e\n\n\n\n## FAQs\n#### Can I protect my app using more than one validation method?\nSure. You can use as many validation methods in the builder as you want. For example:\n\n```kotlin\npiracyChecker {\n\tenableGooglePlayLicensing(\"BASE_64_LICENSE_KEY\")\n\tenableSigningCertificates(\"YOUR_APK_SIGNATURE\")\n\tenableUnauthorizedAppsCheck()\n\tsaveResultToSharedPreferences(\"my_app_preferences\", \"valid_license\")\n\t...\n}.start()\n```\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eJava Sample\u003c/b\u003e\u003c/summary\u003e\n\n```java\nnew PiracyChecker(this)\n\t.enableGooglePlayLicensing(\"BASE_64_LICENSE_KEY\")\n\t.enableSigningCertificates(\"YOUR_APK_SIGNATURE\")\n\t.enableUnauthorizedAppsCheck()\n\t.saveResultToSharedPreferences(\"my_app_preferences\", \"valid_license\")\n\t...\n\t.start();\n```\n\n\u003c/details\u003e\u003cbr\u003e\n\n\n\n## License\n\tCopyright 2018 Javier Santos\n\t\n\tLicensed under the Apache License, Version 2.0 (the \"License\");\n\tyou may not use this file except in compliance with the License.\n\tYou may obtain a copy of the License at\n\t\n\t   http://www.apache.org/licenses/LICENSE-2.0\n\t\n\tUnless required by applicable law or agreed to in writing, software\n\tdistributed under the License is distributed on an \"AS IS\" BASIS,\n\tWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\tSee the License for the specific language governing permissions and\n\tlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaviersantos%2FPiracyChecker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaviersantos%2FPiracyChecker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaviersantos%2FPiracyChecker/lists"}