How to test reduced Android permissions in dev? (SDK 40)

  1. SDK Version: ^40.0.0
  2. Platforms(Android/iOS/web/all): Android

I know there are lots of permissions topics around, but I searched hard and couldn’t find this specific one.

I’m trying to reduce my permissions set to the minimum. But I can’t figure out if certain ones are needed, or what the existing ones are used for. I use camera, lowest accuracy location, and notifications (remote only - so I don’t need RECEIVE_BOOT_COMPLETED). Based on the features I use I think I can reduce it in app.json to just ["ACCESS_COARSE_LOCATION", "CAMERA"] but I’m not sure how to test this in dev, any ideas?

I use notifications, but I don’t know if I need all the permissions that come default.

I can’t figure out if I use anything that needs the following permissions that are included:

      "permissions": [
  • I know I definitely need “Camera” I added that. So I retain this.
  • For location I don’t use any exact location I don’t think. I use hasServicesEnabledAsync, getLastKnownPositionAsync with no requiredAccuracy (so Im guessing it gives whatever lowest? the default param isn’t so clear in docs or code) and, getCurrentPositionAsync with accuracy: Location.LocationAccuracy.Lowest. This makes me think I can remove ACCESS_FINE_LOCATION and just keep ACCESS_COARSE_LOCATION.
  • I do have notifications that cause vibration but I don’t think I need VIBRATE.
  • I don’t install short cuts so I think I can get rid of and ``
  • I don’t do jogging, sitting, climbing stairs stuff so I’m thinking I can remove
  • I don’t read settings so not sure what uses or

What I ended up doing was creating a prod APK and then installing it onto my device and making sure all the features I had worked. I left in the and just because they sound important, I’m totally unsure what they are needed for.