Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"release declaring sensitive permissions" error when added new version that doesn't have sensitive permissions

Im getting this error when Im adding apk to alpha and beta in play store. Production is normal.

I found this answers.

Google play console said "You can't edit this app until you create a new app release declaring sensitive permissions" how to fix it?

Warnings Your Apk Is Using Permissions That Require A Privacy Policy: (android.permission.READ_PHONE_STATE)

Neither Im using read_phone_state permission nor sms,call log permissions

I have attached screen shot my google play store account below.

enter image description here

I cant see where the real problem is. This page says only just there is an error.

Thats my all permissions

<uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="android.permission.CALL_PHONE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.READ_CONTACTS" />
    <uses-permission android:name="android.permission.WRITE_CONTACTS" />
    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
    <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
    <uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />
    <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
    <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
    <uses-permission android:name="android.permission.VIBRATE" />
    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
    <uses-permission android:name="android.permission.RECORD_AUDIO" />

    <uses-permission android:name="android.permission.WRITE_SETTINGS"
        tools:ignore="ProtectedPermissions" />
    <uses-permission android:name="android.permission.READ_SYNC_STATS" />
    <uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
    <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
    <uses-permission android:name="android.permission.BROADCAST_STICKY" />
    <uses-permission android:name="android.permission.READ_LOGS"
        tools:ignore="ProtectedPermissions" />
    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
    <uses-permission android:name="android.permission.READ_PROFILE" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
like image 695
6155031 Avatar asked Jan 28 '19 08:01

6155031


People also ask

How do I get rid of previously declared permissions on Play Store?

What is the procedure to get rid of it? First unpublish the existing production apk, then upload new one. Also, make sure you are uploading this apk to production and not in the BETA.

Why does your app need to use the Query_all_packages permission?

The QUERY_ALL_PACKAGES permission has been introduced with Android R (Android 11). This permission enables the application to be able to query the installed applications on an Android device. We recommend applying for this permission if your application is subject to the requirements by Google Play.


2 Answers

In our case, we were thinking that we did not have "Read SMS/Call log" permissions in our app yet, and had the same error. But we were planning to include such features into our app, so we sumbitted the sensitive permissions declaration form previously via Google Forms link (before it was integrated into Play Console) and got a decline.

So our solution was:
1. Add READ_SMS permission to our apk and increase version code
2. Publish new apk in alpha channel and declare that the release did not comply with the new regulations (in the permission declaration form). After this the error went away.
3. Publish updated APK with this permission removed (which was our goal in the first place)

After step 2 the error went away, so we were able to release our planned apk to production.

Update:
It turned out we had an old apk with "Read SMS" permission in our alpha channel. So you can use these instructions to trigger declaration form, but you will still need to delete this apk later in order to comply new rules. This is what we did, after that error went away.

like image 157
Vadim Kotov Avatar answered Sep 19 '22 14:09

Vadim Kotov


I solved it by following these steps,

  1. Create a release and instead of uploading new apk/bundle select anyone from the library which has SMS or call permissions.

  2. Fill up all the necessary details and the declaration form, save and review.

  3. Now go to release management and edit this release and upload the new apk/bundle which you were supposed to upload.

  4. Now you wont see any error messages.

  5. Fill in all the details, save,review and rollout.

like image 23
hasan_shaikh Avatar answered Sep 22 '22 14:09

hasan_shaikh