Some clean ups to the updater
Remove some unnecessary includes or forward declarations. And include
the correct headers to build host executables.
Bug: 131911365
Test: unit tests pass
Change-Id: I62e75f60678159fe24619a4bd386b1416f1a5b5d
diff --git a/updater/install.cpp b/updater/install.cpp
index 6b15eaa..c82351e 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);