Nafis , my gold-price app, uses the phone's location for one thing: picking the user's country so it shows local prices. A country doesn't need GPS. So I wanted the Android build to ask for approximate location only, ACCESS_COARSE_LOCATION , and drop ACCESS_FINE_LOCATION .
The obvious edit was to delete FINE from android.permissions in app.json :
"permissions" : [ "android.permission.ACCESS_COARSE_LOCATION" ]
Enter fullscreen mode
Exit fullscreen mode
I rebuilt, and FINE was still in the manifest.
Where FINE comes from
expo-location adds it in two places, and neither one reads your permissions list.
1. The config plugin. At the end of expo-location/plugin/build/withLocation.js (expo-location 58.0.22), the plugin always adds both:
return AndroidConfig . Permissions . withPermissions ( config , [ // Note: these are already added in the library AndroidManifest.xml and so // are not required here, we may want to remove them in the future.…