blob: d133d8d80fcbb099ac763697b2eacaefb4ab40c6 [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
Mike Kasick511d6092012-01-26 17:54:31 -050064# Don't export PS1 in /system/etc/mkshrc.
65PRODUCT_COPY_FILES += \
66 vendor/cm/prebuilt/common/etc/mkshrc:system/etc/mkshrc
67
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000068# Required CM packages
69PRODUCT_PACKAGES += \
Steve Kondike0c297d2011-12-20 16:16:01 -080070 Camera \
71 Development \
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000072 LatinIME \
Steve Kondike0c297d2011-12-20 16:16:01 -080073 SpareParts \
Koushik Dutta05dc42e2011-11-25 18:02:09 -080074 Superuser \
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000075 Superuser.apk \
76 su
77
78# Optional CM packages
79PRODUCT_PACKAGES += \
Koushik Dutta74d3bad2011-11-27 13:00:30 -080080 VideoEditor \
81 VoiceDialer \
Warren Togami5960a702012-02-22 09:22:42 -100082 SoundRecorder \
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000083 Basic \
Steve Kondik0051ed62011-11-27 22:15:35 -080084 HoloSpiralWallpaper \
Steve Kondik7ae102e2011-11-30 22:24:18 -080085 MagicSmokeWallpapers \
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000086 NoiseField \
87 Galaxy4 \
Steve Kondik7ae102e2011-11-30 22:24:18 -080088 LiveWallpapers \
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000089 LiveWallpapersPicker \
Steve Kondik7ae102e2011-11-30 22:24:18 -080090 VisualizationWallpapers \
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000091 PhaseBeam
Koushik Dutta8387c322011-11-26 17:31:19 -080092
Steve Kondik04a49412011-12-14 14:02:19 -080093# Custom CM packages
94PRODUCT_PACKAGES += \
nebkat0acffd52011-12-22 16:47:22 +000095 Trebuchet \
Steve Kondik04a49412011-12-14 14:02:19 -080096 DSPManager \
Steve Kondika25e4e02011-12-14 22:27:07 -080097 libcyanogen-dsp \
98 audio_effects.conf
Steve Kondik04a49412011-12-14 14:02:19 -080099
Koushik Duttac6f7a492011-11-28 07:44:23 -0800100PRODUCT_PACKAGE_OVERLAYS += vendor/cm/overlay/dictionaries
Steve Kondik254db262011-12-20 15:02:07 -0800101PRODUCT_PACKAGE_OVERLAYS += vendor/cm/overlay/common
Koushik Duttac6f7a492011-11-28 07:44:23 -0800102
103PRODUCT_VERSION_MAJOR = 9
104PRODUCT_VERSION_MINOR = 0
105PRODUCT_VERSION_MAINTENANCE = 0-RC0
106
Giulio Cerveraf1510282011-12-24 04:30:03 -0500107PRODUCT_BUILD_PROP_OVERRIDES += BUILD_DISPLAY_ID=IML74K
Koushik Duttac6f7a492011-11-28 07:44:23 -0800108
109ifdef CM_NIGHTLY
Koushik Dutta0f1ea3a2012-02-24 13:50:18 -0800110 CM_VERSION :=$(PRODUCT_VERSION_MAJOR)-$(shell date +%Y%m%d)-NIGHTLY-$(CM_BUILD)
Koushik Duttac6f7a492011-11-28 07:44:23 -0800111else
Mike Kasick06b4c762012-02-18 14:34:37 -0500112 ifdef CM_SNAPSHOT
Koushik Dutta0f1ea3a2012-02-24 13:50:18 -0800113 CM_VERSION := $(PRODUCT_VERSION_MAJOR)-$(shell date +%Y%m%d)-SNAPSHOT-$(CM_BUILD)$(CM_EXTRAVERSION)
Koushik Duttac6f7a492011-11-28 07:44:23 -0800114 else
Mike Kasick06b4c762012-02-18 14:34:37 -0500115 ifdef CM_RELEASE
Koushik Dutta45130b42012-02-23 16:05:14 -0800116 CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(CM_BUILD)
Mike Kasick06b4c762012-02-18 14:34:37 -0500117 else
Koushik Dutta45130b42012-02-23 16:05:14 -0800118 CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(CM_BUILD)-KANG
Mike Kasick06b4c762012-02-18 14:34:37 -0500119 endif
Koushik Duttac6f7a492011-11-28 07:44:23 -0800120 endif
121endif
Koushik Duttad69b2922012-02-23 14:07:44 -0800122
123PRODUCT_PROPERTY_OVERRIDES += \
124 ro.cm.version=$(CM_VERSION) \
Warren Togamib1637c82012-03-03 22:37:42 -1000125 ro.modversion=$(CM_VERSION)