Add Legend
Change-Id: I32600430a4b47e197d0bc6f85b0a1b11ff58fe6c
diff --git a/overlay/legend/packages/apps/CMParts/res/values/config.xml b/overlay/legend/packages/apps/CMParts/res/values/config.xml
new file mode 100644
index 0000000..218180f
--- /dev/null
+++ b/overlay/legend/packages/apps/CMParts/res/values/config.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <bool name="has_trackball">true</bool>
+ <bool name="has_rgb_notification_led">false</bool>
+ <bool name="has_dual_notification_led">false</bool>
+ <bool name="has_led_flash">true</bool>
+</resources>
diff --git a/products/AndroidProducts.mk b/products/AndroidProducts.mk
index 3b60c7d..4896494 100644
--- a/products/AndroidProducts.mk
+++ b/products/AndroidProducts.mk
@@ -5,6 +5,7 @@
$(LOCAL_DIR)/cyanogen_crespo.mk \
$(LOCAL_DIR)/cyanogen_inc.mk \
$(LOCAL_DIR)/cyanogen_glacier.mk \
+ $(LOCAL_DIR)/cyanogen_legend.mk \
$(LOCAL_DIR)/cyanogen_liberty.mk \
$(LOCAL_DIR)/cyanogen_one.mk \
$(LOCAL_DIR)/cyanogen_passion.mk \
diff --git a/products/cyanogen_legend.mk b/products/cyanogen_legend.mk
index fba68a9..2f71dc1 100644
--- a/products/cyanogen_legend.mk
+++ b/products/cyanogen_legend.mk
@@ -7,21 +7,20 @@
# Include GSM stuff
$(call inherit-product, vendor/cyanogen/products/gsm.mk)
-#
-# Setup device specific product configuration.
-#
+
PRODUCT_NAME := cyanogen_legend
PRODUCT_BRAND := htc
PRODUCT_DEVICE := legend
PRODUCT_MODEL := Legend
PRODUCT_MANUFACTURER := HTC
-PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=htc_legend BUILD_ID=FRG83 BUILD_DISPLAY_ID=GRH78 BUILD_FINGERPRINT=google/passion/passion/mahimahi:2.2.1/FRG83/60505:user/release-keys PRIVATE_BUILD_DESC="passion-user 2.2.1 FRG83 60505 release-keys"
+PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=htc_legend BUILD_ID=GRH55 BUILD_DISPLAY_ID=GRH55 BUILD_FINGERPRINT=google/soju/crespo:2.3/GRH55/79397:user/release-keys PRIVATE_BUILD_DESC="soju-user 2.3 GRH55 79397 release-keys"
PRODUCT_SPECIFIC_DEFINES += TARGET_PRELINKER_MAP=$(TOP)/vendor/cyanogen/prelink-linux-arm-legend.map
-#
-# Set ro.modversion
-#
+PRODUCT_PACKAGES += Torch
+
+PRODUCT_PACKAGE_OVERLAYS += vendor/cyanogen/overlay/legend
+
ifdef CYANOGEN_NIGHTLY
PRODUCT_PROPERTY_OVERRIDES += \
ro.modversion=CyanogenMod-7-$(shell date +%m%d%Y)-NIGHTLY-Legend
@@ -35,8 +34,5 @@
endif
endif
-#
-# Copy legend specific prebuilt files
-#
PRODUCT_COPY_FILES += \
vendor/cyanogen/prebuilt/mdpi/media/bootanimation.zip:system/media/bootanimation.zip
diff --git a/vendorsetup.sh b/vendorsetup.sh
index 4e681d6..be30e8d 100644
--- a/vendorsetup.sh
+++ b/vendorsetup.sh
@@ -10,7 +10,7 @@
#add_lunch_combo cyanogen_hero-eng
#add_lunch_combo cyanogen_heroc-eng
add_lunch_combo cyanogen_inc-eng
-#add_lunch_combo cyanogen_legend-eng
+add_lunch_combo cyanogen_legend-eng
add_lunch_combo cyanogen_liberty-eng
add_lunch_combo cyanogen_one-eng
add_lunch_combo cyanogen_passion-eng