Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Android license verification serverside

I've been thinking about implementing of Google Play licence check on my Java server. Is that even possible? I haven't been able to find anything on this matter. I know Android LVL is written in Java, but I'm not sure if it can run outside of dalvik machine. Is there a posibillty of checking Google account name or some kind of device ID against Google Play to check whether an app has been bought in a Java server application?

like image 997
user2536306 Avatar asked Feb 20 '26 17:02

user2536306


1 Answers

  1. Yes it's possible, the java sources are out there and could be downloaded (and afaik, the jar is not dexed until you compile your application) - see some kind of manual over there at developers.android.com to read about how to get the sources
  2. I've heard about a PHP project trying to attempt it, but using java should be no problem at all - you do the same things on the server, the manuals state for the client - and let the client sends the encrypted response from the market directly to the server via SSL (e.g. byte[] post)
  3. You should get a UID from ResponseData.userId

Read some more in this blog post and more info and links in another SO answer

like image 135
Christian R. Avatar answered Feb 22 '26 05:02

Christian R.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!