Wrong permissions at Google Play

2020-04-06 03:04发布

Permissions at my app's Google Play page are wrong. Here is my Manifest (just the permissions)

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.VIBRATE" />

Here is the full file AndroidManifest.xml

There is nothing more. Now please take a look at the list below my app description at Google Play. It's obviously wrong.

permissions by Google Play

I tried do contact Google Play support but they told me nothing.

At this time, we’re unable to provide technical support for app development-related questions. We’re happy to help with any questions related to publishing apps and managing your apps using the Google Play Developer Console (http://play.google.com/apps/publish).

So now i don't have a clue what to do to make the list right. Did anyone have a similar problem? Every time during app update Google Play tells me that new permissions are required. But a device can see the permissions correctly. They are declared correctly at Manifest. What should I do?

1条回答
走好不送
2楼-- · 2020-04-06 03:47

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.

查看更多
登录 后发表回答