Hi everyone! First time making a topic, I hope I picked the right category. I got a feeling this is a really stupid question… but I’ve been thinking and searching for this for too long. And now that I have the chance to ask people skilled in this area, who probably have had similar ideas (and ideals), I’m going to accept looking stupid see where this leads.
Debian’s Android Tools packaging team has put great effort into turning the android SDK into independent official packages (not a small accomplishment!), making it possible to build apps written in Java. But the NDK is still missing. I know about Android Rebuilds, but I would still like to limit the software I use to official distro packages.
But… just like the SDK, many parts of the NDK are existing software. So would it be possible to use the normal tools used for cross compiling (the same gcc used to target gnu/linux on the same architecture as the android system) to compile C code to include in an app (written in Java and built using the android sdk parts from debian)? I’ve heard people did experiment with this to build executables (run through a terminal in android) before there was an NDK, and I did see Guix running on Android recently. But I haven’t found much information on doing this, and no info on doing this to compile native code to include in an actual app.
So my questions are: Would this be possible? Has anyone done this? If so, is there some reference/demo/guide? Would there be any significant disadvantage from doing this? And would such an app be accepted in the F-Droid repo (which is buillt using the official NDK and SDK)?
Thanks for any response. And keep up the good work on F-Droid!