Linux subsystem
Provides 100% CPU,RAM,GPU performance same as running Linux natively. OpenGL and Vulkan works. X11 renders directly using KMS/DRM to screen.
But you have access to two OS simultaneously this way with less resource consumption unlike other methods like VMs/containers.
- Have an Linux installation on the same machine.
- Copying
/run/udev
from a booted Linux to the chroot rootfs or Xorg doesn’t recognize keyboard and mouse
Boot into the Linux installation and copy /run/udev
Then after rebooting and chroot into linux from Android, symlink it to /run
Make a simple script to chroot into it, this can be taken for reference.
openvt requires busybox, we can use the binary from KernelSU.
In a root shell:
Now you should enter a tty with the login shell.
Use Alt+F7 / Alt+F1 / Alt+(left/right) arrow keys to switch between Android and Linux.
If you have xinitrc configured:
Ctrl+Alt+F7 / Ctrl+Alt+F1 to switch between Android and Linux.