title: MS Word removes access to file content on Android 11
body: <p>My app uses <strong>Scoped Storage</strong>:</p>
  <pre><code>compileSdkVersion 30
  targetSdkVersion 30
  </code></pre>
  <p>I save a file to</p>
  <pre><code>MediaStore.Downloads.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY)
  </code></pre>
  <p>then I create an edit intent:</p>
  <pre><code>Intent(Intent.ACTION_EDIT).apply {
              flags = Intent.FLAG_ACTIVITY_NEW_TASK
  
              setDataAndType(uri, mimeTypeMap.getMimeTypeFromExtension(extension))
          }
  </code></pre>
  <p>On Android 11 if I edit this file with <strong>MS Word</strong> after that my app has no more access to that file:</p>
  <pre><code>java.lang.SecurityException: com.myapp.debug has no access to content://media/external_primary/downloads/5414
  </code></pre>
  <p>on Android 10 works fine.</p>
  <p>Another app, for example, WPS Office works fine on both 10 and 11.</p>
  <p>What's wrong with it?</p>