From 39e06b62ba83ed357eb65c5e821ab0446c6e1796 Mon Sep 17 00:00:00 2001 From: toastcfh Date: Sat, 26 Feb 2011 21:29:30 -0500 Subject: [PATCH] speedy: add device speedy to cyanogen vendor Change-Id: I120ac98c1c7e389ec8b83144459190db856ad5f2 --- .../base/core/res/res/values/config.xml | 25 +++++++++ .../apps/CMParts/res/values/config.xml | 8 +++ .../apps/Camera/res/values/config.xml | 25 +++++++++ products/AndroidProducts.mk | 4 +- products/cyanogen_speedy.mk | 51 +++++++++++++++++++ vendorsetup.sh | 1 + 6 files changed, 113 insertions(+), 1 deletion(-) create mode 100644 overlay/speedy/frameworks/base/core/res/res/values/config.xml create mode 100644 overlay/speedy/packages/apps/CMParts/res/values/config.xml create mode 100644 overlay/speedy/packages/apps/Camera/res/values/config.xml create mode 100644 products/cyanogen_speedy.mk diff --git a/overlay/speedy/frameworks/base/core/res/res/values/config.xml b/overlay/speedy/frameworks/base/core/res/res/values/config.xml new file mode 100644 index 00000000..cf9a0603 --- /dev/null +++ b/overlay/speedy/frameworks/base/core/res/res/values/config.xml @@ -0,0 +1,25 @@ + + + + + + com.android.wallpaper/.nexus.NexusWallpaper + + diff --git a/overlay/speedy/packages/apps/CMParts/res/values/config.xml b/overlay/speedy/packages/apps/CMParts/res/values/config.xml new file mode 100644 index 00000000..0171a738 --- /dev/null +++ b/overlay/speedy/packages/apps/CMParts/res/values/config.xml @@ -0,0 +1,8 @@ + + + + false + false + false + true + diff --git a/overlay/speedy/packages/apps/Camera/res/values/config.xml b/overlay/speedy/packages/apps/Camera/res/values/config.xml new file mode 100644 index 00000000..e9e9e19a --- /dev/null +++ b/overlay/speedy/packages/apps/Camera/res/values/config.xml @@ -0,0 +1,25 @@ + + + + + + 2592x1936 + + diff --git a/products/AndroidProducts.mk b/products/AndroidProducts.mk index 0c905d53..ce1b2268 100644 --- a/products/AndroidProducts.mk +++ b/products/AndroidProducts.mk @@ -24,4 +24,6 @@ PRODUCT_MAKEFILES := \ $(LOCAL_DIR)/cyanogen_supersonic.mk \ $(LOCAL_DIR)/cyanogen_vega.mk \ $(LOCAL_DIR)/cyanogen_vision.mk \ - $(LOCAL_DIR)/cyanogen_z71.mk + $(LOCAL_DIR)/cyanogen_z71.mk \ + $(LOCAL_DIR)/cyanogen_speedy.mk + diff --git a/products/cyanogen_speedy.mk b/products/cyanogen_speedy.mk new file mode 100644 index 00000000..b4159afb --- /dev/null +++ b/products/cyanogen_speedy.mk @@ -0,0 +1,51 @@ +# Inherit AOSP device configuration for speedy. +$(call inherit-product, device/htc/speedy/speedy.mk) + +# Inherit some common cyanogenmod stuff. +$(call inherit-product, vendor/cyanogen/products/common_full.mk) + +# +# Setup device specific product configuration. +# +PRODUCT_NAME := cyanogen_speedy +PRODUCT_BRAND := sprint +PRODUCT_DEVICE := speedy +PRODUCT_MODEL := PG06100 +PRODUCT_MANUFACTURER := HTC +PRODUCT_BUILD_PROP_OVERRIDES += BUILD_ID=FRF91 BUILD_DISPLAY_ID=GRH78C PRODUCT_NAME=htc_speedy BUILD_FINGERPRINT=tmobile/htc_vision/vision/vision:2.2/FRF91/277427:user/release-keys PRIVATE_BUILD_DESC="3.29.651.5 CL252548 release-keys" + +# Build kernel +#PRODUCT_SPECIFIC_DEFINES += TARGET_PREBUILT_KERNEL= +#PRODUCT_SPECIFIC_DEFINES += TARGET_KERNEL_DIR=kernel-msm +#PRODUCT_SPECIFIC_DEFINES += TARGET_KERNEL_CONFIG=cyanogen_speedy_defconfig + +# Extra Supersonic overlay +PRODUCT_PACKAGE_OVERLAYS += vendor/cyanogen/overlay/speedy + +# Add the Torch app +PRODUCT_PACKAGES += Torch + +# Broadcom FM radio +$(call inherit-product, vendor/cyanogen/products/bcm_fm_radio.mk) + +# +# Set ro.modversion +# +ifdef CYANOGEN_NIGHTLY + PRODUCT_PROPERTY_OVERRIDES += \ + ro.modversion=CyanogenMod-7-$(shell date +%m%d%Y)-NIGHTLY-Speedy +else + ifdef CYANOGEN_RELEASE + PRODUCT_PROPERTY_OVERRIDES += \ + ro.modversion=CyanogenMod-7.0.0-RC1-Speedy + else + PRODUCT_PROPERTY_OVERRIDES += \ + ro.modversion=CyanogenMod-7.0.0-RC1-Speedy-KANG + endif +endif + +# +# Copy passion specific prebuilt files +# +PRODUCT_COPY_FILES += \ + vendor/cyanogen/prebuilt/hdpi/media/bootanimation.zip:system/media/bootanimation.zip diff --git a/vendorsetup.sh b/vendorsetup.sh index 73e4f9ba..0e4fd2ed 100644 --- a/vendorsetup.sh +++ b/vendorsetup.sh @@ -24,6 +24,7 @@ add_lunch_combo cyanogen_supersonic-eng add_lunch_combo cyanogen_vega-eng add_lunch_combo cyanogen_vision-eng add_lunch_combo cyanogen_z71-eng +add_lunch_combo cyanogen_speedy-eng PATH=$PATH:$PWD/vendor/cyanogen/tools ; export PATH