如何查看Android其他应用程序的许可权限

发布于 2024-09-12 22:14:08 字数 480 浏览 4 评论 0原文

我有一个免费的应用程序,其中有许多您可以为其购买的付费升级应用程序。基础游戏是免费的,并且仍然是用户始终启动的应用程序,它会检测其他应用程序的存在并根据需要解锁各种升级功能。

我想使用新的许可服务来检测购买的应用程序是否已获得许可,并将包的名称传递给许可服务以验证其是否已获得授权(并且盲目地遵循示例,我愚蠢地认为将包名称传递给混淆器意味着包名称被传递到许可服务器 - 哎呀)。然而,我刚刚意识到这是多么愚蠢,无论如何我都遇到了困难:“如果您已经免费发布了您的应用程序,您将无法上传包含许可的更新版本(即,使用相同包名称并包含许可权限的应用程序)”。

因此,一个由两部分组成的问题:是否有任何计划来实现我正在寻找的内容:从免费应用程序内部检查我的其他付费发布应用程序是否已获得许可?

如果没有,那么实现我所寻求的目标的最佳方法是什么?我正在考虑向每个已安装的升级发送一个意图,让它们执行许可检查,然后让升级将响应传递回我的基本应用程序。听起来有点乱——还有更好的想法吗?

谢谢负载!

I have a free application that has a number of paid-for upgrade applications you can buy for it. The base game is free and remains the application that the user always launches, it detects the presence of the other applications and unlocks various upgrade features as appropriate.

I wanted to use the new licensing service to detect whether the bought applications were licensed, and pass the name of the package to the licensing service to verify if it is authorised (and blindly following the sample I stupidly assumed that passing in the package name to the obfuscator meant that the package name was passed to the licensing server - oops). However I've just realised how dumb that was, and in any case I have hit a brick wall: "If you already published your application as free, you won't be able to upload an updated version that includes licensing (that is, an application that uses the same package name and that includes the licensing permission)".

So, a two-part question: is there any plan to implement what I'm looking for: to check from inside a free application whether any of my other paid published applications are licensed?

If not, then what would be the best way of achieving what I'm seeking? I'm thinking of maybe sending an intent to each of the installed upgrades, getting them to perform the licensing check, and then getting the upgrades to pass the response back into my base application. Sounds a bit messy - any better ideas?

Thanks loads!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

黯然#的苍凉 2024-09-19 22:14:09

那么,一个由两部分组成的问题:是否有任何计划来实现我正在寻找的内容:从免费应用程序内部检查我的其他付费发布应用程序是否已获得许可?

没有办法做到这一点。

如果没有,那么实现我所寻求的目标的最佳方法是什么?我正在考虑向每个已安装的升级发送一个意图,让它们执行许可检查,然后让升级将响应传递回我的基本应用程序。听起来有点混乱 - 有更好的想法吗?

这听起来像是最合理的方法,假设您没有其他方式在客户端之间进行通信(例如,您可以在其中写入许可证状态的共享存储)。

您可能只是想确保使用自定义权限保护这些方法,以便只有您的应用程序才能将许可证状态广播到您的应用程序。

So, a two-part question: is there any plan to implement what I'm looking for: to check from inside a free application whether any of my other paid published applications are licensed?

There is no way to do this.

If not, then what would be the best way of achieving what I'm seeking? I'm thinking of maybe sending an intent to each of the installed upgrades, getting them to perform the licensing check, and then getting the upgrades to pass the response back into my base application. Sounds a bit messy - any better ideas?

That sounds like the most reasonable way of doing it, assuming you have no other way of communicating between the clients (e.g. shared storage where you can write the licence status to).

You just probably want to make sure that you secure these methods with custom permissions, so that only your apps can broadcast the licence status to your apps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文