Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在尝试理解 LVL 库,但没有运气。我所需要的只是一个简单的方法,它可以在没有策略的情况下发送和接收许可证的当前状态,只需从 ILicensingService 服务发送/回复。我想创建自定义 LVL 库,但我必须先了解它。
那么,您是否看过 Android 提供的实际 Market Licensing 源文件?一旦你花几分钟时间,你应该能够理解这些政策是如何运作的。它们实际上很简单。
所有动作发生的关键类是LicenseValidator类。那里是进行许可检查请求的地方,那里是连接到远程服务以进行许可检查的地方。
LicenseValidator
在那个类中看看Policy接口类是如何使用的。
Policy