Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Permission denied in Android Emulator Device File Explorer

Tags:

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?

like image 583
BlueStar Avatar asked Nov 23 '19 02:11

BlueStar


People also ask

How do I give permission to Android emulator?

So on Emulator, you just hit the run button and it installs automatically, that's why you are thinking it is not asking permission. if you go into Settings->Applications->YourApp you will see the details of the permission your app will use. Show activity on this post.


2 Answers

/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>.

like image 164
akindofyoga Avatar answered Sep 25 '22 14:09

akindofyoga


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

like image 32
Mike Adamenko Avatar answered Sep 25 '22 14:09

Mike Adamenko