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

Commit 08d0ae92 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix the prefix matching for uncrypt status."

parents c5b4b719 ee9b9554
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -377,8 +377,8 @@ install_package(const char* path, bool* wipe_cache, const char* install_file,
        std::string uncrypt_status;
        if (!android::base::ReadFileToString(UNCRYPT_STATUS, &uncrypt_status)) {
            PLOG(WARNING) << "failed to read uncrypt status";
        } else if (!android::base::StartsWith(uncrypt_status, "uncrypt_:")) {
            PLOG(WARNING) << "corrupted uncrypt_status: " << uncrypt_status;
        } else if (!android::base::StartsWith(uncrypt_status, "uncrypt_")) {
            LOG(WARNING) << "corrupted uncrypt_status: " << uncrypt_status;
        } else {
            log_buffer.push_back(android::base::Trim(uncrypt_status));
        }