diff options
author | Scott Lobdell <slobdell@google.com> | 2021-04-07 05:35:55 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-04-07 05:35:55 +0000 |
commit | ec6cfacad7283c60a33cfefacf5031247a2f81dc (patch) | |
tree | 5b473e86fc8ab0afc2241b6ac25875b25fa354bd /init/init.cpp | |
parent | 79aff2b0a0653fcafaf9099ad60075f2903e8de1 (diff) | |
parent | 268fff7088f0ab311c2de902178054ce40a42243 (diff) |
Merge "Merge SP1A.210329.001" into s-keystone-qcom-dev
Diffstat (limited to 'init/init.cpp')
-rw-r--r-- | init/init.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/init/init.cpp b/init/init.cpp index 4bd50e63a..07def4c49 100644 --- a/init/init.cpp +++ b/init/init.cpp @@ -533,11 +533,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) { |