Android: remove CALENDAR and CONTACTS permissions

we are ejected and on Expo 35 - Contacts and Calendar permissions are in the exponent:expoview:35.0.0 android manifest - has anyone found a way to permanently remove them (or remove any others) or is there some kind of config or setting? we don’t use them and don’t want them listed in the play store.

for anyone else who is looking for the solution, you can remove any permission from the merged manifest by declaring it in your project manifest and adding tools:node="remove"

<uses-permission tools:node="remove" android:name="android.permission.READ_CONTACTS" />
<uses-permission tools:node="remove" android:name="android.permission.READ_CALENDAR" />
<uses-permission tools:node="remove" android:name="android.permission.WRITE_CALENDAR" />

I checked the apk from the aab afterwards using aapt dump badging and the permissions were gone.

1 Like