The problem with that is it uses special URIs to access files, and golang does not support that (at least that’s what @calmh said a few months ago). Maybe support for this will come when there is full Android support?
A colleague just pointed me at this issue. What’s the problem exactly? I see in the code that the manifest has:
It also needs the READ_* permission likely. That should give it full access to external storage. Storage Access Framework is a completely different system for interacting with user documents across apps, has nothing specifically to do with write access to sdcard.
And you’ve always needed that permission to read/write sdcard without root. Old apps didn’t have it. The change in KK is that you can now read/write to your private data folder on sdcard WITHOUT needing the permission – you only need it if you want to touch outside your private data.
So is the real problem that syncthing doesn’t USE external storage (sounds confusing, but it only has the WRITE permission), doesn’t expose it to the user as a target, or is there simply a bug under the hood somewhere…
I’ve upated my Z3 (not rooted) to Marshmallow, formatted the SD card as ext4 and it’s now seen as internal storage. Syncthing can now read and write from the SD card with no restrictions.
Hi everyone!
I think i solved problem.
Here what you need:
1.Root
2. Xposed framework
3. HandleExternalStorage module for Xposed
Install all this, and THEN enable root in syncthing.
The problem with that is it uses special URIs to access files, and golang does not support that
Would it be possible to workaround this by shipping a small part of code (or even a separate app) written in e.g. Java (?) that handles storing of files? (I don’t know anything about programming for Android).
So in short this is an issue because we’re still stuck with FAT? I really wish the world would progress sometimes…
Anyways, I was able to create a folder under /storage/sdcard1/Android/data/com.nutomic.syncthingandroid/files that Syncthing accepts and syncs with. As long as that works I’m fine with it.