←back to thread

410 points morsch | 1 comments | | HN request time: 0.215s | 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 #
treyd ◴[] No.43983610[source]
> and you need a Java/Kotlin bridge to convert these to file descriptors.

Do you need it in these languages or could you use anything that can make binder calls?

replies(2): >>43983719 #>>43986872 #
deng ◴[] No.43983719[source]
To my knowledge you cannot access SAF through binder, for sure not officially.
replies(1): >>44003985 #
1. treyd ◴[] No.44003985[source]
How are the calls made?