patrykcoding / rcloneExplorer

rclone explorer for Android
MIT License
347 stars 50 forks source link

Access to external storage #207

Open the-researcher opened 6 years ago

the-researcher commented 6 years ago

When selecting device storage, the only storage that is accessible to the App is the internal memory.

It would be extremely useful if you could include external storage (microSD) in the "Select Storage" dialog box as a upload location.

Thanks!

Technical details: App Version: 1.7.0-ARM64 Rclone Version: v1.42-DEV

meinnamehier commented 6 years ago

See here https://github.com/kaczmarkiewiczp/rcloneExplorer/issues/201

patrykcoding commented 6 years ago

Just to clarify, when you select storage, is the only option available /sdcard ? What phone are you using, and Android version?

moarbytes commented 5 years ago

I'm also unable to select my SD card. Occasionally. Which is even odder. Every once in awhile instead of just showing SD card with no options, it will give me the choice of the private app storage for rclonexplorer on the SD card. Though selecting it does nothing. I'm on a Galaxy S8 Plus on Oreo. SD card is encrypted.

I've been able to get around it by using Mix plorer to create symlinks.

thomasmhofmann commented 5 years ago

@kaczmarkiewiczp I think this should be possible. Take a look at https://github.com/Khang-NT/Android-Media-Converter. It works with external storage and uses ffmpeg binary as native application.

thomasmhofmann commented 5 years ago

Interesting parts: https://github.com/Khang-NT/Android-Media-Converter/blob/master/app/src/main/java/com/github/khangnt/mcp/util/UriUtils.java

https://github.com/Khang-NT/Android-Media-Converter/blob/master/app/src/main/java/com/github/khangnt/mcp/util/ExternalStorage.java

https://github.com/Khang-NT/Android-Media-Converter/blob/master/app/src/main/java/com/github/khangnt/mcp/util/PermissionUtils.kt

x0b commented 5 years ago

I think this should be possible.

It is, and if you're feeling adventurous, you can try a version of this by enabling it in the settings.

However, this was developed before rclone plugins were a thing - it may be possible to make file access a bit faster by querying the content providers directly from within golang using gomobile bind to borrow the application's context.

thomasmhofmann commented 5 years ago

Thanks I will have a look at these links and read about rclone plugins too.

thomasmhofmann commented 5 years ago

@x0b very interesting. Thanks for sharing. Had some problems with SAF. Will try to post a logcat...

ribtoks commented 4 years ago

I have the same issue. Can only sync to internal storage

x0b commented 4 years ago

@thomasmhofmann Could you share your problems or the logcat (x0bdev@gmail.com if it contains private data)? I seem to have missed the notification.

@ribtoks Which version did you try? If the storage location is visible to getExternalFilesDirs() it should work in my recent versions. You could also try the SAF Proxy.

ribtoks commented 4 years ago

I tried 1.10 it did not work.

x0b commented 4 years ago

Could open an issue with with a bit more details, e.g. android version, type of storage, your exact steps, etc.?