title: Phonegap Android permissions, config.xml and plugins
body: <p>I have a Phonegap app that I'm currently developing and testing for Android. Problem is, when I publish to device, the Android Manifest is full of permission requests that I did not ask for.</p>
  
  <p>I have already figured out that the Phonegap Plugins (see <a href="http://docs.phonegap.com/en/3.0.0/guide_cli_index.md.html#The%20Command-line%20Interface">this docs page</a> under "Add features") have something to do with it. If you install a plugin like Camera, then PhoneGap will automatically add the related permission to AndroidManifest. So I've uninstalled all Phonegap Plugins that I didn't need, and those permissions went away.</p>
  
  <p>So far so good.</p>
  
  <p>Trouble is, my Android Manifest (and a file called "android.json" in the project's /Plugins directory) still contain a number of unwanted features:</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.RECORD_VIDEO" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
  </code></pre>
  
  <p>Since my app is about budgeting, a "Record video" permission would suggest to any sane user that this is an evil sneaky app trying to destroy their privacy.</p>
  
  <p>How do I get rid of these feature requests? I already tried...</p>
  
  <ol>
  <li>Adding <code>&lt;preference name="permissions" value="none" /&gt;</code> to config.xml.</li>
  <li>Uninstalling all related Phonegap Plugins. I even uninstalled a plugin AudioHandler that seems to have come preinstalled when I created the project.</li>
  </ol>
  
  <p>Of course I can remove the stuff manually from AndroidManifest.xml before I publish my final version. But I would like a more structural solution, since I use "cordova run android" to test on device, and this overwrites all changes to AndroidManifest.xml and android.json.</p>