title: Cordova Permissions, how to handle in config.xml?
body: <p>When you try install my android app, it asks for a whole lot of permissions that I am not using? How do I limit the permissions in the config.xml ?</p>
  
  <p>The issue is that I do not define most of those permissions in my config.xml</p>
  
  <pre><code>&lt;widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" id="com.beerportfolio.beerportfoliopro" version="5.4.9"&gt;
  
      &lt;preference name="phonegap-version" value="cli-6.3.0" /&gt;
      &lt;preference name="android-build-tool" value="gradle" /&gt;
  
      &lt;gap:plugin name="cordova-plugin-whitelist" source="npm" /&gt;
      &lt;access origin="*" /&gt;
      &lt;allow-navigation href="*" /&gt;
      &lt;allow-intent href="*" /&gt;
  
      &lt;name&gt;Beer Portfolio&lt;/name&gt;
      &lt;description&gt;Know Your Beer&lt;/description&gt;
      &lt;author href="https://www.beerportfolio.glass" email="mike@beerportfolio.glass"&gt;Mike&lt;/author&gt;
      &lt;content src="index.html" /&gt;
      &lt;preference name="permissions" value="none" /&gt;
      &lt;preference name="orientation" value="default" /&gt;
  
      &lt;preference name="target-device" value="universal" /&gt;
  
      &lt;preference name="fullscreen" value="false" /&gt;
      &lt;preference name="webviewbounce" value="false" /&gt;
      &lt;preference name="disallowOverscroll" value="true" /&gt;
      &lt;preference name="prerendered-icon" value="true" /&gt;
      &lt;preference name="stay-in-webview" value="false" /&gt;
      &lt;preference name="ios-statusbarstyle" value="black-opaque" /&gt;
      &lt;preference name="detect-data-types" value="true" /&gt;
      &lt;preference name="exit-on-suspend" value="false" /&gt;
      &lt;preference name="show-splash-screen-spinner" value="true" /&gt;
      &lt;preference name="auto-hide-splash-screen" value="true" /&gt;
      &lt;preference name="disable-cursor" value="false" /&gt;
      &lt;preference name="android-minSdkVersion" value="10" /&gt;
      &lt;preference name="android-targetSdkVersion" value="19" /&gt;
      &lt;preference name="android-installLocation" value="auto" /&gt;
      &lt;gap:plugin name="org.apache.cordova.battery-status" source="npm" /&gt;
      &lt;gap:plugin name="cordova-plugin-camera" source="npm" /&gt;
      &lt;gap:plugin name="org.apache.cordova.media-capture" source="npm" /&gt;
      &lt;gap:plugin name="org.apache.cordova.console" source="npm" /&gt;
      &lt;gap:plugin name="org.apache.cordova.contacts" source="npm" /&gt;
  
  
      &lt;gap:plugin name="org.apache.cordova.device-motion" source="npm" /&gt;
      &lt;gap:plugin name="org.apache.cordova.device-orientation" source="npm" /&gt;
      &lt;gap:plugin name="org.apache.cordova.dialogs" source="npm" /&gt;
      &lt;gap:plugin name="org.apache.cordova.file" source="npm" /&gt;
      &lt;gap:plugin name="org.apache.cordova.file-transfer" source="npm" /&gt;
  
      &lt;gap:plugin name="org.apache.cordova.inappbrowser" source="npm" /&gt;
      &lt;gap:plugin name="org.apache.cordova.media" source="npm" /&gt;
      &lt;gap:plugin name="org.apache.cordova.network-information" source="npm" /&gt;
      &lt;gap:plugin name="org.apache.cordova.splashscreen" source="npm" /&gt;
      &lt;gap:plugin name="org.apache.cordova.vibration" source="npm" /&gt;
  
      &lt;icon src="icon.png" /&gt;
  
      &lt;gap:splash src="splash.png" gap:platform="android" gap:qualifier="port-ldpi" /&gt;
      &lt;gap:splash src="splash.png" gap:platform="android" gap:qualifier="port-mdpi" /&gt;
      &lt;gap:splash src="splash.png" gap:platform="android" gap:qualifier="port-hdpi" /&gt;
      &lt;gap:splash src="splash.png" gap:platform="android" gap:qualifier="port-xhdpi" /&gt;
      &lt;gap:splash src="splash.png" gap:platform="blackberry" /&gt;
      &lt;gap:splash src="splash.png" gap:platform="ios" width="320" height="480" /&gt;
      &lt;gap:splash src="splash.png" gap:platform="ios" width="640" height="960" /&gt;
      &lt;gap:splash src="splash.png" gap:platform="ios" width="640" height="1136" /&gt;
      &lt;gap:splash src="splash.png" gap:platform="ios" width="768" height="1024" /&gt;
      &lt;gap:splash src="splash.png" gap:platform="ios" width="1024" height="768" /&gt;
      &lt;gap:splash src="splash.png" gap:platform="winphone" /&gt;
      &lt;access origin="*" /&gt;
  
      &lt;gap:plugin name=" phonegap-plugin-barcodescanner" source="npm" /&gt;
  
  
      &lt;gap:plugin name="uk.co.workingedge.phonegap.plugin.launchnavigator" source="npm" /&gt;
      &lt;gap:plugin name="cordova-plugin-directions" source="npm" /&gt;
  
  
      &lt;gap:config-file platform="ios" parent="NSCameraUsageDescription" overwrite="true"&gt;
          &lt;string&gt;We are using the Camera to scan barcodes&lt;/string&gt;
      &lt;/gap:config-file&gt;
  
      &lt;gap:config-file platform="ios" parent="NSPhotoLibraryUsageDescription" overwrite="true"&gt;
          &lt;string&gt;We are using the photo library to scan barcodes&lt;/string&gt;
      &lt;/gap:config-file&gt;
  
  
  
  
      &lt;!-- iPhone / iPod Touch  - lower 4s --&gt;
      &lt;icon src="icon-57.png" gap:platform="ios" width="57" height="57" /&gt;
      &lt;icon src="icon.png" gap:platform="ios" width="114" height="114" /&gt;
      &lt;icon src="icon-72.png" gap:platform="ios" width="72" height="72" /&gt;
      &lt;icon src="152.png" gap:platform="ios" width="152" height="152" /&gt;
      &lt;icon src="icon-120.png" gap:platform="ios" width="120" height="120" /&gt;
      &lt;icon src="76.png" gap:platform="ios" width="76" height="76" /&gt;
      &lt;icon src="icon-40.png" gap:platform="ios" width="40" height="40" /&gt;
  
      &lt;!-- iPhone / iPod Touch - 5-5s --&gt;
      &lt;icon src="icon.png" gap:platform="ios" width="60" height="60" /&gt;
      &lt;icon src="icon.png" gap:platform="ios" width="120" height="120" /&gt;
      &lt;!-- iPhone6-6+ --&gt;
      &lt;icon src="icon.png" gap:platform="ios" width="180" height="180" /&gt;
  
      &lt;!-- Settings Icon --&gt;
      &lt;icon src="icon-29.png" gap:platform="ios" width="29" height="29" /&gt;
      &lt;icon src="icon.png" gap:platform="ios" width="58" height="58" /&gt;
  
      &lt;!-- Spotlight Icon --&gt;
      &lt;icon src="icon.png" gap:platform="ios" width="40" height="40" /&gt;
      &lt;icon src="icon.png" gap:platform="ios" width="80" height="80" /&gt;
  
      &lt;plugin name="cordova-plugin-whitelist" version="1" source="npm" /&gt;
  
      &lt;gap:plugin name="cordova-plugin-geolocation" source="npm" /&gt;
  
      &lt;feature name="http://api.phonegap.com/1.0/battery" /&gt;
      &lt;feature name="http://api.phonegap.com/1.0/camera" /&gt;
      &lt;feature name="http://api.phonegap.com/1.0/network" /&gt;
      &lt;feature name="http://api.phonegap.com/1.0/notification" /&gt;
  
      &lt;gap:plugin name="cordova-plugin-x-socialsharing" source="npm" /&gt;
  
      &lt;allow-intent href="http://*/*" /&gt;
      &lt;allow-intent href="https://*/*" /&gt;
      &lt;allow-intent href="tel:*" /&gt;
      &lt;allow-intent href="mailto:*" /&gt;
      &lt;allow-intent href="geo:*" /&gt;
      &lt;platform name="android"&gt;
          &lt;allow-intent href="market:*" /&gt;
      &lt;/platform&gt;
      &lt;platform name="ios"&gt;
          &lt;allow-intent href="itms:*" /&gt;
          &lt;allow-intent href="itms-apps:*" /&gt;
      &lt;/platform&gt;
  &lt;/widget&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/6qY9H.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6qY9H.png" alt="enter image description here"></a></p>