How to remove permission from cordova plugin?

The geolocation plugin from https://github.com/apache/cordova-plugin-geolocation confiugures the following two permission:

<config-file target="AndroidManifest.xml" parent="/*">
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
</config-file>

However, I only need the coarse location and not the fine location. What would be the best way to remove the permission for Android and iOS?

  1. Is there a way to configure it via mobile-config.js?
  2. Fork the plugin, edit its plugin.xml and add it locally?
  3. Build the project and edit generated manifest files?

Thanks for any input on this.