Add support for dualbooting dalvik and art

Change-Id: I39bc909bf9ba2c8e4dc6599c84e5a6c780def43d
diff --git a/target/product/dalvikvm.mk b/target/product/dalvikvm.mk
index b7003b9..beed32b 100644
--- a/target/product/dalvikvm.mk
+++ b/target/product/dalvikvm.mk
@@ -18,10 +18,12 @@
 
 ifeq ($(WITH_ART),false)
     PRODUCT_PACKAGES += \
+        core \
         libdvm \
         dexopt
 else
     PRODUCT_PACKAGES += \
+        core-libart \
         libart \
         dex2oat
     PRODUCT_PROPERTY_OVERRIDES += \
@@ -33,7 +35,6 @@
     bouncycastle \
     cacerts \
     conscrypt \
-    core \
     core-junit \
     dalvikvm \
     dexdeps \
@@ -56,11 +57,17 @@
 
 # host-only dependencies
 ifeq ($(WITH_HOST_DALVIK),true)
+    ifeq ($(WITH_ART),false)
+        PRODUCT_PACKAGES += \
+            core-hostdex
+    else
+        PRODUCT_PACKAGES += \
+            core-libart-hostdex
+    endif
     PRODUCT_PACKAGES += \
         apache-xml-hostdex \
         bouncycastle-hostdex \
         conscrypt-hostdex \
-        core-hostdex \
         dalvik \
         libcrypto-host \
         libexpat-host \