Create LXC container inside Android 14

Hi,I am working on a project where I need to create an LXC container inside Android 14 to run a Yocto-based Linux system. Are there any relevant guides or documentation available?

now ind documentation or projects related to Android 7.1.2

lxc-for-Android-7.1.2/selinux-pixel_7.1.2_r17 at master · clondroid/lxc-for-Android-7.1.2

Now I have an idea: build the LXC container with Meson outside of AOSP, then use an Android.bp file to copy the generated binaries into the AOSP system image, essentially treating it as an out‑of‑tree component. Is this approach feasible?”

Possibly. It will likely get a bit tricky with all the external libraries/dependencies though.

Hi @devon ,

Perhaps you can try my work on this project ( GitHub - Container-On-Android/lxc: LXC - Linux Containers ), which supports a minimum of API 24 (Android 7) and the Release target is API 30 (Android 11). It supports most features such as memfd_dexec, landlock, etc., and Android specific option -Dandroid-log, arm64 only. If you need to integrate into AOSP, you will need to write your own Android.bp.