在服务器端使用Android许可证验证 [英] Using Android license verification serverside

查看:99
本文介绍了在服务器端使用Android许可证验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在考虑在Java服务器上实施Google Play许可证检查。那有可能吗?我对此事一无所获。我知道Android LVL是用Java编写的,但是我不确定它是否可以在dalvik机器之外运行。是否可以根据Google Play检查Google帐户名或某种设备ID来检查是否已在Java服务器应用程序中购买了应用程序?

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?

推荐答案


  1. 是的,有可能,java源代码在那里,可以下载(而且afaik,在编译您的应用程序之前,jar不会被删除)-参见在 developers.android.com 上了解有关如何获取来源

  2. 我听说过尝试使用它的PHP项目,但是使用Java完全没有问题-您在服务器上执行相同的操作,即客户端的手册状态-并让客户端发送加密文件从市场直接通过SSL对服务器的响应(例如字节[]帖子)

  3. 您应该从 ResponseData.userId

  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

此博客文章和更多信息和其他SO答案中的链接

这篇关于在服务器端使用Android许可证验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆