summaryrefslogtreecommitdiffstats
path: root/updater/install.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2019-05-24 06:45:43 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-05-24 06:45:43 +0200
commit52e61f699514dde119e8d4b1b4d2a3d7a9f7869c (patch)
treeb5d3c52ae588e83c2b26a762f01a796da2b5c73f /updater/install.cpp
parentMerge "Move off the Next ZipString overload." (diff)
parentSome clean ups to the updater (diff)
downloadandroid_bootable_recovery-52e61f699514dde119e8d4b1b4d2a3d7a9f7869c.tar
android_bootable_recovery-52e61f699514dde119e8d4b1b4d2a3d7a9f7869c.tar.gz
android_bootable_recovery-52e61f699514dde119e8d4b1b4d2a3d7a9f7869c.tar.bz2
android_bootable_recovery-52e61f699514dde119e8d4b1b4d2a3d7a9f7869c.tar.lz
android_bootable_recovery-52e61f699514dde119e8d4b1b4d2a3d7a9f7869c.tar.xz
android_bootable_recovery-52e61f699514dde119e8d4b1b4d2a3d7a9f7869c.tar.zst
android_bootable_recovery-52e61f699514dde119e8d4b1b4d2a3d7a9f7869c.zip
Diffstat (limited to 'updater/install.cpp')
-rw-r--r--updater/install.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/updater/install.cpp b/updater/install.cpp
index 6b15eaa3a..c82351ec4 100644
--- a/updater/install.cpp
+++ b/updater/install.cpp
@@ -53,7 +53,6 @@
#include <openssl/sha.h>
#include <selinux/label.h>
#include <selinux/selinux.h>
-#include <tune2fs.h>
#include <ziparchive/zip_archive.h>
#include "edify/expr.h"
@@ -65,6 +64,10 @@
#include "otautil/print_sha1.h"
#include "otautil/sysutil.h"
+#ifndef __ANDROID__
+#include <cutils/memory.h> // for strlcpy
+#endif
+
static bool UpdateBlockDeviceNameForPartition(UpdaterInterface* updater, Partition* partition) {
CHECK(updater);
std::string name = updater->FindBlockDeviceName(partition->name);