Google Play 是否要求在自动更新的情况下接受自定义权限,就像在内置权限中一样

Does Google Play ask to accept custom permission as like in built permissions in case of auto update

我正在开发一个应用程序,我使用的是另一个开发人员在他们的 SDK 中定义的自定义 permission

根据Google,如果我们添加一个预定义的permission,比如<uses-permission android:name="android.permission.INTERNET" />,那么,当用户更新应用程序时,他们会被提示批准这个新的许可。这发生在应用程序更新之前;如果用户不接受,应用程序不会更新。

现在,我们要添加这个自定义 permission。当我们在 Play 商店上发布新版本时,Play 商店是否仍会要求用户在更新应用程序之前接受此新权限?

是的,所有权限都需要用户批准。如果更新后的版本有新的权限:分组或其他,需要用户批准。

来自Google的政策:

Users who wish to have full control over new individual permissions being added to an app can review individual permissions for an app at any time, or may consider turning off auto-updates for one or more apps. Any permissions that are not part of a permissions group, including those that are not shown in the main permissions screen, will be shown in the "Other" group.

更新

从 M 开始,权限模型将发生变化。用户将在运行时控制权限。对用户有好处,但对开发人员来说更多的工作,因为现在我们必须处理权限拒绝。阅读更多 here.

当人们下载您的应用时,他们必须接受您在清单中设置的权限。

如果您在应用程序的 android 清单中设置了新权限,那么下载您应用程序的用户需要先接受新权限。因此,如果您更新您的应用程序并获得新权限,它不会自动更新,人们需要先在 google Play 商店中接受它。

来自 Google 的支持页面:

When an app updates, it may need to use additional capabilities or information controlled by permissions.

If you have automatic updates enabled, you won't need to review or accept these permissions as long as they are included in a permissions group you already accepted for that app.

If the app needs access to an additional permissions group, you'll be asked to accept the update, even if you've set an app to update automatically.

If you prefer to review each update manually, you can change your update settings.

是的,Google play 会要求用户批准自定义权限。

Google 明确提到

"If the app needs access to an additional permissions group, you'll be asked to accept the update, even if you've set an app to update automatically."

"Developers may automatically add additional permissions within each group"

由于自定义权限不属于任何权限组,它们显示在其他权限中,并且在更新应用程序时如果将新权限添加到其他组,Play商店会要求用户批准这些权限。

官方来源:https://support.google.com/googleplay/answer/6014972(打开link点击其他) 此页面显示 "Note: If an app adds a permission that is in the "Other" 组,在下载更新之前您将始终被要求查看更改。"