Move hardware and boot_control implementation to libupdate_engine.

The implementations of the BootControlInterface and HardwareInterface
are specific to the platform and use case. The delta_generator uses the
DeltaPerformer in the libpayload_consumer to apply a payload to a set
of partitions defined as local files, for example.

This patch move the platform implementations, not available when
building for the host back to the libupdate_engine.

Bug: 24619596
TEST=mma

Change-Id: I16ab06c2e53dfd046e693bdb7310ec26a2d69054
diff --git a/Android.mk b/Android.mk
index db195d8..265ed23 100644
--- a/Android.mk
+++ b/Android.mk
@@ -125,14 +125,11 @@
     update_metadata-protos \
     libxz \
     libbz \
-    libfs_mgr \
     $(ue_update_metadata_protos_exported_static_libraries)
 ue_libpayload_consumer_exported_shared_libraries := \
     libcrypto \
     libcurl \
     libssl \
-    libhardware \
-    libcutils \
     $(ue_update_metadata_protos_exported_shared_libraries)
 
 include $(CLEAR_VARS)
@@ -157,12 +154,10 @@
     $(ue_update_metadata_protos_exported_shared_libraries)
 LOCAL_SRC_FILES := \
     common/action_processor.cc \
-    common/boot_control_android.cc \
     common/boot_control_stub.cc \
     common/certificate_checker.cc \
     common/clock.cc \
     common/constants.cc \
-    common/hardware_android.cc \
     common/hash_calculator.cc \
     common/http_common.cc \
     common/http_fetcher.cc \
@@ -246,10 +241,12 @@
     $(ue_libpayload_consumer_exported_shared_libraries) \
     $(ue_update_metadata_protos_exported_shared_libraries)
 LOCAL_SRC_FILES := \
+    boot_control_android.cc \
     chrome_browser_proxy_resolver.cc \
     connection_manager.cc \
     daemon.cc \
     dbus_service.cc \
+    hardware_android.cc \
     image_properties_android.cc \
     libcros_proxy.cc \
     metrics.cc \