java.io.FileNotFoundException

/storage/MicroSD/WhatsAppold/a.apk: open failed: EACCES (Permission denied)

Samebug tips1

Check if android.permission.WRITE_EXTERNAL_STORAGE is in AndroidManifest.xml. Also, add checks in your code to see if the storage is available to write before trying to write. And last: create a folder to put your files inside.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web4152

  • /storage/MicroSD/WhatsAppold/a.apk: open failed: EACCES (Permission denied)
  • /storage/MicroSD/Android/A.mp4: open failed: EACCES (Permission denied)
  • /storage/sdcard/appcrash.log : open failed: EACCES (Permission denied)
  • Stack trace

    • java.io.FileNotFoundException: /storage/MicroSD/WhatsAppold/a.apk: open failed: EACCES (Permission denied) at libcore.io.IoBridge.open(IoBridge.java:409) at java.io.FileOutputStream.<init>(FileOutputStream.java:88) at java.io.FileOutputStream.<init>(FileOutputStream.java:73) at net.rdrei.android.dirchooser.sample.DirChooserSample.moveFile(DirChooserSample.java:109) at net.rdrei.android.dirchooser.sample.DirChooserSample$3.onClick(DirChooserSample.java:76) at android.view.View.performClick(View.java:4478) at android.view.View$PerformClick.run(View.java:18698) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:149) at android.app.ActivityThread.main(ActivityThread.java:5257) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609) at dalvik.system.NativeStart.main(Native Method) Caused by: libcore.io.ErrnoException: open failed: EACCES (Permission denied) at libcore.io.Posix.open(Native Method) at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110) at libcore.io.IoBridge.open(IoBridge.java:393) ... 15 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 1 year ago
    2 times, 1 year ago
    22 times, 10 months ago
    10 times, 11 months ago
    20 times, 1 year ago
    43 more bugmates