Building the entire AOSP on OpenBSD to flash a phone... that would not be easy, since prebuilt compiler binaries that are used are for Linux (i.e. linked against glibc).
If on the other hand, you would like to compile a simple program to run on your phone... Then you *can* use the android-ndk, provided you have a cross-compiler. Unlike gcc, clang is designed to be one $ wget http://dl.google.com/android/repository/android-ndk-r10e-linux-x86_64.zip $ unzip android-ndk-r10e-linux-x86_64.zip $ ./android-ndk-r10e/build/tools/make-standalone-toolchain.sh --arch=arm --platform=android-21 --install-dir=/opt/android-ndk-21 --toolchain=arm-linux-androideabi-4.9 For the Nexus 6, this command should get you a binary that you can copy to the phone and run (e.g. adb push a /data/local/tmp) clang -o a a.c -target arm-linux-androideabi -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp --sysroot /opt/android-ndk-21/sysroot -gcc-toolchain /opt/android-ndk-21 -D__ANDROID_API__=21 -DANDROID -flto -fuse-ld=lld -fPIE Hope this helps. -Anthony On Thu, Nov 2, 2017 at 9:26 AM, Philippe Meunier <meun...@ccs.neu.edu> wrote: > Jan Stary wrote: >>What do people use to develop Android apps on OpenBSD? > > As far a I know, no one uses OpenBSD to develop Android apps. The only > Android related software available on OpenBSD is adb (available as a > package). > >>I would very much rather use my favorite IDE of vim+make >>and just write C code and run it through NDK > > The NDK is not available on OpenBSD. > > On a more philosophical level, given that OpenBSD tends to be on the lean > side of life and Android tends to be on the bloatware side, I doubt anyone > will ever bother to port any Android tool chain to OpenBSD. But feel free > to give it a try. > > Philippe > >