Merge "init: check for verifiedbootstate in properties" am: fb1cffb46b
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1625199 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I721eac999539b103b8042f60adaae98982d276b7
This commit is contained in:
commit
daa9eebcf4
1 changed files with 3 additions and 5 deletions
|
|
@ -518,11 +518,9 @@ static void export_oem_lock_status() {
|
|||
if (!android::base::GetBoolProperty("ro.oem_unlock_supported", false)) {
|
||||
return;
|
||||
}
|
||||
ImportKernelCmdline([](const std::string& key, const std::string& value) {
|
||||
if (key == "androidboot.verifiedbootstate") {
|
||||
SetProperty("ro.boot.flash.locked", value == "orange" ? "0" : "1");
|
||||
}
|
||||
});
|
||||
SetProperty(
|
||||
"ro.boot.flash.locked",
|
||||
android::base::GetProperty("ro.boot.verifiedbootstate", "") == "orange" ? "0" : "1");
|
||||
}
|
||||
|
||||
static Result<void> property_enable_triggers_action(const BuiltinArguments& args) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue