Permission denied in Android Emulator Device File Explorer

14,309

Solution 1

/sdcard is a symlink to /storage/emulated/0. You should therefore be able to see external files for your app in /sdcard/Android/data/<your app>.

Solution 2

Looks like you are using Google Play system image.

You need to use a standard Android (AOSP) system image (not one of the Google APIs or Google Play system images)

see details here

Solution 3

cause there is system files located and for your access device file open self-> primary folder.

Share:
14,309

Related videos on Youtube

BlueStar
Author by

BlueStar

Updated on June 12, 2022

Comments

  • BlueStar
    BlueStar about 2 years

    Device File Explorer screenshot

    I want to check if a folder has been created in the External Storage.

    I already added permissions inside the AndroidManifest.xml:

    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    

    but it doesn't work either.

    Any clue?

  • BlueStar
    BlueStar over 4 years
    but I use 'Environment.getExternalStorageDirectory().getAbsolutePath()‌​;', Logcat see me /storage/emulated/0/xxx. Is this external stroage path?
  • ankitsinh corepix
    ankitsinh corepix over 4 years
    if you open device explorer for emulator device then you able to view files in path you want to see,but in physical device you not able to see those file,So i think there is permission needed if your device is rooted then you will able to see files.
  • ProjectDelta
    ProjectDelta about 4 years
    So how can I access if my app needs Google API to function?
  • JanithaR
    JanithaR over 3 years
    The same goes there as well. ls: /sdcard/Android/data/: Permission denied.
  • JanithaR
    JanithaR over 2 years
    A few months later I ran into the same issue and landed on this answer again and noticed my own comment. This time it works. So I'm guessing whether this answer would work would depend on the image your emulator is using and the version of Android it is running.