This could be useful for running WhatsApp inside a vm instead of your phone for those rare instances where it is needed.
What do you mean? Where is it needed?
Android in Docker without QEMU/emulator
31–40 of 72 posts
Re: Android in Docker without QEMU/emulator
#32Will it work on WSL? It can be a good way to run Android on Windows.
Re: Android in Docker without QEMU/emulator
#33This could be useful for running WhatsApp inside a vm instead of your phone for those rare instances where it is needed.
Re: Android in Docker without QEMU/emulator
#34required params (already added in docker image) qemu=1 How is that without qemu?
Re: Android in Docker without QEMU/emulator
#35Came across this very useful project. It provides Docker images with Android running directly in Docker, without qemu or an emulator. I've never seen this before, all other solutions that I'm aware of either run the Android emulator in Docker or use qemu directly (like Anbox). Advantage of this is that it's very lightweight and does not require VT-X or AMD-V, ideal for running in cloud environments that typically do…
What the link refers to is an kind of Android emulator, but not the virtual machine kind of emulator.
If you are tempted to write a rebuttal in the "reply" box, answer this question first: Why are programs like xterm and urxvt called "Terminal Emulator"? What do they emulate?
Re: Android in Docker without QEMU/emulator
#36Re: Android in Docker without QEMU/emulator
#37This could be useful for running WhatsApp inside a vm instead of your phone for those rare instances where it is needed.
Frankly I just install Island, and then run Whatsapp (and all not-always-needed apps) inside it. Plus bonus: you can freeze the apps you don't need and keep the island running.
Re: Android in Docker without QEMU/emulator
#38required params (already added in docker image) qemu=1 How is that without qemu?
For example, the GPU stack has to be somehow emulated using a custom OpenGL driver (in this case `mesa3d`). There's software emulation (swiftshader) and host GPU mode (GLES).
For performance reasons when using the host GPU, the GLES commands from the guest have to be serialized and sent over a kernel pipe to the QEMU and to the host OS. The commands are deserialized on the host and executed on the physical host GPU through the Shader Translator library (taken from the Google ANGLE project). The Google's QEMU fork (aka Android Emulator) usually loads this library and then takes care of proper rendering, such that users can see the rendering output of the emulated OS properly inside the emulator window on the host machine. You can do the same for the docker, otherwise you'd have to implement some other trick to share the GPU. `virtio-gpu` is a Linux kernel facility that is meant to replace QEMU pipe in the future.
The high-level details of this OpenGL emulation mechanism are described here: https://android.googlesource.com/platform/external/qemu/+/ma...
You can find the implementation of the QEMU OpenGL pipe mechanism here: https://cs.android.com/android/platform/superproject/+/maste...
Re: Android in Docker without QEMU/emulator
#39required params (already added in docker image) qemu=1 How is that without qemu?
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.
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...
Re: Android in Docker without QEMU/emulator
#40Came across this very useful project. It provides Docker images with Android running directly in Docker, without qemu or an emulator. I've never seen this before, all other solutions that I'm aware of either run the Android emulator in Docker or use qemu directly (like Anbox). Advantage of this is that it's very lightweight and does not require VT-X or AMD-V, ideal for running in cloud environments that typically do…
Anbox doesn't use QEMU. It uses the same underlying kernel tech as Docker, LXC and other isolation tech. This is why you need the ashmem and "binder"(?) kernel modules to run Anbox. I'm currently "trying" to get Anbox working on NixOS (It's currently broken on 5.x kernels but should be fixed by https://github.com/NixOS/nixpkgs/pull/102341 ) so that's why I know that Anbox is the "same" as this.