谷歌播放显示了隐READ_EXTERNAL_STORAGE许可 [英] Google Play shows the implicit READ_EXTERNAL_STORAGE permission
问题描述
在Android的4.1软糖(API 16)在谷歌宣布我/ O,它推出了以下权限:
When Android 4.1 JellyBean (API 16) was announced at Google I/O, it introduced the following permission:
READ_EXTERNAL_STORAGE
READ_EXTERNAL_STORAGE
提供保护的读访问外部存储器。在安卓4.1默认情况下,所有的应用程序仍然读取权限。这将在未来的版本中改变,可以要求应用程序中使用此权限的明确请求读取权限。如果你的应用程序已经请求写访问,它会自动获得读访问也是如此。有一个新的开发选项,打开读取权限的限制,为开发人员测试他们对Android将如何表现,在未来的应用。
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.
<一个href="http://developer.android.com/about/versions/android-4.1.html#Permissions">http://developer.android.com/about/versions/android-4.1.html#Permissions
我有tagets API 16,并要求WRITE_EXTERNAL_STORAGE权限的应用程序。我是preparing来部署更新,并注意到READ_EXTERNAL_STORAGE许可,现已被列为在开发者门户网站所需的许可。它不列为谷歌所需的许可播放上周部署的更新。此应用程序没有明确要求READ_EXTERNAL_STORAGE权限。
I have an application that tagets API 16 and requires the WRITE_EXTERNAL_STORAGE permission. I am preparing to deploy an update and noticed that the READ_EXTERNAL_STORAGE permission is now listed as a required permission in the developer portal. It was not listed as a required permission in Google Play for an update deployed last week. This application does not explicitly request the READ_EXTERNAL_STORAGE permission.
系统会提示已经授予的WRITE_EXTERNAL_STORAGE权限此应用程序的用户谁授予额外的,隐含的READ_EXTERNAL_STORAGE许可时,更新应用程序?
Will users who have already granted the WRITE_EXTERNAL_STORAGE permission for this application be prompted to grant the additional, implicit READ_EXTERNAL_STORAGE permission when they update the application?
更新:
我们自发布应用程序和软糖设备会自动更新,而不要求READ_EXTERNAL_STORAGE权限。在我明确宣布为READ_EXTERNAL_STORAGE要求将来的版本中,将已经授予的权限WRITE_EXTERNAL_STORAGE谁的用户被要求授予READ_EXTERNAL_STORAGE权限?
We have since released the app and JellyBean devices are automatically updating without requesting the READ_EXTERNAL_STORAGE permission. In a future release when I explicitly declare the requirement for READ_EXTERNAL_STORAGE, will users who have already granted the WRITE_EXTERNAL_STORAGE permission be asked to grant the READ_EXTERNAL_STORAGE permission?
推荐答案
您不必显式声明 READ_EXTERNAL_STORAGE
,只要你有 WRITE_EXTERNAL_STORAGE
。 previously操作系统并没有强制只读访问外部存储器,这种情况正在改变,你现在必须提出要求。但是,如果你有写权限隐式读权限。
You won't have to explicitly declare READ_EXTERNAL_STORAGE
so long as you have WRITE_EXTERNAL_STORAGE
. Previously the OS didn't enforce readonly access to the external storage, that is changing and you must request it now. But if you have write access you implicitly get read access.
从 http://developer.android.com/training/basics /data-storage/files.html
如果您的应用程序需要读取外部存储(但不能写入),那么你就需要声明READ_EXTERNAL_STORAGE许可 ......
If your app needs to read the external storage (but not write to it), then you will need to declare the READ_EXTERNAL_STORAGE permission ...
不过,这时如果你的应用程序使用WRITE_EXTERNAL_STORAGE许可, 它隐含有权限读取外部存储。
However, if your app uses the WRITE_EXTERNAL_STORAGE permission, then it implicitly has permission to read the external storage as well.
这篇关于谷歌播放显示了隐READ_EXTERNAL_STORAGE许可的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!