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

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

问题描述

我开发了一款游戏,打算使用带有默认 ServerManagedPolicy 许可政策的 Android LVL 将其作为付费应用程序发布.现在,当权者决定我们必须将其作为免费应用程序发布.出于某种原因,我不想删除/禁用许可证检查.我的问题是:许可服务如何处理免费应用程序?检查是总是失败还是总是通过?有什么方法可以让许可服务接受我的免费应用程序的任何安装作为许可?

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.

只有通过 Market 发布的付费应用程序才能使用该服务.[...] 许可目前仅适用于付费应用程序,因为免费应用程序被视为向所有用户授权.

我会假设检查会失败,但是,我记得在某处读到,对于免费应用程序,许可服务器将返回一个非常大的有效时间戳 (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.

推荐答案

我刚刚处理了同样的问题,发现这里的信息已经过时,所以我给你更新版本.现在可以为请求 com.android.vending.CHECK_LICENSE 权限的免费应用上传 apk.但是,这并不意味着您的应用程序可以实际使用它.在许可概述中的要求和限制"下说

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天全站免登陆