gpt4 book ai didi

android - Google Play 显示隐含的 READ_EXTERNAL_STORAGE 权限

转载 作者:塔克拉玛干 更新时间:2023-11-02 07:47:02 35 4
gpt4 key购买 nike

当 Android 4.1 JellyBean (API 16) 在 Google I/O 上发布时,它引入了以下权限:

READ_EXTERNAL_STORAGE

Provides protected read access to external storage. In Android 4.1 by default all applications still have read access. This will be changed in a future release to require that applications explicitly request read access using this permission. If your application already requests write access, it will automatically get read access as well. There is a new developer option to turn on read access restriction, for developers to test their applications against how Android will behave in the future.

http://developer.android.com/about/versions/android-4.1.html#Permissions

我有一个应用程序获取 API 16 并需要 WRITE_EXTERNAL_STORAGE 权限。我正准备部署更新并注意到 READ_EXTERNAL_STORAGE 权限现在在开发人员门户中列为必需权限。对于上周部署的更新,它未在 Google Play 中列为必需权限。此应用程序未明确请求 READ_EXTERNAL_STORAGE 权限。

是否会提示已授予此应用程序 WRITE_EXTERNAL_STORAGE 权限的用户在更新应用程序时授予额外的隐式 READ_EXTERNAL_STORAGE 权限?

更新:

我们已经发布了该应用程序,JellyBean 设备无需请求 READ_EXTERNAL_STORAGE 权限即可自动更新。在未来的版本中,当我明确声明对 READ_EXTERNAL_STORAGE 的要求时,是否会要求已经授予 WRITE_EXTERNAL_STORAGE 权限的用户授予 READ_EXTERNAL_STORAGE 权限?

最佳答案

从 API 19 (Android 4.4) 开始,您必须明确指定 READ_EXTERNAL_STORAGE 权限。是的,如果您有 WRITE_EXTERNAL_STORAGE 权限,您将被隐式授予 READ_EXTERNAL_STORAGE 但如果您需要对外部存储的只读访问权限,则必须指定 READ_EXTERNAL_STORAGE .

校对链接:http://developer.android.com/reference/android/Manifest.permission.html#READ_EXTERNAL_STORAGE

关于android - Google Play 显示隐含的 READ_EXTERNAL_STORAGE 权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12976822/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com