Snap for 11959661 from 9634ba0f84
to 24Q3-release
Change-Id: If78318836807cbd1b0fa0f59acd55371a8a6628f
This commit is contained in:
commit
73db47fe6f
4 changed files with 9 additions and 19 deletions
|
@ -40,6 +40,7 @@ include device/google/gs-common/betterbug/betterbug.mk
|
|||
ifneq ($(filter oriole raven bluejay, $(TARGET_PRODUCT)),)
|
||||
include device/google/gs-common/bcmbt/dump/dumplog.mk
|
||||
endif
|
||||
include device/google/gs-common/fingerprint/fingerprint.mk
|
||||
|
||||
TARGET_BOARD_PLATFORM := gs101
|
||||
DEVICE_IS_64BIT_ONLY ?= $(if $(filter %_64,$(TARGET_PRODUCT)),true,false)
|
||||
|
|
|
@ -78,7 +78,7 @@
|
|||
</hal>
|
||||
<hal format="aidl" optional="true">
|
||||
<name>com.google.hardware.pixel.display</name>
|
||||
<version>11-12</version>
|
||||
<version>12</version>
|
||||
<interface>
|
||||
<name>IDisplay</name>
|
||||
<instance>default</instance>
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
|
||||
#include <log/log.h>
|
||||
|
||||
#define KVM_DEVICE "/dev/kvm"
|
||||
#define MISC_WRITER "/vendor/bin/misc_writer"
|
||||
|
||||
int main() {
|
||||
|
@ -33,22 +32,7 @@ int main() {
|
|||
pid_t pid;
|
||||
int ret, wstatus;
|
||||
|
||||
/* Check whether KVM device exists. */
|
||||
ret = access(KVM_DEVICE, F_OK);
|
||||
|
||||
/* If KVM device exists, return SUCCESS to continue booting. */
|
||||
if (ret == 0) {
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
if (ret != -ENOENT) {
|
||||
ALOGW("Unexpected error from access(): %d", ret);
|
||||
}
|
||||
|
||||
/*
|
||||
* If KVM device does not exist, run misc_writer and return FAILURE
|
||||
* to force a reboot.
|
||||
*/
|
||||
/* Run misc_writer and return FAILURE to force a reboot. */
|
||||
pid = fork();
|
||||
if (pid == -1) {
|
||||
ALOGE("Could not fork: %d", errno);
|
||||
|
|
|
@ -2,5 +2,10 @@ service pkvm_enabler /vendor/bin/pkvm_enabler
|
|||
reboot_on_failure reboot,pkvm-not-enabled
|
||||
user root
|
||||
|
||||
on early-init
|
||||
# Old bootloaders do not set the protected_vm sysprop when pkvm is disabled
|
||||
on early-init && property:ro.boot.hypervisor.protected_vm.supported=
|
||||
exec_start pkvm_enabler
|
||||
|
||||
# New bootloaders set the protected_vm sysprop to 0 when pkvm is disabled
|
||||
on early-init && property:ro.boot.hypervisor.protected_vm.supported=0
|
||||
exec_start pkvm_enabler
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue