且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

检测用户是否在 Android 中对应用进行评分

更新时间:2023-12-01 12:33:04

最近我读到一篇关于市场上一款游戏的文章(我不会给出名字,因为我认为这种做法对 Android 是负面的,不想宣传它)如果你不允许更新尚未在市场上评级为 5 星.

Recently I read a article about a game in the market (I won't give the name because I think it that practices are negative for Android and don't want to publicize it) that don't allow to update if you have not rated 5 stars in the market.

如前所述,这是不可能的.应用程序无法阻止自身被更新.现在,它有可能在下次运行时检测到更新,然后采取一些措施.

This is not possible as described. An application cannot prevent itself from being updated. Now, it is possible that it can detect the update when it is next run and then take some action.

我想知道这是否可以检测到,如果可以,该怎么做

I'd like to know if that is detectable and if yes how to do it

没有记录和支持的方法来执行此操作.如果它可能在 root 电话之外,我会感到震惊 - 否则这是一个安全漏洞.

There is no documented and supported means of doing this. I'll be stunned if it is possible outside of rooted phone -- it's a security flaw otherwise.