Google Play请求访问照片/媒体/文件

时间:2016-07-25 13:11:46

标签: android

我已将新版本上传到Google Play。 此更新需要接受应用程序合并清单中未提及的新权限照片/媒体/文件。

Google Play控制台的要求权限:

Required permissions 13 permissions 
android.permission.ACCESS_FINE_LOCATION 
android.permission.ACCESS_NETWORK_STATE 
android.permission.CAMERA
android.permission.GET_ACCOUNTS
android.permission.INTERNET
android.permission.READ_CONTACTS
android.permission.READ_EXTERNAL_STORAGE
android.permission.READ_PROFILE
android.permission.VIBRATE
android.permission.WAKE_LOCK
android.permission.WRITE_EXTERNAL_STORAGE maxSdkVersion=18
com.google.android.c2dm.permission.RECEIVE
com.****.permission.C2D_MESSAGE

合并清单的权限:

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.READ_PROFILE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
    android:maxSdkVersion="18" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="com.****.permission.C2D_MESSAGE" />

READ_EXTERNAL_STORAGE权限从哪里开始,或者为什么要添加?

1 个答案:

答案 0 :(得分:1)

任何声明WRITE_EXTERNAL_STORAGE权限的应用也会被隐式授予READ_EXTERNAL_STORAGE权限。

See Android Official Docs.