Merge "Set device lock status from kernel command line."
This commit is contained in:
commit
5952034c25
1 changed files with 6 additions and 6 deletions
|
|
@ -346,12 +346,12 @@ static void export_oem_lock_status() {
|
||||||
if (!android::base::GetBoolProperty("ro.oem_unlock_supported", false)) {
|
if (!android::base::GetBoolProperty("ro.oem_unlock_supported", false)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
import_kernel_cmdline(
|
||||||
std::string value = GetProperty("ro.boot.verifiedbootstate", "");
|
false, [](const std::string& key, const std::string& value, bool in_qemu) {
|
||||||
|
if (key == "androidboot.verifiedbootstate") {
|
||||||
if (!value.empty()) {
|
property_set("ro.boot.flash.locked", value == "orange" ? "0" : "1");
|
||||||
property_set("ro.boot.flash.locked", value == "orange" ? "0" : "1");
|
}
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
static void export_kernel_boot_props() {
|
static void export_kernel_boot_props() {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue