diff options
Diffstat (limited to 'host/lib/crossystem.c')
-rw-r--r-- | host/lib/crossystem.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/crossystem.c b/host/lib/crossystem.c index e2066cee..fd5cd9eb 100644 --- a/host/lib/crossystem.c +++ b/host/lib/crossystem.c @@ -540,6 +540,8 @@ int VbGetSystemPropertyInt(const char* name) { value = VbGetNvStorage(VBNV_FASTBOOT_UNLOCK_IN_FW); } else if (!strcasecmp(name, "boot_on_ac_detect")) { value = VbGetNvStorage(VBNV_BOOT_ON_AC_DETECT); + } else if (!strcasecmp(name, "try_ro_sync")) { + value = VbGetNvStorage(VBNV_TRY_RO_SYNC); } return value; @@ -674,6 +676,8 @@ int VbSetSystemPropertyInt(const char* name, int value) { return VbSetNvStorage_WithBackup(VBNV_FASTBOOT_UNLOCK_IN_FW, value); } else if (!strcasecmp(name, "boot_on_ac_detect")) { return VbSetNvStorage_WithBackup(VBNV_BOOT_ON_AC_DETECT, value); + } else if (!strcasecmp(name, "try_ro_sync")) { + return VbSetNvStorage_WithBackup(VBNV_TRY_RO_SYNC, value); } return -1; |