pixincreate / PixeneOS

GrapheneOS with additionals
https://pixincreate.github.io/PixeneOS/
MIT License
7 stars 2 forks source link

[Question] Any way to enable pkvm? #69

Open 0cwa opened 1 month ago

0cwa commented 1 month ago

Just curious if there's a way to enable pkvm to run a linux vm on-device. :)

pixincreate commented 1 month ago

Hi there,

PixeneOS is all about signing GrapheneOS with your own keys while optionally adding root solution like Magisk and other Chenxiaolong's modules.

However, I did go through the Google's docs and learnt that you should be able to enable pKVM on your Android if you're running Android 13 and up with below commands:

adb reboot bootloader
fastboot oem pkvm enable
fastboot reboot

do note that OTA updates can disable this.

Source: https://android.googlesource.com/platform/packages/modules/Virtualization/+/6f6c99dc4c4a052d934f6a7a3f42f3cdf58f674d/docs/getting_started/index.md

0cwa commented 3 weeks ago

I realized I can't test this because I only have a 5a, which doesn't support pkvm. It'd be a neat feature, (especially paired with upcoming wearable displays)
I just brought it up because it seems to require a unlocked bootloader. I'd be curious if others get this working in the future... :)