hardcore-sushi / DroidFS

Encrypted overlay filesystems implementation for Android. Also available on gitea: https://forge.chapril.org/hardcoresushi/DroidFS
GNU Affero General Public License v3.0
654 stars 44 forks source link

Can't delete original file after importing file to container #298

Closed hollysheep closed 4 months ago

hollysheep commented 4 months ago

When i add a file to a container and want to delete the original files there is the error that the file is read only. I can't find missing permissions in the settings.

I use a xiaomi mi 10 lite with lineageos 19, that is Android 12.

hardcore-sushi commented 4 months ago

Is DroidFS granted the "All files access" special permission?

What's the location of the volume and the imported file?

hollysheep commented 4 months ago

How can i do this?

Volume and file are in the infernal storage.

hardcore-sushi commented 4 months ago

How can i do this?

The app should automatically ask the permission if you click on the folder icon when adding a volume. Otherwise, you can manually grant it in the system settings > Apps > Special app access > All files access > DroidFS

Volume and file are in the infernal storage.

Do you mean the shared storage? Can you please give the full paths of both the volume and the imported file?

hollysheep commented 4 months ago

Permissions are granted.

Path is /storage/emulated/0/Download

hardcore-sushi commented 4 months ago

Ah yes, that is expected. "Download" is a special folder protected by the system that apps can't modify using standard file system API. Take a look here for the official documentation.

Maybe files located here could still be deleted using the MediaStore API. What's the exact error that you get? Would you be able to share your logcat?

hollysheep commented 4 months ago

There is no need to invest to much time in that.