I am working on an app which will need to include a native OpenSSH binary.
In order to build OpenSSH from source, I also need to provide OpenSSL (or LibreSSL) and zlib. However, building them for Android is not straightforward, to say the least. On the other hand, F-Droid doesn’t like binary blobs (for a good reason) – so shipping a prebuilt binary (if I can find one at all) isn’t particularly nice either.
- The Android NDK includes a prebuilt version of zlib – would it be OK to include that in an app that i to be made available via F-Droid?
- A prebuilt OpenSSL is available as a native dependency in Android Studio.
- Would it be OK for F-Droid to use that?
- If yes, I would probably have to use it in a different way than Google intended: download the dependency, then launch a native build for OpenSSH and point it to the dependency, and only then launch Gradle to build the final app – is that doable? How?
- Does anyone know of an app that already does that in a way that is compatible with F-Droid’s guidelines, and in a way which can easily be copied in another app (preferably without too many bells and whistles – just the bare minimum to get OpenSSH and its dependencies to build for Android) – or a step-by-step instruction on how to accomplish this?