diff options
author | Tianjie Xu <xunchang@google.com> | 2017-08-25 00:28:10 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-08-25 00:28:10 +0200 |
commit | f134f0e5c0d168d77257074f57b67c98c8a02be8 (patch) | |
tree | 2da1b6952d20a01a3cf5d4b4ced1faeda202576a /install.cpp | |
parent | Merge "Allow comparison against multi serial nums for A/B package" am: 3810046a55 am: e8b02d68e5 (diff) | |
parent | Merge "Add missing report of error code under recovery" (diff) | |
download | android_bootable_recovery-f134f0e5c0d168d77257074f57b67c98c8a02be8.tar android_bootable_recovery-f134f0e5c0d168d77257074f57b67c98c8a02be8.tar.gz android_bootable_recovery-f134f0e5c0d168d77257074f57b67c98c8a02be8.tar.bz2 android_bootable_recovery-f134f0e5c0d168d77257074f57b67c98c8a02be8.tar.lz android_bootable_recovery-f134f0e5c0d168d77257074f57b67c98c8a02be8.tar.xz android_bootable_recovery-f134f0e5c0d168d77257074f57b67c98c8a02be8.tar.zst android_bootable_recovery-f134f0e5c0d168d77257074f57b67c98c8a02be8.zip |
Diffstat (limited to 'install.cpp')
-rw-r--r-- | install.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/install.cpp b/install.cpp index 1220c6ab7..586dbbe2c 100644 --- a/install.cpp +++ b/install.cpp @@ -331,6 +331,7 @@ static int try_update_binary(const std::string& package, ZipArchiveHandle zip, b if (ret) { close(pipefd[0]); close(pipefd[1]); + log_buffer->push_back(android::base::StringPrintf("error: %d", kUpdateBinaryCommandFailure)); return ret; } @@ -395,6 +396,7 @@ static int try_update_binary(const std::string& package, ZipArchiveHandle zip, b close(pipefd[0]); close(pipefd[1]); PLOG(ERROR) << "Failed to fork update binary"; + log_buffer->push_back(android::base::StringPrintf("error: %d", kForkUpdateBinaryFailure)); return INSTALL_ERROR; } @@ -583,6 +585,7 @@ static int really_install_package(const std::string& path, bool* wipe_cache, boo MemMapping map; if (!map.MapFile(path)) { LOG(ERROR) << "failed to map file"; + log_buffer->push_back(android::base::StringPrintf("error: %d", kMapFileFailure)); return INSTALL_CORRUPT; } |