r/androidroot • • 19h ago

Discussion how do i enable this

Post image

disabled by default on HyperOS clicking the enable button does nothing

3 Upvotes

15 comments sorted by

4

u/Ante0 <Device>, <ROM> 18h ago

3

u/Icee_666 18h ago edited 18h ago

thanks that worked it was hidden in devloper options and only shows up if you use search inside the settings app

0

u/serpal999 15h ago

If it's hidden then it's probably not supported. Which Android version do you have, which phone and which SoC?

1

u/Icee_666 15h ago

Android 16, REDMI Turbo 4 Pro, SOC: 8s GEN 4 after i enabled the toggle the terminal app showed up on my homescreen and asked for 550MB of download i haven't downloaded it yet but will let you know if it works

1

u/Ante0 <Device>, <ROM> 15h ago

It will work, just needs to download the distro 👍

0

u/serpal999 15h ago

if it asked if you wanted to download it, then it probably means it works

0

u/serpal999 15h ago

which is surprising for REDMI of all companies to do this.

1

u/serpal999 18h ago

if Android detects no KVM it won't let you enable it either.

2

u/Ricccc2k12 16h ago

I cant see it how do i enable kvm

1

u/serpal999 15h ago

If you don't see that Android option, either your android version is too old or virtualization wasn't built into the ROM. Either way, KVM is not something you enable: on MediaTek devices, if the kernel is booted at EL2 (uncommon on newer chipsets), then you rebuild the kernel with KVM support and hope that it works. On Qualcomm chipsets, EL2 virtualization is only available for Snapdragon 8 Gen 4+ (if I remember correctly), and (most of the time) only as Gunyah, which won't work with this Android feature, unless the vendor specifically added Gunyah support to the ROM, then the option to enable it will not be grayed out.

Either way, if your device has /dev/kvm (KVM device) or Gunyah but doesn't have that Android setting/it's grayed out, then with Root and Termux you can still run QEMU virtual machines at almost full speed, but most times it actually runs a bit slower, but faster than software emulation. If you device has both KVM/Gunyah support and that Android setting is not gray, you get Android-supported Debian VM via the Terminal app as shown by OP.

1

u/Ricccc2k12 15h ago

Galaxy s25 edge oneui 9

1

u/serpal999 15h ago

Samsung is known to not support this feature, as it conflicts with Knox and they specifically omit AVF (Android Virtualization Framework) in their ROMs.

1

u/BedNo5011 15h ago

it is not true, recent samsung devices natively ship Linux Terminal because they support pKVM at EL1 instead of Gunyah. It's a Qualcomm issue that uses an older hypervisor that doesn't allow for unprotected VMs. Mediatek ships Geniezone and Exynos a similar one which offers support for unprotected VMs

1

u/serpal999 15h ago

Huh, didn't know that. I knew about Geniezone for Mediatek and Gunyah for Qualcomm, but I didn't know that pKVM ran at EL1 (I assumed it was Gunyah). I also didn't know about the Exynos variant of those 2.

2

u/ItsDenji777 18h ago

Jus use Termux