TeamAmaze / TeamAmaze/AmazeFileManager

Unable to delete directories under Android/data

Open
#4,038 0 comments 1 reaction 1 assignee View on GitHub

@TranceLove is already working on this.

Since Jan 12, 2024.

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

Description

Describe the bug
Files/folders under Android/data, or also Android/obb, are unable to delete.

To Reproduce
Steps to reproduce the behavior:

Case 1:

  1. Go to Android/data of device's internal storage
  2. Long tap on any folder you want to delete
  3. When menu opens, select "Delete"
  4. File list is gone, but will come back upon pull down refresh
  5. But folder want to delete in 2 is not deleted

Case 2:

  1. Go to Android/data of device's internal storage
  2. Go into any folder which is actually an Android app's data folder
  3. Dialog will pop up prompting user to explicitly grant access permission, grant it
  4. Inside the folder in 2, long tap on any file/folder you want to delete
  5. When menu opens, select "Delete"
  6. Operation unsuccessful dialog pops up

Expected behavior
File/folder mentioned in above 2 cases should be able to delete without any error or hold up.

Smartphone (please complete the following information):

  • Device: Pixel 5 emulator
  • OS: Android 11
  • Rooted: No
  • Version: release/3.10 branch

Additional context
Some loopholes didn't plug when implementing support for Android/data. We need to fix this, but truly not sure how far we can go with SAF

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.