←back to thread

410 points morsch | 1 comments | | HN request time: 0.209s | source
Show context
thombles ◴[] No.43983191[source]
This is also why the official SyncThing Android app stopped being distributed. There is a fork but it's not available on the Play Store.
replies(2): >>43983226 #>>43983745 #
deng ◴[] No.43983226[source]
The problem with the SyncThing Android app is that it's just a wrapper around SyncThing, which is a Go library, but SAF does not give you simple file descriptors you can use in native code. Instead, you get "content://" URLs, and you need a Java/Kotlin bridge to convert these to file descriptors. That would need to be done in SyncThing itself (EDIT: or some other trickery, because it seems like syncthing-fork made it work somehow).

However, AFAIK, this problem would not apply to the NextCloud app.

replies(2): >>43983610 #>>43984600 #
izacus ◴[] No.43984600[source]
You can get simple file descriptors for SAF, but you do need to ask for them via Java APIs.
replies(1): >>43989765 #
1. apitman ◴[] No.43989765[source]
And it's only one file at a time, right? ie you can't give your native code access to a directory.