TeamAmaze / TeamAmaze/AmazeFileManager

Unable to delete file on SD Card

Open
#2,143 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-FileOperations Issue-Bug
Dominant language
Kotlin
Stars
6.4k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
1

Description

Device - Android 9, emulator

2020-12-15 02:23:27.689 1646-1646/com.amaze.filemanager.debug W/System.err: java.io.FileNotFoundException: /storage/1A15-3009/Android/AugendiagnoseDummyFile1 (Permission denied)
2020-12-15 02:23:27.690 1646-1646/com.amaze.filemanager.debug W/System.err:     at java.io.FileOutputStream.open(Native Method)
2020-12-15 02:23:27.690 1646-1646/com.amaze.filemanager.debug W/System.err:     at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
2020-12-15 02:23:27.690 1646-1646/com.amaze.filemanager.debug W/System.err:     at com.amaze.filemanager.filesystem.FileUtil.isWritable(FileUtil.java:754)
2020-12-15 02:23:27.690 1646-1646/com.amaze.filemanager.debug W/System.err:     at com.amaze.filemanager.filesystem.FileUtil.isWritableNormalOrSaf(FileUtil.java:801)
2020-12-15 02:23:27.690 1646-1646/com.amaze.filemanager.debug W/System.err:     at com.amaze.filemanager.utils.MainActivityHelper.checkFolder(MainActivityHelper.java:414)
2020-12-15 02:23:27.690 1646-1646/com.amaze.filemanager.debug W/System.err:     at com.amaze.filemanager.utils.MainActivityHelper.deleteFiles(MainActivityHelper.java:624)
2020-12-15 02:23:27.690 1646-1646/com.amaze.filemanager.debug W/System.err:     at com.amaze.filemanager.ui.dialogs.GeneralDialogCreation.lambda$deleteFilesDialog$0(GeneralDialogCreation.java:221)
2020-12-15 02:23:27.690 1646-1646/com.amaze.filemanager.debug W/System.err:     at com.amaze.filemanager.ui.dialogs.-$$Lambda$GeneralDialogCreation$bRN4EnckyLzY8w3uQEbZKv5Foxk.onClick(lambda)
2020-12-15 02:23:27.690 1646-1646/com.amaze.filemanager.debug W/System.err:     at com.afollestad.materialdialogs.MaterialDialog.onClick(MaterialDialog.java:410)
2020-12-15 02:23:27.690 1646-1646/com.amaze.filemanager.debug W/System.err:     at android.view.View.performClick(View.java:5637)
2020-12-15 02:23:27.690 1646-1646/com.amaze.filemanager.debug W/System.err:     at android.view.View$PerformClick.run(View.java:22429)
2020-12-15 02:23:27.690 1646-1646/com.amaze.filemanager.debug W/System.err:     at android.os.Handler.handleCallback(Handler.java:751)
2020-12-15 02:23:27.690 1646-1646/com.amaze.filemanager.debug W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:95)
2020-12-15 02:23:27.691 1646-1646/com.amaze.filemanager.debug W/System.err:     at android.os.Looper.loop(Looper.java:154)
2020-12-15 02:23:27.691 1646-1646/com.amaze.filemanager.debug W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:6119)
2020-12-15 02:23:27.691 1646-1646/com.amaze.filemanager.debug W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
2020-12-15 02:23:27.691 1646-1646/com.amaze.filemanager.debug W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
2020-12-15 02:23:27.691 1646-1646/com.amaze.filemanager.debug W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing deletion of a file on an SD card with the Android 9 emulator configuration described. Read FileUtil.java at lines 754 and 801, then follow MainActivityHelper.java at lines 414 and 624 and GeneralDialogCreation.java at line 221. Done means the reported SD-card deletion failure is resolved and the relevant behavior is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.