Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android License Verification Library when offline

So, I've setup the Android LVL with my application to check for licensing. This seems to work great with the Test Accounts. The problem is, if I turn the phones internet connection off and try to run the app, the licensing check will fail and tell me it's NOT licensed!

One thing is, why does it tell me the application is NOT licensed and more importantly, how can I have the application 'remember' if it is licensed or not.

like image 943
ingh.am Avatar asked Oct 12 '10 09:10

ingh.am


People also ask

What is Android license Verification?

It manages a connection between your app and the Android Market (now Google Play), and performs a license check with the server to see if the user has a valid license for your app (i.e. it was purchased legitimately through the market). In other words, it's a form of Digital Rights Management (DRM).

What is Google Play licensing library?

Google Play offers a licensing service that lets you enforce licensing policies for the apps that you publish on Google Play. With the licensing service, your apps can query Google Play at runtime to obtain their licensing status for the current user, then allow or disallow further use as appropriate.

What is LVL library?

The License Verification Library (LVL) is a library you can add to your application that handles all of the licensing-related communication with the Google Play licensing service.


1 Answers

Apparently the answer to this is that the license is not cached when testing, but is when on the market. I created a small app to test this and it works!

like image 84
ingh.am Avatar answered Sep 21 '22 15:09

ingh.am