3 ms·
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.
by thombles 1y ago
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.
- deng 1y agoThe 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.
- treyd 1y ago> 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?
- deng 1y agoTo my knowledge you cannot access SAF through binder, for sure not officially.
- treyd 1y agoHow are the calls made?
- charcircuit 1y agoYou 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.
- izacus 1y agoYou can get simple file descriptors for SAF, but you do need to ask for them via Java APIs.
- apitman 1y agoAnd it's only one file at a time, right? ie you can't give your native code access to a directory.
- fsh 1y agoThe fork is in the play store and works fine for me on Android 15: https://play.google.com/store/apps/details?id=com.github.catfriend1.syncthingandroid https://play.google.com/store/apps/details?id=com.github.cat... I was a bit surprised that the official client suddenly disappeared though.
- deng 1y agoFrom a very cursory look it seems like syncthing-fork uses ContentResolver and other stuff from SAF, so it seems they made it work. The official maintainer of syncthing-fork indeed stopped publishing to Google Play, but it seems some other guy is doing that now for him.
- JeremyNT 1y ago> I was a bit surprised that the official client suddenly disappeared though. Here is when syncthing dropped the official Android client [0] so you can read through their rationale and the HN response at the time. I am not an Android developer but I do follow this space; I had the impression at the time that it really was mostly about the dev cycles that would have been required and nobody willing to do the work. I do wonder why they don't just make the fork an official Syncthing project, it seems like the obvious solution would be to officially bless it. I can only guess the maintainer likes their independence. [0] https://news.ycombinator.com/item?id=41895718 https://news.ycombinator.com/item?id=41895718
- kortilla 1y agoWell they also probably don’t want the reputation hit if the fork ends up doing some kind of rug pull.
- BitPirate 1y agoThe play store version isn't updated anymore. You should switch to F-Droid.