Search code examples
androidpiracypiracy-protection

Android detect pirated/cracked app


On the iPhone there are several ways to detect when user opens the version of your app that was pirated.

Is there a way on the Android to detect when an user is using the pirated version of your app?


Solution

  • License Verification Library (LVL) is similar to your need.

    The licensing service is a secure means of controlling access to your applications. When an application checks the licensing status, the Market server signs the licensing status response using a key pair that is uniquely associated with the publisher account. Your application stores the public key in its compiled .apk file and uses it to verify the licensing status response.

    Any application that you publish through Android Market can use the Android Market Licensing service. No special account or registration is needed. Additionally, because the service uses no dedicated framework APIs, you can add licensing to any legacy application that uses a minimum API level of 3 or higher.

    To help you add licensing to your application, the Android SDK provides library sources that you can include in your application project. The License Verification Library (LVL) handles all of the licensing-related communication with the Android Market client and the licensing service. With the LVL integrated, your application can determine its licensing status for the current user by simply calling a library checker method and implementing a callback that receives the status.

    This document explains how the licensing service works and how to add it to your application.

    And here is an example.

    Referenced from here .