summaryrefslogtreecommitdiffstats
path: root/install.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2017-08-23 09:18:07 +0200
committerTianjie Xu <xunchang@google.com>2017-08-23 09:18:07 +0200
commit3fec8c64190b6600c01f383501f55f3b9350c213 (patch)
treedd03bce2f73247f85ca7793665e6f3d3890c4036 /install.cpp
parentMerge "Move Image/ImageChunk/PatchChunk declaration into header files" (diff)
downloadandroid_bootable_recovery-3fec8c64190b6600c01f383501f55f3b9350c213.tar
android_bootable_recovery-3fec8c64190b6600c01f383501f55f3b9350c213.tar.gz
android_bootable_recovery-3fec8c64190b6600c01f383501f55f3b9350c213.tar.bz2
android_bootable_recovery-3fec8c64190b6600c01f383501f55f3b9350c213.tar.lz
android_bootable_recovery-3fec8c64190b6600c01f383501f55f3b9350c213.tar.xz
android_bootable_recovery-3fec8c64190b6600c01f383501f55f3b9350c213.tar.zst
android_bootable_recovery-3fec8c64190b6600c01f383501f55f3b9350c213.zip
Diffstat (limited to '')
-rw-r--r--install.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/install.cpp b/install.cpp
index 7fbf5c01f..80ef71541 100644
--- a/install.cpp
+++ b/install.cpp
@@ -321,6 +321,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;
}
@@ -385,6 +386,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;
}
@@ -573,6 +575,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;
}