title: Cordova Plugin-File Android Q Permissions Error
body: <p>So Android 10 broke Cordovas plugin file as it gives permission errors relating to this change: <a href="https://developer.android.com/training/data-storage#scoped-storage" rel="nofollow noreferrer">https://developer.android.com/training/data-storage#scoped-storage</a></p>
  
  <p>I came across this possible solution <a href="https://github.com/bumptech/glide/issues/3896" rel="nofollow noreferrer">https://github.com/bumptech/glide/issues/3896</a> but Cordova does not seem to support it.</p>
  
  <p>The following config.xml produces an error</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;widget id="io.cordova.hellocordova" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0"&gt;
      &lt;name&gt;HelloCordova&lt;/name&gt;
      &lt;description&gt;
          A sample Apache Cordova application that responds to the deviceready event.
      &lt;/description&gt;
      &lt;author email="dev@cordova.apache.org" href="http://cordova.io"&gt;
          Apache Cordova Team
      &lt;/author&gt;
      &lt;content src="index.html" /&gt;
      &lt;plugin name="cordova-plugin-whitelist" spec="1" /&gt;
      &lt;access origin="*" /&gt;
      &lt;allow-intent href="http://*/*" /&gt;
      &lt;allow-intent href="https://*/*" /&gt;
      &lt;allow-intent href="tel:*" /&gt;
      &lt;allow-intent href="sms:*" /&gt;
      &lt;allow-intent href="mailto:*" /&gt;
      &lt;allow-intent href="geo:*" /&gt;
      &lt;edit-config file="AndroidManifest.xml" mode="merge" target="/manifest/application"&gt;
          &lt;application android:allowBackup="false" /&gt;
          &lt;application android:fullBackupContent="false" /&gt;
          &lt;application android:requestLegacyExternalStorage="true" /&gt;
      &lt;/edit-config&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;engine name="android" spec="^8.1.0" /&gt;
  &lt;/widget&gt;
  </code></pre>
  
  <p><code>../debug/AndroidManifest.xml:22: AAPT: error: attribute android:requestLegacyExternalStorage not found.</code></p>
  
  <p>My Android studio shows the latest sdks being used.</p>