Warnings Your Apk Is Using Permissions That Requir

2019-07-25 16:50发布

问题:

Your app has an apk with version code 1 that requests the following permission(s): android.permission.GET_ACCOUNTS. Apps using these permissions in an APK are required to have a privacy policy set.

This is the error I get on google play console, Im not asking for this permission!

Those are the only permissions my app has:

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

回答1:

Its Bug from Google Play Services library adding unnecessary READ_PHONE_STATE permission

Fixed by :

<manifest 
  xmlns:tools="http://schemas.android.com/tools"
  <!-- ... -->
>

<uses-permission android:name="android.permission.READ_PHONE_STATE" 
tools:node="remove" />


回答2:

You may have used any library which uses these permissions.

Add a privacy url at the bottom of Store Listing page in Google Play to proceed.