Permissões de uso desnecessarias

Gerei um APK pelo Expo e está solicitando um monte de permissões que eu não utilizo no meu APP, como faço para retirar essas permissões, achei isso na documentação (https://docs.expo.io/versions/latest/sdk/permissions/#excluding-android-permissions-in-bare-workflow) que fala sobre o arquivo “AndroidManifest.xml”, mas esse arquivo não existe na minha aplicação. Alguém consegue me ajudar por favor??

1 Like

Hi

The documentation you found is about the bare workflow. You probably want documentation about the managed workflow.

See the following:

e.g. if you only use the camera, then you need something like this in app.json:

{
  "expo": {
    [...]
    "android": {
      "permissions" : ["CAMERA"]
    }
  }
}

See also: https://docs.expo.io/versions/latest/config/app/#permissions
and: https://docs.expo.io/versions/v40.0.0/sdk/permissions/#permissions-on-android

2 Likes

Thanks, I managed to solve with the right documentation! I just needed:

permission: [ ]

When you don’t put it, the expo considers all permissions, if it’s empty then yes it doesn’t consider any

2 Likes

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