Use flattened Time Zone Data APEX contents in ART chroot-based device testing.

Copy the contents of the flattened Time Zone Data Module
directory (`/system/apex/com.android.tzdata`) to
`/apex/com.android.tzdata` within the chroot directory on the device.

Test: ART chroot-based on-device testing using the master-art branch
Test: ART chroot-based on-device testing using the master branch (with
      `TARGET_FLATTEN_APEX` set to `true` before building).
Bug: 132169989
Bug: 121117762

Change-Id: I9d99a465609f0c6d2065268f2a09a82e45a3fa32
diff --git a/tools/buildbot-sync.sh b/tools/buildbot-sync.sh
index 5b78593..65be158 100755
--- a/tools/buildbot-sync.sh
+++ b/tools/buildbot-sync.sh
@@ -156,6 +156,15 @@
 adb shell cp -a "$ART_TEST_CHROOT/system/apex/com.android.runtime.debug" \
   "$ART_TEST_CHROOT/apex/com.android.runtime"
 
+echo -e "${green}Activating Time Zone Data APEX...${nc}"
+# Manually "activate" the flattened Time Zone Data APEX by syncing it to the
+# /apex directory in the chroot.
+#
+# TODO: Likewise, handle the case of build targets using non-flatted APEX
+# packages.
+adb shell rm -rf "$ART_TEST_CHROOT/apex/com.android.tzdata"
+adb shell cp -a "$ART_TEST_CHROOT/system/apex/com.android.tzdata" "$ART_TEST_CHROOT/apex/"
+
 # Adjust the linker configuration file (if needed).
 #
 # Check the linker configurations files on the "host system" and the "guest