Add a host simulation of the tzdata module
Sets up additional files so that host environments
can now have a simulation of the time zone data
mainline module in addition to the simulation of the
runtime mainline module they already have.
Bug: 132169989
Test: Treehugger only
Change-Id: I785196592d943b561adbea792b92e8440ef01fe2
diff --git a/output_data/android/Android.mk b/output_data/android/Android.mk
index 0da3b73..d07b8db 100644
--- a/output_data/android/Android.mk
+++ b/output_data/android/Android.mk
@@ -17,8 +17,7 @@
ifeq ($(WITH_HOST_DALVIK),true)
-# A host version of the tzlookup.xml module for use by
-# hostdex rules.
+# Host simulations of APEX modules for use by hostdex rules.
# Simulate the runtime module.
include $(CLEAR_VARS)
@@ -31,4 +30,15 @@
LOCAL_MODULE_PATH := $(HOST_OUT)/com.android.runtime/etc/tz
include $(BUILD_PREBUILT)
+# Simulate the time zone data module.
+include $(CLEAR_VARS)
+LOCAL_MODULE := tzlookup.xml_host_tzdata_apex
+LOCAL_IS_HOST_MODULE := true
+LOCAL_SRC_FILES := tzlookup.xml
+LOCAL_MODULE_CLASS := ETC
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_STEM := $(LOCAL_SRC_FILES)
+LOCAL_MODULE_PATH := $(HOST_OUT)/com.android.tzdata/etc/tz
+include $(BUILD_PREBUILT)
+
endif