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

Commit b16ef309 authored by Oleg Matcovschi's avatar Oleg Matcovschi Committed by Gerrit Code Review
Browse files

Merge "fastboot: derive device locked state from Android property"

parents 4e94784b d0a16c20
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -204,12 +204,7 @@ std::vector<std::string> ListPartitions(FastbootDevice* device) {
}

bool GetDeviceLockStatus() {
    std::string cmdline;
    // Return lock status true if unable to read kernel command line.
    if (!android::base::ReadFileToString("/proc/cmdline", &cmdline)) {
        return true;
    }
    return cmdline.find("androidboot.verifiedbootstate=orange") == std::string::npos;
    return android::base::GetProperty("ro.boot.verifiedbootstate", "") != "orange";
}

bool UpdateAllPartitionMetadata(FastbootDevice* device, const std::string& super_name,