Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to delete directories under Android/data #4038

Open
TranceLove opened this issue Jan 9, 2024 · 0 comments
Open

Unable to delete directories under Android/data #4038

TranceLove opened this issue Jan 9, 2024 · 0 comments
Assignees
Labels
Area-FileOperations Related to file operations (e.g. moving, copying, renaming). Environment-API30 This is for issue relating to issues after the lockdown of API 30 Environment-API31 This is for issue relating to issues after the lockdown of API 31 Environment-API33 This is for issue relating to issues after the lockdown of API 33 From-telegram Issue reported through telegram channel Issue-Bug Related unexpected behavior or something worth investigating.

Comments

@TranceLove
Copy link
Collaborator

TranceLove commented Jan 9, 2024

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

@TranceLove TranceLove added Area-FileOperations Related to file operations (e.g. moving, copying, renaming). Environment-API30 This is for issue relating to issues after the lockdown of API 30 From-telegram Issue reported through telegram channel Environment-API31 This is for issue relating to issues after the lockdown of API 31 Environment-API33 This is for issue relating to issues after the lockdown of API 33 Issue-Bug Related unexpected behavior or something worth investigating. labels Jan 9, 2024
@TranceLove TranceLove self-assigned this Jan 12, 2024
TranceLove added a commit that referenced this issue Jan 12, 2024
Addresses #4038, that under specific root URI the file/folders should be able to be found correctly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-FileOperations Related to file operations (e.g. moving, copying, renaming). Environment-API30 This is for issue relating to issues after the lockdown of API 30 Environment-API31 This is for issue relating to issues after the lockdown of API 31 Environment-API33 This is for issue relating to issues after the lockdown of API 33 From-telegram Issue reported through telegram channel Issue-Bug Related unexpected behavior or something worth investigating.
Projects
None yet
Development

No branches or pull requests

1 participant