summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2016-09-13 01:43:37 +0200
committerTianjie Xu <xunchang@google.com>2016-09-13 22:56:00 +0200
commit1c1864f321b129c81883ed527b1da8c69661e51f (patch)
treea7dd9ec0e0fe5a81eb6077b42a2db1e71b54c659
parentMerge "save uncrypt status to last_install" (diff)
downloadandroid_bootable_recovery-1c1864f321b129c81883ed527b1da8c69661e51f.tar
android_bootable_recovery-1c1864f321b129c81883ed527b1da8c69661e51f.tar.gz
android_bootable_recovery-1c1864f321b129c81883ed527b1da8c69661e51f.tar.bz2
android_bootable_recovery-1c1864f321b129c81883ed527b1da8c69661e51f.tar.lz
android_bootable_recovery-1c1864f321b129c81883ed527b1da8c69661e51f.tar.xz
android_bootable_recovery-1c1864f321b129c81883ed527b1da8c69661e51f.tar.zst
android_bootable_recovery-1c1864f321b129c81883ed527b1da8c69661e51f.zip
Diffstat (limited to '')
-rw-r--r--install.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/install.cpp b/install.cpp
index fac6151b3..4c697420f 100644
--- a/install.cpp
+++ b/install.cpp
@@ -392,6 +392,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());
}