ktsr42 / RsyncServerApp

GNU General Public License v3.0
34 stars 4 forks source link

Requires wifi #4

Closed battlesnake closed 3 years ago

battlesnake commented 3 years ago

On my old phone, I'd start Rsync via adb shell, then use adb forward and rsync between PC/phone over USB.

I can't run binaries from adb shell on my new phone, so I tried this app.

Currently, it appears that it requires a wifi connection.

I actually have an rsync config file already on my phone (configured for 127.0.0.1:6000 or similar) - would it be possible for the app to have an option to allow starting the server on localhost, or otherwise an option to select and pass a file as --config argument to the rsync binary?

Thanks!

I'm cloning the repo now, if it looks easy enough for me (not familiar with android dev) then I'll send you a PR soon.

ktsr42 commented 3 years ago

Hi. So the requirement for the wifi network being present is only here for security purposes. Originally I also planned to create the server socket restricted to that network/interface as well but it turned out that Android has a bug that prevents this from working.

Long story short, we can probably have a checkbox in the gui that waives the requirement that wifi is available. That should get you where you want to go if I understood you correctly.

It may take me a while to make this happen though as I am quite busy at the moment.

BTW, I am running Lineage OS on my phone - I am actually buying new phones only after studying their HW compatibility list. The trick is to stay away from phones that require rooting the existing OS.

battlesnake commented 3 years ago

I used to use LineageOS on my old phone, but I want to wait until I've had this one a year before modding it, in case I need to call on the warranty.

I got my transfer working in the end by modifying my transfer script so that it: copies a static rsync binary to /data/local/tmp (no noexec there), starts it from there with my custom config file, then sets up the ADB port forwarding.