summaryrefslogtreecommitdiffstats
path: root/updater/install.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2019-05-22 23:48:35 +0200
committerTianjie Xu <xunchang@google.com>2019-05-22 23:58:28 +0200
commit27556d089f8496c2acb72182ce7add94938eb749 (patch)
tree7fca14e5fe7b8178a996501df0515ddabcfd9ed2 /updater/install.cpp
parentMerge "recovery: report compliant reboot reason" (diff)
downloadandroid_bootable_recovery-27556d089f8496c2acb72182ce7add94938eb749.tar
android_bootable_recovery-27556d089f8496c2acb72182ce7add94938eb749.tar.gz
android_bootable_recovery-27556d089f8496c2acb72182ce7add94938eb749.tar.bz2
android_bootable_recovery-27556d089f8496c2acb72182ce7add94938eb749.tar.lz
android_bootable_recovery-27556d089f8496c2acb72182ce7add94938eb749.tar.xz
android_bootable_recovery-27556d089f8496c2acb72182ce7add94938eb749.tar.zst
android_bootable_recovery-27556d089f8496c2acb72182ce7add94938eb749.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);