How to remove permissions


#1

By default, it looks like ExpoView comes with the following permissions

android.permission.CAMERA,android.permission.READ_PHONE_STATE,android.permission.READ_CONTACTS

This causes google play to ask for security policy url and also looks bad when user tries to install the app.

In my app.json

"android": {
  "permissions": []
},

I even have a line in my AndroidManifest.xml that says exclude it

but expo still seems to add these permissions. A closer inspection of the generated report shows that it’s added by expoview

ADDED from [host.exp.exponent:expoview:19.0.0] ~/.android/build-cache/xxxx/output/AndroidManifest.xml:35:22-76
uses-feature#android.hardware.camera

Any way to remove these unnecessary permission?

I am on 19.0.0 and have read this https://docs.expo.io/versions/v19.0.0/guides/configuration.html#permissions but it seem includes those permissions. It’s quit frustrating


closed #2

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.