External Storage Restrictions
Hi,
Maybe it's me, but how do i paste a file i copyed??? (seems to be a bug as I can't find a way)
I also don't seem to be able to delete files (at least on external storage)...
Thank you
File operations are treated as tasks. So when you copy something, a new task is added, and from the task panel, you can run the task where you want to paste.
https://github.com/user-attachments/assets/e18925b0-83e5-4d2a-9bd5-1b37699de031
As for deleting files on external storage, what Android version are you using? and by external storage, do you mean an sd card?
Just tested an SD card, and there seems to be no issue in deleting files (at least in Android 13)
File operations are treated as tasks. So when you copy something, a new task is added, and from the task panel, you can run the task where you want to paste. Screen_Recording_20250730_063338_Prism.File.Explorer.mp4
I'm doing right, then... it says the task was completed successfully, but no file gets pasted
As for deleting files on external storage, what Android version are you using? and by external storage, do you mean an sd card?
Yes, an sd card!
I'm using Android 8.1 on Xiaomi Redmi 5 (yeah, old phone... )
just to clarify, so you can't copy in the internal storage, what about creating and deleting files? and is it just deleting files that doesn't work in SD card? can you test file operations (copy, add, delete) in both internal and external storage and see if anything works, because it could be a permission issue in older android versions. Also, once you've done that, can you check the logs screen
I tested copying files in virtual device (Android 8.1) and it seems I can copy files just fine.
just to clarify, so you can't copy in the internal storage, what about creating and deleting files?
Internal storage is fine! I can create, delete and copy with no problem
and is it just deleting files that doesn't work in SD card? can you test file operations (copy, add, delete) in both internal and external storage and see if anything works,
Can't create, delete or copy in external storage!
because it could be a permission issue in older android versions.
Yeah! It's probably a Xiaomi permissions problem! I've had issues before! But, since I know the drill already, before I create an issue here, I tested it by giving it full permissions (to just about everything)!
Funny thing, Amaze file manager has no issues on external storage! I can do all operations!
I'll submit the logs asap
java.io.IOException: Permission denied at java.io.UnixFileSystem.createFileExclusively0(Native Method) at java.io.UnixFileSystem.createFileExclusively(UnixFileSystem.java:281) at java.io.File.createNewFile(File.java:1000) at com.raival.compose.file.explorer.screen.main.tab.files.holder.LocalFileHolder.createSubFile(Unknown Source:7) at com.raival.compose.file.explorer.screen.main.tab.files.ui.dialog.CreateNewFileDialogKt$CreateNewFileDialog$2$1$1$5$1$1$1.invokeSuspend(Unknown Source:100) at L6.a.resumeWith(Unknown Source:8) at c7.F.run(Unknown Source:109) at h7.g.run(Unknown Source:3) at j7.j.run(Unknown Source:2) at j7.a.run(Unknown Source:93) Suppressed: h7.e: [k0{Cancelling}@5a7d6cd, Dispatchers.IO]
Can you check the latest action build and see if it is fixed? (Note that the build is unsigned, so you would need to sign it first, you can use APK signer from Google Play. And also you would need to uninstall the version you currently have before installing the new one)
I'm sorry! I tried to use apk-signer but it constantly fails...
I have the similar issue with this person. Creating files or folders always fail with failed toast. But copy from external storage to internal worked fine. The app didn't ask permission to manage external sd card tho like other file manager?
Forgot to add. I tested it with latest release and the one from action build too.
On OnePlus6, android 10.
I managed to pin point the issue.
TLDR; the fix is going to take some time.
Basically Android has restricted external storage modification even when read and write permission are granted on devices running Android 10 and prior versions. I must request a specific permission for each storage device, and I need to use DocumentFile APIs to deal with those storage devices.
the fix is going to take some time.
Maybe you can reuse some of the code from Amaze...
But copy from external storage to internal worked fine.
That happens because you don't need write permissions to make a copy! You don't touch the external disk! You just read it! Permission is requested to write on a disk! Since you're writing on internal storage there is no problem!