diff options
author | Tianjie Xu <xunchang@google.com> | 2016-09-14 00:55:45 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-09-14 00:55:45 +0200 |
commit | d467179eb66277f18824589e4ed8c1d1d6f4b199 (patch) | |
tree | fc1ee2d19010c157ef7136d45f1b6f3e6eb6d22c | |
parent | Merge "Have gr_init_font alloc memory for the font" into cw-f-dev am: 7a97733f7a (diff) | |
parent | Merge "Check corruption when reading uncrypt_status file" am: 3cf815a6a9 am: 40bae5e1c6 (diff) | |
download | android_bootable_recovery-d467179eb66277f18824589e4ed8c1d1d6f4b199.tar android_bootable_recovery-d467179eb66277f18824589e4ed8c1d1d6f4b199.tar.gz android_bootable_recovery-d467179eb66277f18824589e4ed8c1d1d6f4b199.tar.bz2 android_bootable_recovery-d467179eb66277f18824589e4ed8c1d1d6f4b199.tar.lz android_bootable_recovery-d467179eb66277f18824589e4ed8c1d1d6f4b199.tar.xz android_bootable_recovery-d467179eb66277f18824589e4ed8c1d1d6f4b199.tar.zst android_bootable_recovery-d467179eb66277f18824589e4ed8c1d1d6f4b199.zip |
-rw-r--r-- | install.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/install.cpp b/install.cpp index d8073c51c..71ad71f68 100644 --- a/install.cpp +++ b/install.cpp @@ -543,6 +543,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()); } |