diff --git a/conf/init.debug.rc b/conf/init.debug.rc index 77fd49bd..0fed4ffe 100644 --- a/conf/init.debug.rc +++ b/conf/init.debug.rc @@ -40,3 +40,16 @@ on property:ro.revision=PROTO1.1 setprop debug.hypervisor.metrics_tag "hwrev_a0" on property:ro.revision=EVT1.0 setprop debug.hypervisor.metrics_tag "hwrev_a0" + +# A0 chips require pKVM for a hardware issue workaround. Set pKVM to 'enabled' +# in /misc partition on first boot to signal to tests that this device should +# not be booted with pKVM disabled. +service vendor.force_pkvm /vendor/bin/misc_writer --set-enable-pkvm + disabled + oneshot +on property:persist.sys.device_provisioned=1 && property:ro.revision=PROTO1.0 + start vendor.force_pkvm +on property:persist.sys.device_provisioned=1 && property:ro.revision=PROTO1.1 + start vendor.force_pkvm +on property:persist.sys.device_provisioned=1 && property:ro.revision=EVT1.0 + start vendor.force_pkvm