开发者

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 ther开发者_如何学运维e a way on the Android to detect when an user is using the pirated version of your app?


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 .


If by pirated you mean that the app is taken off a device that legitimately bought it and copied to another device and run, then yes the License Verification Library will detect it and call your code to deal with it.

Unfortunately, most pirated apps available on the pirate sites and peer to peer network sites today have been decompiled, had the license check removed and recompiled and digitally signed with a different certificate, so the LVL is of no use. If that is the case, as it was with my paid app there is no detection, and quite frankly nothing you can do about it. Google has provided us a platform the makes it very easy for others to steal your Intellectual property. In fact, it is so easy, most of the theft is now automated. It is a bitter pill to swallow, and until Google does something about it, it will continue to happen. The Dalvik Dex code can be decompiled edited, recompiled and digitally signed by someone else. It is not secure in any way shape or form.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜