how to remove permission android.permission.CAMERA, android.permission.RECORD_AUDIO,

How to remove permission
android.permission.CAMERA, android.permission.RECORD_AUDIO,
to upload on google play store
Please provide the following:

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

Replace this section with as much relevant information as possible and any relevant code along with your question.

Have you seen
https://docs.expo.io/versions/latest/sdk/permissions/ and https://docs.expo.io/workflow/configuration/?redirected#android ?

You can do sth like this in your app.json

{
 "expo": {
     ...
     "android": {
          ...
          "permissions":  [
      "ACCESS_COARSE_LOCATION",
      "ACCESS_FINE_LOCATION",
      "CAMERA",
      "MANAGE_DOCUMENTS",
      "READ_CONTACTS",
      "READ_CALENDAR",
      "WRITE_CALENDAR",
      "READ_EXTERNAL_STORAGE",
      "READ_PHONE_STATE",
      "RECORD_AUDIO",
      "USE_FINGERPRINT",
      "VIBRATE",
      "WAKE_LOCK",
      "WRITE_EXTERNAL_STORAGE",
      "com.anddoes.launcher.permission.UPDATE_COUNT",
      "com.android.launcher.permission.INSTALL_SHORTCUT",
      "com.google.android.c2dm.permission.RECEIVE",
      "com.google.android.gms.permission.ACTIVITY_RECOGNITION",
      "com.google.android.providers.gsf.permission.READ_GSERVICES",
      "com.htc.launcher.permission.READ_SETTINGS",
      "com.htc.launcher.permission.UPDATE_SHORTCUT",
      "com.majeur.launcher.permission.UPDATE_BADGE",
      "com.sec.android.provider.badge.permission.READ",
      "com.sec.android.provider.badge.permission.WRITE",
      "com.sonyericsson.home.permission.BROADCAST_BADGE"]
     }
 }
}

Just include the permissions you need

1 Like

this doesn’t appear to work as even when permissions are set to : , Expo is ignoring this and populates requested permissions with lots of things like wifi and network access, sms etc etc.

True. There is a set of minimum permissions:

 To use ONLY the following minimum necessary permissions and none of the extras supported
      by Expo, set "permissions" to []. The minimum necessary permissions do not require a
      Privacy Policy when uploading to Google Play Store and are:

      • receive data from Internet
      • view network connections
      • full network access
      • change your audio settings
      • draw over other apps
      • prevent device from sleeping

https://docs.expo.io/workflow/configuration/?redirected#android

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