title: Unable to get files from folder with .nomedia file or hidden folder in Android 11
body: <p>I want to get all files from WhatsApp's .Statuses folder. Until Android 10 im perfectly getting all statuses files. But on Android 11 due to new restrictions, when I code like below:</p>
  <p><code>File(Environment.getExternalStorageDirectory().absolutePath + File.separator + &quot;Android/media/com.whatsapp/WhatsApp/Media/.Statuses&quot;).listFiles()</code></p>
  <p>I always get 0 files. Whereas, Im successfully getting other folder files &quot;Android/media/com.whatsapp/WhatsApp/Media/&quot; on this path.</p>
  <p>Two problems I'm facing now:</p>
  <ol>
  <li>If a folder is hidden then in Android 11, listFiles() returns 0 on that folder.</li>
  <li>If a folder not hidden but contains one file as &quot;.nomedia&quot; , listFiles() returns 0 on that folder as well in Android 11.</li>
  </ol>
  <p>What should I do to get all whatsapp statuses files in Android 11?</p>
  <p><strong>I dont want to use MANAGE_EXTERNAL_STORAGE permission for it due to google policies. Thank you</strong></p>