I’ve built it for Android and currently looking for changes that need to be done to the wrapper. Meanwhilst, I did upgrade the command line using the non-two-dash commands and set STHOMEDIR=… instead of using the --“–home=” parameter which is no longer supported on the commands the wrapper used before.
Feedback:
- Could the “device-id” please respect the STHOMEDIR variable? I see in the log it is accessing the wrong path on android despite STHOMEDIR being set. This can be reproduced from shell.
emu64xa:/tmp $ export STHOMEDIR=/tmp/4
emu64xa:/tmp $ ./libsyncthingnative.so generate --no-default-folder
2025/04/02 21:28:45 INFO: Generating ECDSA key and certificate for syncthing...
2025/04/02 21:28:45 INFO: Device ID: MMVWVES-PH4ESZL-PERSOMR-G54BYO2-DYMSTFC-XT2LZXQ-O3TU4VR-34MWMAO
2025/04/02 21:28:45 INFO: We will skip creation of a default folder on first start
emu64xa:/tmp $ ./libsyncthingnative.so device-id
2025/04/02 21:28:58 WARNING: Error reading device ID: open /.local/state/syncthing/cert.pem: no such file or directory
- What is the equivalent to “reset-database”?
“serve”, “–reset-database”, “–logflags=0” does not work.
ref: Syncthing-Fork v2.0 beta by Catfriend1 · Pull Request #1333 · Catfriend1/syncthing-android · GitHub