←back to thread

410 points morsch | 1 comments | | HN request time: 0s | 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 #
1. charcircuit ◴[] No.43986872[source]
You need it in the same sense you need to load the system's vulkan driver. System libraries don't have more permissions, but it's going to be extra work to reimplement and your code may break on different versions or devices.