Excluding the camera permission when building the app-bundle

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

Recently, I have built an app using expo and I use the expo-image-picker package.
Reading through the document, it says that CAMERA permissions is added automatically through the library AndroidManifest.xml .
As I do not use the camera function in the app, and my app is rejected by Google as it includes the CAMERA permission, I want to exclude it from the build.

I have done the following:

  1. Specify permissions in app.json

“android”: {
“permissions”: ,

but when I check the app-bundle, it stills include the camera permission even I pass an empty array in android.permissions.

I have tested that the permissions in app.json is working that when I add “VIBRATE” to android.permissions , the permission includes in the build. When I exclude it in android.permissions, the permission cannot be found in the build.

May I know how can I remove the camera permissions?
Thanks a lot!!

Hi @turtlefung

Please see @notbrent’s answer here and mine here.

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