title: Is it possible to get WhatsApp media file using MediaStore.VOLUME_EXTERNAL
body: <p>My app requires a feature that backups WhatsApp status, voice notes, and images. As you know after Android Q google enforcing to access external media files using MediaStore API.</p>
  <p>WhatsApp also moved their file to <code>/Android/media/com.whatsapp/WhatsApp</code>. I tried using <code>MANAGE_EXTERNAL_STORAGE</code> permission it works fine, but backing up these files is not the core functionality of the app, so I don't think google going to let me use this permission.</p>
  <p>I wonder if there any way to read those files using MediaStore.VOLUME_EXTERNAL?</p>
  <p>I tried something like this. I am not sure if this is even possible.</p>
  <pre class="lang-kotlin prettyprint-override"><code>val collection = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL)
  
  val selection= (MediaStore.Files.FileColumns.MEDIA_TYPE + &quot;=&quot;
          + MediaStore.Files.FileColumns.MEDIA_TYPE_NONE)
  val selectionArgs= arrayOf(&quot;%/WhatsApp/Media/.Statuses%&quot;)
  val cursor = applicationContext.contentResolver.query(
      collection, null, selection, selectionArgs, null)
  debug(cursor?.columnCount)
  cursor?.close()
  </code></pre>
  <p>it throws an exception.</p>
  <pre><code>Caused by: android.database.sqlite.SQLiteException: no such column: media_type
  </code></pre>