Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a651e73 authored by Hridya Valsaraju's avatar Hridya Valsaraju Committed by android-build-merger
Browse files

Merge "Set device lock status from kernel command line." am: 5952034c

am: 4008882e

Change-Id: I127b1f232c8ccfb2e0fbfdf4284d41cdbed1a64d
parents e92ba867 4008882e
Loading
Loading
Loading
Loading
+6 −6
Original line number Original line Diff line number Diff line
@@ -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() {