AndreyPavlenko / android-build

5 stars 1 forks source link

daemon binary #1

Open stefaang opened 6 years ago

stefaang commented 6 years ago

I'd like to build the transmission-daemon binary but it's not there when the build finishes. Could you point me in the right direction? I want to run the original daemon as a service.

AndreyPavlenko commented 6 years ago

These scripts build the libtransmission static library which is used by this application - https://github.com/AndreyPavlenko/transmissionbtc. To build the daemon some additional work is required.

The starting point is to replace here https://github.com/AndreyPavlenko/android-build/blob/master/packages/transmission/build.sh this line:

-make_concurrent transmission +make_concurrent transmission-daemon

Do you really need the daemon? If you need the service, you may use the transmissionbtc app. This service provides the same features as the original daemon, but additionally it has integration wit the Android Storage Access Framework. This integration is required to access external storage on Android 4.4+.

stefaang commented 6 years ago

I've been using this to run transmission-daemon on a WD My Cloud Home, a headless android M based NAS... As it can only be managed remotely, the daemon/rpc is exactly what I need. It works more or less, but I'm experiencing issues with large files (4GB+), I'd like to try your build environment as it's much cleaner and up-to-date.

As the firmware has its own layer to manage storage access, I doubt I'll need it.

AndreyPavlenko commented 6 years ago

Can you install the app from Google Play - https://play.google.com/store/apps/details?id=com.ap.transmission.btc ?

stefaang commented 6 years ago

I have the app on my phone and it works fine.. but for this headless device, it just needs a service to install/start/stop the daemon. No activities as it doesn't have a screen. I've already got the service that creates the correct config and so on... but my transmission-daemon binary is still a bit flaky. Also, there's no Google Play store on this box...

AndreyPavlenko commented 6 years ago

I've not tried, but I think the service can be started remotely using the shell command am startservice. To build the daemon, some additional work to be required, I don't have a build script for it, sorry.

stefaang commented 6 years ago

I see... the service has rpc support so I could start there. I'll explore both routes, the service and the daemon, and report back. Thanks for the help.