Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jahirfiquitiva committed May 18, 2018
1 parent 4c05366 commit b29be91
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ It will check for: Lucky Patcher, Uret Patcher, Freedom and CreeHack.

```Java
new PiracyChecker(this)
.enableUnauthorizedAppsCheck()
.enableUnauthorizedAppsCheck(true)
...
.start();
```
Expand All @@ -126,7 +126,7 @@ Define the `SharedPreferences` and the name of the preference where you want to

```Java
new PiracyChecker(this)
.enableUnauthorizedAppsCheck()
.enableUnauthorizedAppsCheck(true)
.blockIfUnauthorizedAppUninstalled(preferences, "app_unauthorized") // Change "app_unauthorized" with your own value
...
.start();
Expand All @@ -136,7 +136,7 @@ Define the `SharedPreferences` name and the name of the preference where you wan

```Java
new PiracyChecker(this)
.enableUnauthorizedAppsCheck()
.enableUnauthorizedAppsCheck(true)
.blockIfUnauthorizedAppUninstalled("license_preferences", "app_unauthorized") // Change "license_preferences" and "app_unauthorized" with your own value
...
.start();
Expand All @@ -149,7 +149,7 @@ It will check for: Aptoide, BlackMart, Mobogenie, 1Mobile, GetApk, GetJar, Slide

```Java
new PiracyChecker(this)
.enableStoresCheck()
.enableStoresCheck(true)
...
.start();
```
Expand All @@ -163,14 +163,22 @@ new PiracyChecker(this)
.start();
```

If you also want to check for `.apk` files in certain system folders, you can enable it like so:
```Java
new PiracyChecker(this)
.enableAPKCheck(true)
...
.start();
```

**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.

### Verify if app is a debug build
Allowing 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.

```Java
new PiracyChecker(this)
.enableDebugCheck()
.enableDebugCheck(true)
...
.start();
```
Expand Down Expand Up @@ -280,7 +288,7 @@ Sure. You can use as many validation methods in the builder as you want. For exa
new PiracyChecker(this)
.enableGooglePlayLicensing("BASE_64_LICENSE_KEY")
.enableSigningCertificate("YOUR_APK_SIGNATURE")
.enableUnauthorizedAppsCheck()
.enableUnauthorizedAppsCheck(true)
.saveResultToSharedPreferences("my_app_preferences", "valid_license");
...
.start();
Expand Down

0 comments on commit b29be91

Please sign in to comment.