在客户端许可证有效性检查免费应用程序LVL行为 [英] LVL behavior on client side license validity check for free apps

查看:87
本文介绍了在客户端许可证有效性检查免费应用程序LVL行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了一个游戏打算将其发布为使用Android拉特与默认 ServerManagedPolicy 许可政策付费应用程序。现在,可以决定,我们有权力将其发布为一个免费的应用程序。出于某种原因,我不想删除/禁用许可证检查。我的问题是:如何授权服务办理免费的应用程序?将支票总是失败或总是擦肩而过?有没有什么办法可以使许可证服务接受任何安装我的免费应用程序的许可?

I had developed a game intending to publish it as a paid application using the Android LVL with the default ServerManagedPolicy licensing policy. Now, the powers that be have decided that we have to publish it as a free app. For some reason I do not want to remove/disable the license checks. My question is: how does the licensing service handle free apps? Will checks always fail or always pass? Is there any way I can make the license service accept any installation of my free app as licensed?

我发现在官方文档的免费应用程序下面,但是,它并不能帮助我很多。

I found the following on free apps in the official documentation, but, it doesn't help me much.

通过市场公布可使用该服务只有付费的应用程序。[...]许可是目前付费应用而已,因为免费的应用程序被认为是授权给所有用户。

我本来认为检查将失败,但是,我记得读书的地方,免费的应用程序的授权服务器会返回一个非常大的有效性时间戳(long.MAX)确保许可证始终有效的免费应用程序。不幸的是,我已经失去了链接到源。

I would have assumed that checks will fail, but, I remember reading somewhere that for free apps the licensing server will return a very large validity timestamp (long.MAX) ensuring that the license is always valid for free apps. Unfortunately, I have lost the link to that source.

注:这个问题并不像听起来那么疯狂。这只是我不能进一步解释我的使用情况下不放弃一些专有信息。

Note: The problem is not as crazy as it sounds. It's just that I am not able to explain my use case further without giving away some proprietary information.

推荐答案

我只是在处理同样的问题,我发现这里的信息是过时的,所以我给你更新后的版本。 现在可以上载的apk该请求的com.android.vending.CHECK_LICENSE许可的免费应用程序。但是,这并不意味着你的应用程序可以使用它。在许可的概述是根据要求和限制

I was just dealing with the same issue and I found that the information here is outdated so I give you the updated version. It is now possible to upload apks for free apps that request the com.android.vending.CHECK_LICENSE permission. However, this does not mean that your app can actually use it. In the licensing overview is says under "Requirements and Limitations"

      
  • 您可以实施许可控制一个免费的应用程序,但前提是你正在使用的服务来提供APK扩展文件。
  •   

我不知道这一点,我想反正。上载工作正常(虽然它是一个免费的应用程序,我没有任何扩展的文件),但用户没有得到授权服务的响应。混乱的地方在于,当你登录的开发者账户,你得到的测试响应您在开发人员配置选择,因此可能会认为一切正常。

I did not know this and I tried anyway. The Upload works fine (although it is a free app and I don't have any expansion files) but users don't get a response from the licensing service. The confusing part is that, when you are logged in with the developer account, you get the test response that you chose in your developer profile and thus might think everything works.

这篇关于在客户端许可证有效性检查免费应用程序LVL行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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