logoalt Hacker News

deng • 05/14/2025 • 2 replies • view on HN

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

izacus • 05/14/2025

You can get simple file descriptors for SAF, but you do need to ask for them via Java APIs.

➕ show 1 reply
treyd • 05/14/2025

> 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?

➕ show 2 replies