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)
Solution 3
cause there is system files located and for your access device file open self-> primary folder.
Related videos on Youtube
Author by
BlueStar
Updated on June 12, 2022Comments
-
BlueStar about 2 years
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 over 4 yearsbut I use 'Environment.getExternalStorageDirectory().getAbsolutePath();', Logcat see me /storage/emulated/0/xxx. Is this external stroage path?
-
ankitsinh corepix over 4 yearsif 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 about 4 yearsSo how can I access if my app needs Google API to function?
-
JanithaR over 3 yearsThe same goes there as well. ls: /sdcard/Android/data/: Permission denied.
-
JanithaR over 2 yearsA 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.