title: Android Studio Emulator getExternalFilesDir() "Permission denied" in Device File Explorer
body: <p>Android Studio 3.6.3. In my App, getExternalFilesDir() returns "/storage/emulated/0/Android/data/com.birdersdiary.mobile/files".</p>
  
  <p>I want to drop files in that directory so that my App can locate and read the contents of those files in the AVD/emulator.</p>
  
  <p>If I open the Device File Explorer, I cannot browse to that location in order to drop a couple files from my PC into that directory. I get the following:</p>
  
  <p><a href="https://i.stack.imgur.com/o5PAZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/o5PAZ.png" alt="enter image description here"></a></p>
  
  <p>In other directories I can drop files from my PC using the popup menu on any given directory.</p>
  
  <p>I can do this on my S9+ phone attached to my PC using Windows File Explorer. Although in Windows File Explorer, the path is shown as "Computer\Galaxy S9+\Phone\Android\data\com.birdersdiary.mobile\files". But in Android Studio's "Device File Explorer" I get the same "Permission denied" for my S9+. </p>
  
  <p>The code below works fine for looking for any files. </p>
  
  <pre><code>void lookForImportFiles() {
      String state = Environment.getExternalStorageState();
      if (Environment.MEDIA_MOUNTED.equals(state) || Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {
          File directory = new File(getExternalFilesDir(null).toString());
          File[] files = directory.listFiles();
          if (files != null) {
              for (int i = 0; i &lt; files.length; i++) {
                  Log.d("Files", files[i].getName());
              }
          }
      } else {
          Toast.makeText(this, "External Storage Not Available!", Toast.LENGTH_SHORT).show();
      }
  }
  </code></pre>
  
  <p>How do I copy some test files into my Emulator's getExternalFilesdir() path from my PC? </p>
  
  <p>Why is the Device File Explorer giving me "Permission denied"?</p>