APhotoManager icon indicating copy to clipboard operation
APhotoManager copied to clipboard

Move file to path on different mountpoint does not work

Open k3b opened this issue 8 years ago • 5 comments

I cannot move from /mnt/sdcard0/.... to /mnt/sdcard1/.... Current workaround: copy + delete

k3b avatar Aug 22 '16 07:08 k3b

Still does not work due to file permissions introduced in android-4.4.

Todo Partial rewrite via storeage access framework

see http://stackoverflow.com/questions/36862675/android-sd-card-write-permission-using-saf-storage-access-framework

see also http://stackoverflow.com/questions/23982589/how-to-check-permission-is-granted-for-a-directory-path-and-wont-thorow-eacces

k3b avatar Sep 19 '16 16:09 k3b

Here is an android security hole via the file-media-provider: http://forum.xda-developers.com/showthread.php?t=2634840

Found on http://stackoverflow.com/questions/40068984/universal-way-to-write-to-external-sd-card-on-android#40126690 that adresses the same issue.

also related:

  • https://gitlab.com/axet/android-media-merger/issues/3

k3b avatar Oct 19 '16 10:10 k3b

Maybe you can have a look how ghost commander (also in f-droid https://sourceforge.net/p/ghostcommander/code/HEAD/tree/) is copying files to sdcard using "storage access framework". BR Howil

HoWilgh avatar Mar 06 '17 08:03 HoWilgh

thanks for the info.

Since i currently have only android-4.2 and android-4.4 physical devices and therefore no way to test this in real life, this ticket has low priority for me. May be somebody else can fix this. merge requests are welcome

k3b avatar Mar 06 '17 11:03 k3b

This is a really awful issue with Android 6, and many people are angry with google for that. My hope was that CM would find a solution for it - but they did not (yet).

What about upgrading one of your devices to CM13 or so? - The doze mode really is a good thing, I can say...

herrdeh avatar Apr 10 '17 07:04 herrdeh