Release APK Permissions

good news! we have implemented this and it should land in our next release. see the attached screenshot.

5 Likes

That was good news :slight_smile:

also, it’s worth noting that the permissions are only asked on install with android < 6. android 6+ does runtime permissions. if someone is using android 5 and are concerned about security, they are doing it wrong. time to update to more recent os with better security.

If anyone is wondering still, SDK 19.0.0 has been released and it now has a way to manage Android permissions check out the docs :slight_smile: https://docs.expo.io/versions/v19.0.0/guides/configuration.html#permission

This is true, however while publishing you are required to have a TOS setup on a website if your app has permissions whereas if it does not you’re not required to have a TOS.

How would we go about removing default permission requests? For example, when uploading our APK we’re seeing this error, however the app does not need access to any these items:

Your APK is using permissions that require a privacy policy: (android.permission.CAMERA, android.permission.RECORD_AUDIO, android.permission.READ_PHONE_STATE, android.permission.READ_CONTACTS).

Thanks!

The new SDK released, Version 19.0.1 allows you to set permissions. if you set the bare-minimum you no longer have to write a privacy policy.

if you visit this config link to view what config you can set, you’ll see we can now set the permissions.

3 Likes

Awesome, I was just in building a new APK with these empty permission: settings and it looks like it’s all good. Thanks for the quick response!

2 Likes

Currently if you set your Android permissions to , it may cause your app to crash. You’ll want to use [“WAKE_LOCK”].

1 Like

i added permissions to app.json, but still not work:

Your APK is using permissions that require a privacy policy: (android.permission.CAMERA, android.permission.RECORD_AUDIO, android.permission.READ_PHONE_STATE, android.permission.READ_CONTACTS).
"android": {
     // ...,
      "permissions": [
        "CAMERA",
        "RECORD_AUDIO",
        "READ_PHONE_STATE",
        "READ_CONTACTS",
        "READ_INTERNAL_STORAGE",
        "READ_EXTERNAL_STORAGE",
        "WRITE_EXTERNAL_STORAGE",
        "ACCESS_FINE_LOCATION",
        "ACCESS_COARSE_LOCATION",
        //"CHANGE_CONFIGURATION",
        "com.google.android.c2dm.permission.RECEIVE",
        "com.android.launcher.permission.INSTALL_SHORTCUT",
        "com.htc.launcher.permission.UPDATE_SHORTCUT"
      ]
    }

please help !!!

Hello,

Is there any way to specify which permissions to use in Android without having to detach app from Expo?

Thanks,

you need to provide a privacy policy if you use camera and stuff. just google android play store privacy policy

https://docs.expo.io/versions/latest/guides/configuration.html#permissions

Json doesn`t handle comments.

app.json is parsed as JSON5, which has comments.

2 Likes