我应用的Google Play页面上的权限错误。这是我的清单(只是权限)
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.VIBRATE" />
以下是完整档案AndroidManifest.xml
没有更多。现在,请查看Google Play上我的应用说明下方的列表。这显然是错误的。
我尝试过联系Google Play支持,但他们什么都没告诉我。
目前,我们无法为应用提供技术支持 与发展有关的问题。我们很乐意帮助解决任何问题 与使用Google发布应用和管理应用相关 玩开发者控制台(http://play.google.com/apps/publish)。
所以现在我不知道如何使列表正确。有没有人有类似的问题?每次应用更新期间,Google Play都会告诉我需要新的权限。但设备可以正确查看权限。它们在Manifest中被正确声明。我该怎么办?
答案 0 :(得分:3)
I found out what's wrong.
getSharedPreferences(getApplicationContext().getPackageName() + "_preferences", Context.MODE_MULTI_PROCESS);
Android Studio adds access to files because I'm using multi process shared preferences and I'm writing to them somewhere (available since API 11).
Force removing the permission by
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" tools:node="remove" />
in the app's Manifest breaks writing to Shared Prefs. So it's really needed and auto-added by Android Studio.
The second one, READ_PHONE_STATE
is because of the saxrssreader library. When the library's min SDK is lower than the app's min SDK, the permission is added during build. I simply changed the library's minimum SDK to the number my app is using and the permission is gone.
That was a tricky one but everything is clear now.