mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-22 12:21:15 +00:00
Wrapper of syncthing for Android.
b25af3dca8
Fix typos |
||
---|---|---|
graphics | ||
src/main | ||
.gitignore | ||
build-native.sh | ||
build.gradle | ||
CONTRIBUTING.md | ||
LICENSE | ||
README.md |
syncthing-android
A wrapper of syncthing for Android.
Building
To get syncthing app for android running on you device/emulator the native syncthing binary has to be available. There are multiple ways to get the native syncthing binary:
- open a syncthing apk (the one taken from the play store) running on your device as a zip, extract the
lib/
folder into your project directory and rename it tolibs/
. - Depending on your target architecture, download
syncthing-linux-386
,syncthing-linux-armv5
,syncthing-linux-armv7
orsyncthing-linux-mips
from syncthing releases, and extract the binary tolibs/x86/libsyncthing.so
,libs/armeabi-v7a/libsyncthing.so
,libs/armeabi/libsyncthing.so
orlibs/mips/libsyncthing.so
respectively. - Set up a syncthing compile and run
gradle buildNative
in your syncthing-android directory.
Then, run gradle assembleDebug
.
Development Notes
The syncthing backend used for this android application provides a web interface by default. It can be accessed via the Settings menu -> 'Web GUI'. It is quite helpful to access this web interface from your development machine. Read android documentation on how to do so or execute the following steps (assuming you have only one emulator/avd started)
telnet localhost 5554
redir add tcp:18080:8080
- Start synchting app on your emulator and access the web interface from you favorite browser of your development machine via http://127.0.0.1:18080
License
All code is licensed under the MIT License.