diff options
author | Tianjie Xu <xunchang@google.com> | 2016-09-13 01:43:37 +0200 |
---|---|---|
committer | Tianjie Xu <xunchang@google.com> | 2016-09-13 23:04:55 +0200 |
commit | 41a3fd4e202168fc58f9955f7bcac43121f55fc5 (patch) | |
tree | 119b3446b124eedf28dd44e8906ddaec38c76ec6 | |
parent | save uncrypt status to last_install (diff) | |
download | android_bootable_recovery-41a3fd4e202168fc58f9955f7bcac43121f55fc5.tar android_bootable_recovery-41a3fd4e202168fc58f9955f7bcac43121f55fc5.tar.gz android_bootable_recovery-41a3fd4e202168fc58f9955f7bcac43121f55fc5.tar.bz2 android_bootable_recovery-41a3fd4e202168fc58f9955f7bcac43121f55fc5.tar.lz android_bootable_recovery-41a3fd4e202168fc58f9955f7bcac43121f55fc5.tar.xz android_bootable_recovery-41a3fd4e202168fc58f9955f7bcac43121f55fc5.tar.zst android_bootable_recovery-41a3fd4e202168fc58f9955f7bcac43121f55fc5.zip |
Diffstat (limited to '')
-rw-r--r-- | install.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/install.cpp b/install.cpp index 9227d5895..209300e89 100644 --- a/install.cpp +++ b/install.cpp @@ -548,6 +548,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_time:")) { + PLOG(WARNING) << "corrupted uncrypt_status: " << uncrypt_status; } else { fprintf(install_log, "%s\n", android::base::Trim(uncrypt_status).c_str()); } |