Giter Site home page Giter Site logo

Comments (6)

patrykcoding avatar patrykcoding commented on June 10, 2024

Starting with Android KitKat, apps are required to use Storage Access Framework in order to freely write to external storage. On rcloneExplorer, rclone is in charge of saving files, so there's no way of using official Android API to save files. I had to use a hacky way to support saving to external storage. Apps can still save to external storage without using Storage Access Framework, but only to the app's folder. So this is exactly what rcloneExplorer does. It saves files to app's media folder on the external storage. This means that if you want to save your files to a specific folder on your external SD card, you'll have to use a file explorer to move them afterwards.

So looking at your last screenshot:

  1. /sdcard is your internal storage
  2. /storage/emulated/0/Android/media/ca.pkay.rcexplorer is also the internal storage. This entry should not be displayed here, and is a side effect of adding support for external storage. I'm trying to figure out a way not to display it here.
  3. /storage/86E0-9033/Android/media/ca.pkay.rcexplorer this should be your external SD card

Have you tried selecting the third storage? Does it not work?

from rcloneexplorer.

FoxP avatar FoxP commented on June 10, 2024

Selecting the third storage may work but it won't allow to sync / backup the DCIM folder (for instance) with a rclone-compatible remote. I'm ok to download to /storage/86E0-9033/Android/media/ca.pkay.rcexplorer and move everything afterwards, but not being able to sync my external SD card pictures / videos / files is a huge limitation. 😃

from rcloneexplorer.

patrykcoding avatar patrykcoding commented on June 10, 2024

I really can't figure out a way around this. Since rclone doesn't use Storage Access Framework, it can only save to the media folder on any external SD card. 😞

I looked at termux, if it handles external SD cards differently, but it also saves to the apps' data folder on external card.

from rcloneexplorer.

FoxP avatar FoxP commented on June 10, 2024

Ok, thanks for your answer. I have opened an issue: rclone/rclone#2468

from rcloneexplorer.

patrykcoding avatar patrykcoding commented on June 10, 2024

I do not believe this issue is something that can be fixed in rclone either.

Here's a link that goes in detail what's required in order to have full write access to external SD card.

Basically it requires to launch an intent asking user for write access, checking the result, and then using the supplied Uri (Android doesn't return paths in a format that rclone uses) to write to external SD card using Storage Access Framework.

This means that rclone would need to use Android APIs, which in turn would require it to be written in Java (or Kotlin) and compiled for Android. Therefore I don't think it's something that can be easily addressed 😞

from rcloneexplorer.

FoxP avatar FoxP commented on June 10, 2024

So basically, if rcloneExplorer (written in Java) has external SD access, it means that rclone (written in Go) won't inherit? 😞 Ok, i understand now.

from rcloneexplorer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.