Fix the prefix matching for uncrypt status.
Also change its logging statement from PLOG to LOG, since android::base::StartsWith() doesn't set errno. Test: Build and reboot into recovery image. Check last_log. Change-Id: I55ac7eec24228db76a13580958b4a4330b06cf57 (cherry picked from commitee9b95544a
) (cherry picked from commite30a5b3a44
)
This commit is contained in:
parent
1b1a4edb4b
commit
1709d22b4e
1 changed files with 1 additions and 1 deletions
|
@ -537,7 +537,7 @@ install_package(const char* path, bool* wipe_cache, const char* install_file,
|
|||
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;
|
||||
LOG(WARNING) << "corrupted uncrypt_status: " << uncrypt_status;
|
||||
} else {
|
||||
log_buffer.push_back(android::base::Trim(uncrypt_status));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue