blob: 03f6225bc49aa944e9c6541b38e4840bdefd0349 [file] [log] [blame]
Ricardo Cerqueira6ed03ff2011-11-28 16:37:47 +00001PRODUCT_BRAND ?= cyanogenmod
2
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +00003ifdef CM_NIGHTLY
4PRODUCT_PROPERTY_OVERRIDES += \
5 ro.rommanager.developerid=cyanogenmodnightly
6else
7PRODUCT_PROPERTY_OVERRIDES += \
8 ro.rommanager.developerid=cyanogenmod
9endif
10
11PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
12
13PRODUCT_PROPERTY_OVERRIDES += \
14 keyguard.no_require_sim=true \
15 ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html \
16 ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html \
17 ro.com.google.clientidbase=android-google \
18 ro.com.android.wifi-watchlist=GoogleGuest \
19 ro.setupwizard.enterprise_mode=1 \
20 ro.com.android.dateformat=MM-dd-yyyy \
21 ro.com.android.dataroaming=false
22
23# Copy over the changelog to the device
24PRODUCT_COPY_FILES += \
25 vendor/cm/CHANGELOG.mkdn:system/etc/CHANGELOG-CM.txt
26
Warren Togamib1637c82012-03-03 22:37:42 -100027# Backup Tool
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000028PRODUCT_COPY_FILES += \
Warren Togamib1637c82012-03-03 22:37:42 -100029 vendor/cm/prebuilt/common/bin/backuptool.sh:system/bin/backuptool.sh \
30 vendor/cm/prebuilt/common/bin/backuptool.functions:system/bin/backuptool.functions \
31 vendor/cm/prebuilt/common/bin/50-cm.sh:system/addon.d/50-cm.sh
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000032
Steve Kondik485527d2011-12-20 12:14:24 -080033# init.d support
34PRODUCT_COPY_FILES += \
35 vendor/cm/prebuilt/common/etc/init.d/00banner:system/etc/init.d/00banner \
36 vendor/cm/prebuilt/common/bin/sysinit:system/bin/sysinit
37
38# Compcache/Zram support
39PRODUCT_COPY_FILES += \
40 vendor/cm/prebuilt/common/etc/init.local.rc:system/etc/init.local.rc \
41 vendor/cm/prebuilt/common/bin/compcache:system/bin/compcache \
42 vendor/cm/prebuilt/common/bin/handle_compcache:system/bin/handle_compcache
43
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000044PRODUCT_COPY_FILES += \
45 vendor/cm/proprietary/RomManager.apk:system/app/RomManager.apk \
Steve Kondika25e4e02011-12-14 22:27:07 -080046 vendor/cm/proprietary/Term.apk:system/app/Term.apk \
47 vendor/cm/proprietary/lib/armeabi/libjackpal-androidterm3.so:system/lib/libjackpal-androidterm3.so \
fitsnugly407b3992012-01-14 18:50:25 -050048 vendor/cm/prebuilt/common/bootanimation.zip:system/media/bootanimation.zip
49
50# Bring in camera effects & videos
51$(call inherit-product, frameworks/base/data/videos/VideoPackage2.mk)
52PRODUCT_COPY_FILES += \
fitsnuglyc1c6ce22012-01-12 01:10:39 -050053 vendor/cm/prebuilt/common/media/LMprec_508.emd:system/media/LMprec_508.emd \
54 vendor/cm/prebuilt/common/media/PFFprec_600.emd:system/media/PFFprec_600.emd
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000055
56# Enable SIP+VoIP on all targets
57PRODUCT_COPY_FILES += \
58 frameworks/base/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
59
Mike Kasick511d6092012-01-26 17:54:31 -050060# Don't export PS1 in /system/etc/mkshrc.
61PRODUCT_COPY_FILES += \
62 vendor/cm/prebuilt/common/etc/mkshrc:system/etc/mkshrc
63
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000064# Required CM packages
65PRODUCT_PACKAGES += \
Steve Kondike0c297d2011-12-20 16:16:01 -080066 Camera \
67 Development \
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000068 LatinIME \
Steve Kondike0c297d2011-12-20 16:16:01 -080069 SpareParts \
Koushik Dutta05dc42e2011-11-25 18:02:09 -080070 Superuser \
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000071 Superuser.apk \
72 su
73
74# Optional CM packages
75PRODUCT_PACKAGES += \
Koushik Dutta74d3bad2011-11-27 13:00:30 -080076 VideoEditor \
77 VoiceDialer \
Warren Togami5960a702012-02-22 09:22:42 -100078 SoundRecorder \
Warren Togamice375df2012-03-06 00:08:01 -100079 SpeechRecorder \
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000080 Basic \
Steve Kondik0051ed62011-11-27 22:15:35 -080081 HoloSpiralWallpaper \
Steve Kondik7ae102e2011-11-30 22:24:18 -080082 MagicSmokeWallpapers \
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000083 NoiseField \
84 Galaxy4 \
Steve Kondik7ae102e2011-11-30 22:24:18 -080085 LiveWallpapers \
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000086 LiveWallpapersPicker \
Steve Kondik7ae102e2011-11-30 22:24:18 -080087 VisualizationWallpapers \
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000088 PhaseBeam
Koushik Dutta8387c322011-11-26 17:31:19 -080089
Steve Kondik04a49412011-12-14 14:02:19 -080090# Custom CM packages
91PRODUCT_PACKAGES += \
nebkat0acffd52011-12-22 16:47:22 +000092 Trebuchet \
Steve Kondik04a49412011-12-14 14:02:19 -080093 DSPManager \
Steve Kondika25e4e02011-12-14 22:27:07 -080094 libcyanogen-dsp \
95 audio_effects.conf
Steve Kondik04a49412011-12-14 14:02:19 -080096
Koushik Duttac6f7a492011-11-28 07:44:23 -080097PRODUCT_PACKAGE_OVERLAYS += vendor/cm/overlay/dictionaries
Steve Kondik254db262011-12-20 15:02:07 -080098PRODUCT_PACKAGE_OVERLAYS += vendor/cm/overlay/common
Koushik Duttac6f7a492011-11-28 07:44:23 -080099
100PRODUCT_VERSION_MAJOR = 9
101PRODUCT_VERSION_MINOR = 0
102PRODUCT_VERSION_MAINTENANCE = 0-RC0
103
Giulio Cerveraf1510282011-12-24 04:30:03 -0500104PRODUCT_BUILD_PROP_OVERRIDES += BUILD_DISPLAY_ID=IML74K
Koushik Duttac6f7a492011-11-28 07:44:23 -0800105
106ifdef CM_NIGHTLY
Koushik Dutta0f1ea3a2012-02-24 13:50:18 -0800107 CM_VERSION :=$(PRODUCT_VERSION_MAJOR)-$(shell date +%Y%m%d)-NIGHTLY-$(CM_BUILD)
Koushik Duttac6f7a492011-11-28 07:44:23 -0800108else
Mike Kasick06b4c762012-02-18 14:34:37 -0500109 ifdef CM_SNAPSHOT
Koushik Dutta0f1ea3a2012-02-24 13:50:18 -0800110 CM_VERSION := $(PRODUCT_VERSION_MAJOR)-$(shell date +%Y%m%d)-SNAPSHOT-$(CM_BUILD)$(CM_EXTRAVERSION)
Koushik Duttac6f7a492011-11-28 07:44:23 -0800111 else
Mike Kasick06b4c762012-02-18 14:34:37 -0500112 ifdef CM_RELEASE
Koushik Dutta45130b42012-02-23 16:05:14 -0800113 CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(CM_BUILD)
Mike Kasick06b4c762012-02-18 14:34:37 -0500114 else
Koushik Dutta45130b42012-02-23 16:05:14 -0800115 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 -0500116 endif
Koushik Duttac6f7a492011-11-28 07:44:23 -0800117 endif
118endif
Koushik Duttad69b2922012-02-23 14:07:44 -0800119
120PRODUCT_PROPERTY_OVERRIDES += \
121 ro.cm.version=$(CM_VERSION) \
Warren Togamib1637c82012-03-03 22:37:42 -1000122 ro.modversion=$(CM_VERSION)