Loading init/init.cpp +3 −5 Original line number Diff line number Diff line Loading @@ -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 Loading
init/init.cpp +3 −5 Original line number Diff line number Diff line Loading @@ -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