News for hackers. Stuff that matters.
Re:Android in Docker without QEMU/emulator by tgtweak on Tuesday January 04, 2022 @09:25AM (#29795049)
Yeah not reading anywhere in the docs that it works without qemu. Also the need for kennel modules to be available on the host and passed through makes it less portable than most containers.
Re:Android in Docker without QEMU/emulator by testtesttestte on Tuesday January 04, 2022 @10:12AM (#29795581)
Those kernel modules (`ashmem` and `hwbinder`) are standard when building the Linux kernel for Android and they are already part of the upstream Linux kernel tree [1][2]. Because this solution uses containers (which share the same kernel with the host OS), these additional modules are needed.

From the ReDroid kernel modules readme:

>Custom Kernel

>If use custom kernel (5.0+), you can enable binderfs and ashmem configs; So the kernel modules in this repo are not needed any more.

https://github.com/remote-android/redroid-modules#custom-ker...

More info here on Android-specific kernel modules here:

https://elinux.org/Android_Kernel_Features#List_of_kernel_fe...

[1] ashmem

https://github.com/torvalds/linux/blob/master/drivers/stagin...

[2] hwbinder

https://github.com/torvalds/linux/tree/master/drivers/androi...