blob: 39ac065c58019ee529f5ad4ea1be2f28ba5e9879 [file] [log] [blame]
Ricardo Cerqueira6ed03ff2011-11-28 16:37:47 +00001PRODUCT_BRAND ?= cyanogenmod
2
Steve Kondika8945752012-03-14 00:10:33 -07003ifneq ($(TARGET_BOOTANIMATION_NAME),)
4 PRODUCT_COPY_FILES += \
5 vendor/cm/prebuilt/common/bootanimation/$(TARGET_BOOTANIMATION_NAME).zip:system/media/bootanimation.zip
6endif
7
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +00008ifdef CM_NIGHTLY
9PRODUCT_PROPERTY_OVERRIDES += \
10 ro.rommanager.developerid=cyanogenmodnightly
11else
12PRODUCT_PROPERTY_OVERRIDES += \
13 ro.rommanager.developerid=cyanogenmod
14endif
15
16PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
17
18PRODUCT_PROPERTY_OVERRIDES += \
19 keyguard.no_require_sim=true \
20 ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html \
21 ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html \
22 ro.com.google.clientidbase=android-google \
23 ro.com.android.wifi-watchlist=GoogleGuest \
24 ro.setupwizard.enterprise_mode=1 \
25 ro.com.android.dateformat=MM-dd-yyyy \
26 ro.com.android.dataroaming=false
27
28# Copy over the changelog to the device
29PRODUCT_COPY_FILES += \
30 vendor/cm/CHANGELOG.mkdn:system/etc/CHANGELOG-CM.txt
31
Warren Togamib1637c82012-03-03 22:37:42 -100032# Backup Tool
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000033PRODUCT_COPY_FILES += \
Warren Togamib1637c82012-03-03 22:37:42 -100034 vendor/cm/prebuilt/common/bin/backuptool.sh:system/bin/backuptool.sh \
35 vendor/cm/prebuilt/common/bin/backuptool.functions:system/bin/backuptool.functions \
36 vendor/cm/prebuilt/common/bin/50-cm.sh:system/addon.d/50-cm.sh
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000037
Steve Kondik485527d2011-12-20 12:14:24 -080038# init.d support
39PRODUCT_COPY_FILES += \
40 vendor/cm/prebuilt/common/etc/init.d/00banner:system/etc/init.d/00banner \
41 vendor/cm/prebuilt/common/bin/sysinit:system/bin/sysinit
42
43# Compcache/Zram support
44PRODUCT_COPY_FILES += \
45 vendor/cm/prebuilt/common/etc/init.local.rc:system/etc/init.local.rc \
46 vendor/cm/prebuilt/common/bin/compcache:system/bin/compcache \
47 vendor/cm/prebuilt/common/bin/handle_compcache:system/bin/handle_compcache
48
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000049PRODUCT_COPY_FILES += \
50 vendor/cm/proprietary/RomManager.apk:system/app/RomManager.apk \
Steve Kondika25e4e02011-12-14 22:27:07 -080051 vendor/cm/proprietary/Term.apk:system/app/Term.apk \
Steve Kondika8945752012-03-14 00:10:33 -070052 vendor/cm/proprietary/lib/armeabi/libjackpal-androidterm3.so:system/lib/libjackpal-androidterm3.so
fitsnugly407b3992012-01-14 18:50:25 -050053
54# Bring in camera effects & videos
55$(call inherit-product, frameworks/base/data/videos/VideoPackage2.mk)
56PRODUCT_COPY_FILES += \
fitsnuglyc1c6ce22012-01-12 01:10:39 -050057 vendor/cm/prebuilt/common/media/LMprec_508.emd:system/media/LMprec_508.emd \
58 vendor/cm/prebuilt/common/media/PFFprec_600.emd:system/media/PFFprec_600.emd
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000059
60# Enable SIP+VoIP on all targets
61PRODUCT_COPY_FILES += \
62 frameworks/base/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
63
Steve Kondike0c12da2012-03-25 17:21:32 -070064# This is CM!
65PRODUCT_COPY_FILES += \
66 vendor/cm/config/permissions/com.cyanogenmod.android.xml:system/etc/permissions/com.cyanogenmod.android.xml
67
Mike Kasick511d6092012-01-26 17:54:31 -050068# Don't export PS1 in /system/etc/mkshrc.
69PRODUCT_COPY_FILES += \
70 vendor/cm/prebuilt/common/etc/mkshrc:system/etc/mkshrc
71
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000072# Required CM packages
73PRODUCT_PACKAGES += \
Steve Kondike0c297d2011-12-20 16:16:01 -080074 Camera \
75 Development \
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000076 LatinIME \
Steve Kondike0c297d2011-12-20 16:16:01 -080077 SpareParts \
Koushik Dutta05dc42e2011-11-25 18:02:09 -080078 Superuser \
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000079 Superuser.apk \
80 su
81
82# Optional CM packages
83PRODUCT_PACKAGES += \
Koushik Dutta74d3bad2011-11-27 13:00:30 -080084 VideoEditor \
85 VoiceDialer \
Warren Togami5960a702012-02-22 09:22:42 -100086 SoundRecorder \
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000087 Basic \
Steve Kondik0051ed62011-11-27 22:15:35 -080088 HoloSpiralWallpaper \
Steve Kondik7ae102e2011-11-30 22:24:18 -080089 MagicSmokeWallpapers \
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000090 NoiseField \
91 Galaxy4 \
Steve Kondik7ae102e2011-11-30 22:24:18 -080092 LiveWallpapers \
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000093 LiveWallpapersPicker \
Steve Kondik7ae102e2011-11-30 22:24:18 -080094 VisualizationWallpapers \
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000095 PhaseBeam
Koushik Dutta8387c322011-11-26 17:31:19 -080096
Steve Kondik04a49412011-12-14 14:02:19 -080097# Custom CM packages
98PRODUCT_PACKAGES += \
nebkat0acffd52011-12-22 16:47:22 +000099 Trebuchet \
Steve Kondik04a49412011-12-14 14:02:19 -0800100 DSPManager \
Steve Kondika25e4e02011-12-14 22:27:07 -0800101 libcyanogen-dsp \
102 audio_effects.conf
Steve Kondik04a49412011-12-14 14:02:19 -0800103
Koushik Duttac6f7a492011-11-28 07:44:23 -0800104PRODUCT_PACKAGE_OVERLAYS += vendor/cm/overlay/dictionaries
Steve Kondik254db262011-12-20 15:02:07 -0800105PRODUCT_PACKAGE_OVERLAYS += vendor/cm/overlay/common
Koushik Duttac6f7a492011-11-28 07:44:23 -0800106
107PRODUCT_VERSION_MAJOR = 9
108PRODUCT_VERSION_MINOR = 0
109PRODUCT_VERSION_MAINTENANCE = 0-RC0
110
Ricardo Cerqueira1bc652f2012-03-29 11:24:38 +0100111PRODUCT_BUILD_PROP_OVERRIDES += BUILD_DISPLAY_ID=IMM76D
Koushik Duttac6f7a492011-11-28 07:44:23 -0800112
113ifdef CM_NIGHTLY
Koushik Dutta0f1ea3a2012-02-24 13:50:18 -0800114 CM_VERSION :=$(PRODUCT_VERSION_MAJOR)-$(shell date +%Y%m%d)-NIGHTLY-$(CM_BUILD)
Koushik Duttac6f7a492011-11-28 07:44:23 -0800115else
Mike Kasick06b4c762012-02-18 14:34:37 -0500116 ifdef CM_SNAPSHOT
Koushik Dutta0f1ea3a2012-02-24 13:50:18 -0800117 CM_VERSION := $(PRODUCT_VERSION_MAJOR)-$(shell date +%Y%m%d)-SNAPSHOT-$(CM_BUILD)$(CM_EXTRAVERSION)
Koushik Duttac6f7a492011-11-28 07:44:23 -0800118 else
Mike Kasick06b4c762012-02-18 14:34:37 -0500119 ifdef CM_RELEASE
Koushik Dutta45130b42012-02-23 16:05:14 -0800120 CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(CM_BUILD)
Mike Kasick06b4c762012-02-18 14:34:37 -0500121 else
Steve Kondikab1991f2012-03-29 15:27:14 -0700122 CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(CM_BUILD)-UNOFFICIAL
Mike Kasick06b4c762012-02-18 14:34:37 -0500123 endif
Koushik Duttac6f7a492011-11-28 07:44:23 -0800124 endif
125endif
Koushik Duttad69b2922012-02-23 14:07:44 -0800126
127PRODUCT_PROPERTY_OVERRIDES += \
128 ro.cm.version=$(CM_VERSION) \
Warren Togamib1637c82012-03-03 22:37:42 -1000129 ro.modversion=$(CM_VERSION)