integrate Anbox into Alpine
Hi, I've worked to make Anbox work on Alpine these days, and since it is now working, it'd like to get it merged.
Anbox is a solution using LXC to run Android apps natively on regular Linux. It uses the system's kernel and runs an Android image inside a container.
Its inclusion creates the following changes:
Kernel Config change
here's the diff for
linux-lts.x86_64. It should be similar for all kernels and architectures.
@@ -6946,6 +6946,9 @@ CONFIG_SPEAKUP_SYNTH_TXPRT=m # # Android # +CONFIG_ASHMEM=y +# CONFIG_ANDROID_VSOC is not set +# CONFIG_ION is not set # end of Android # CONFIG_LTE_GDM724X is not set @@ -7709,7 +7712,11 @@ CONFIG_THUNDERBOLT=m # # Android # -# CONFIG_ANDROID is not set +CONFIG_ANDROID=y +CONFIG_ANDROID_BINDER_IPC=y +CONFIG_ANDROID_BINDERFS=y +CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder" +CONFIG_ANDROID_BINDER_IPC_SELFTEST=y # end of Android
Packaging properties-cpp and cmake-extras
Providing an Android image (?)
Anbox needs an image to function. There is a prebuilt one, but I saw on IRC that Alpine doesn't like prebuilt binairies. While I'm trying to build it from source, it may be quite long. In the meantime, it is possible to merge Anbox without an image, explaining in the post-install that one need to provide an image to /var/lib/anbox/android.img, either one they'll have built or the premade one.
What do you think about these points?