blob: e88c5d1e906cf705ddfbc2418c76bce4f5ca337a [file] [log] [blame]
araa342202012-09-04 14:59:34 -03001PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
2
3PRODUCT_PROPERTY_OVERRIDES += \
4 keyguard.no_require_sim=true \
5 ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html \
6 ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html \
7 ro.com.google.clientidbase=android-google \
8 ro.com.android.wifi-watchlist=GoogleGuest \
9 ro.setupwizard.enterprise_mode=1 \
10 ro.com.android.dateformat=MM-dd-yyyy \
Lars Greiss5aca6d02013-02-01 02:47:17 +010011 ro.com.android.dataroaming=false
araa342202012-09-04 14:59:34 -030012
Lars Greiss6daac0a2013-08-05 06:38:08 +020013PRODUCT_PROPERTY_OVERRIDES += \
14 ro.build.selinux=1
15
Michael Bestas7af8d5f2013-10-11 23:25:32 +030016# Disable excessive dalvik debug messages
17PRODUCT_PROPERTY_OVERRIDES += \
18 dalvik.vm.debug.alloc=0
19
krarvind65545df2012-10-11 13:40:41 -030020# Backup Tool
21PRODUCT_COPY_FILES += \
22 vendor/slim/prebuilt/common/bin/backuptool.sh:system/bin/backuptool.sh \
23 vendor/slim/prebuilt/common/bin/backuptool.functions:system/bin/backuptool.functions \
Griffin Millendera86c1272013-05-25 04:11:55 -050024 vendor/slim/prebuilt/common/bin/50-slim.sh:system/addon.d/50-slim.sh \
25 vendor/slim/prebuilt/common/bin/99-backup.sh:system/addon.d/99-backup.sh \
26 vendor/slim/prebuilt/common/etc/backup.conf:system/etc/backup.conf
krarvind65545df2012-10-11 13:40:41 -030027
krarvind537ce9b2012-10-25 09:21:39 -030028# SLIM-specific init file
29PRODUCT_COPY_FILES += \
30 vendor/slim/prebuilt/common/etc/init.local.rc:root/init.slim.rc
31
krarvind4cf51662012-12-04 10:44:10 +000032# Copy latinime for gesture typing
Lars Greiss9ea6e162013-11-02 21:21:56 +010033PRODUCT_COPY_FILES += \
34 vendor/slim/prebuilt/common/lib/libjni_latinime.so:system/lib/libjni_latinime.so
krarvind4cf51662012-12-04 10:44:10 +000035
Ricardo Cerqueirad1633c92013-07-17 16:45:20 +010036# SELinux filesystem labels
37PRODUCT_COPY_FILES += \
38 vendor/slim/prebuilt/common/etc/init.d/50selinuxrelabel:system/etc/init.d/50selinuxrelabel
39
araa342202012-09-04 14:59:34 -030040# Enable SIP+VoIP on all targets
41PRODUCT_COPY_FILES += \
42 frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
43
44# Don't export PS1 in /system/etc/mkshrc.
45PRODUCT_COPY_FILES += \
46 vendor/slim/prebuilt/common/etc/mkshrc:system/etc/mkshrc \
Muhammed Nazim442a9a12013-04-11 13:35:59 +020047 vendor/slim/prebuilt/common/etc/sysctl.conf:system/etc/sysctl.conf
araa342202012-09-04 14:59:34 -030048
49PRODUCT_COPY_FILES += \
Lars Greissb8fcbb52013-07-03 01:43:49 +020050 vendor/slim/prebuilt/common/etc/init.d/00banner:system/etc/init.d/00banner \
Lars Greiss14969902013-04-06 12:22:29 +020051 vendor/slim/prebuilt/common/etc/init.d/90userinit:system/etc/init.d/90userinit \
Lars Greiss14969902013-04-06 12:22:29 +020052 vendor/slim/prebuilt/common/bin/sysinit:system/bin/sysinit
araa342202012-09-04 14:59:34 -030053
Lars Greiss679c82c2013-04-28 05:25:33 +020054# Workaround for NovaLauncher zipalign fails
55PRODUCT_COPY_FILES += \
56 vendor/slim/prebuilt/common/app/NovaLauncher.apk:system/app/NovaLauncher.apk
57
prbassplayerecc0d602013-03-08 01:34:23 +010058# Embed SuperUser
59SUPERUSER_EMBEDDED := true
60
araa342202012-09-04 14:59:34 -030061# Required packages
62PRODUCT_PACKAGES += \
63 Camera \
64 Development \
65 SpareParts \
prbassplayerecc0d602013-03-08 01:34:23 +010066 Superuser \
67 su
araa342202012-09-04 14:59:34 -030068
69# Optional packages
70PRODUCT_PACKAGES += \
71 Basic \
72 HoloSpiralWallpaper \
73 NoiseField \
74 Galaxy4 \
75 LiveWallpapersPicker \
76 PhaseBeam
77
Lars Greissa66ee282013-09-07 04:59:31 +020078# DSPManager
79PRODUCT_PACKAGES += \
80 DSPManager \
81 libcyanogen-dsp \
82 audio_effects.conf
83
araa342202012-09-04 14:59:34 -030084# Extra Optional packages
85PRODUCT_PACKAGES += \
Lars Greiss16987122013-03-13 14:25:14 +010086 SlimCenter \
Lars Greiss393d1812013-11-20 16:02:38 +010087 SlimFileManager \
blk_jack666ccb92013-04-15 12:18:36 -040088 LatinIME \
cordell3ad230e2013-10-13 19:42:10 +020089 SlimIRC \
Griffin Millender6c1f51c2013-12-14 20:18:07 -060090 BluetoothExt \
91 DashClock
araa342202012-09-04 14:59:34 -030092
93# Extra tools
94PRODUCT_PACKAGES += \
95 openvpn \
96 e2fsck \
97 mke2fs \
98 tune2fs
99
Koushik Dutta6ee67a12013-08-12 15:41:14 -0700100# easy way to extend to add more packages
101-include vendor/extra/product.mk
102
araa342202012-09-04 14:59:34 -0300103PRODUCT_PACKAGE_OVERLAYS += vendor/slim/overlay/common
104
Lars Greiss565ed342013-08-12 15:35:19 +0200105# Boot animation include
106ifneq ($(TARGET_SCREEN_WIDTH) $(TARGET_SCREEN_HEIGHT),$(space))
107
108# determine the smaller dimension
109TARGET_BOOTANIMATION_SIZE := $(shell \
110 if [ $(TARGET_SCREEN_WIDTH) -lt $(TARGET_SCREEN_HEIGHT) ]; then \
111 echo $(TARGET_SCREEN_WIDTH); \
112 else \
113 echo $(TARGET_SCREEN_HEIGHT); \
114 fi )
115
116# get a sorted list of the sizes
117bootanimation_sizes := $(subst .zip,, $(shell ls vendor/slim/prebuilt/common/bootanimation))
118bootanimation_sizes := $(shell echo -e $(subst $(space),'\n',$(bootanimation_sizes)) | sort -rn)
119
120# find the appropriate size and set
121define check_and_set_bootanimation
122$(eval TARGET_BOOTANIMATION_NAME := $(shell \
123 if [ -z "$(TARGET_BOOTANIMATION_NAME)" ]; then
124 if [ $(1) -le $(TARGET_BOOTANIMATION_SIZE) ]; then \
125 echo $(1); \
126 exit 0; \
127 fi;
128 fi;
129 echo $(TARGET_BOOTANIMATION_NAME); ))
130endef
131$(foreach size,$(bootanimation_sizes), $(call check_and_set_bootanimation,$(size)))
132
133PRODUCT_COPY_FILES += \
134 vendor/slim/prebuilt/common/bootanimation/$(TARGET_BOOTANIMATION_NAME).zip:system/media/bootanimation.zip
135endif
136
Muhammed Nazim442a9a12013-04-11 13:35:59 +0200137# Versioning System
Lars Greissc617f7b2013-12-08 20:38:00 +0100138# KitKat SlimKat beta releases
Lars Greiss2dfc2ce2013-12-11 22:32:13 +0100139PRODUCT_VERSION_MAJOR = 4.4.2
Lars Greiss046ceec2014-01-26 20:07:58 +0100140PRODUCT_VERSION_MINOR = build
Lars Greiss08ccc982014-02-12 01:19:54 +0100141PRODUCT_VERSION_MAINTENANCE = 3.PCFR
tortureduckcf282162013-06-19 13:58:38 +0200142ifdef SLIM_BUILD_EXTRA
143 SLIM_POSTFIX := -$(SLIM_BUILD_EXTRA)
144endif
145ifndef SLIM_BUILD_TYPE
146 SLIM_BUILD_TYPE := UNOFFICIAL
147 PLATFORM_VERSION_CODENAME := UNOFFICIAL
148 SLIM_POSTFIX := -$(shell date +"%Y%m%d-%H%M")
araa342202012-09-04 14:59:34 -0300149endif
Muhammed Nazim55de5482013-04-11 15:25:27 +0200150
tortureduckcf282162013-06-19 13:58:38 +0200151# Set all versions
152SLIM_VERSION := Slim-$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)-$(SLIM_BUILD_TYPE)$(SLIM_POSTFIX)
153SLIM_MOD_VERSION := Slim-$(SLIM_BUILD)-$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)-$(SLIM_BUILD_TYPE)$(SLIM_POSTFIX)
154
Muhammed Nazim55de5482013-04-11 15:25:27 +0200155PRODUCT_PROPERTY_OVERRIDES += \
tortureduckcf282162013-06-19 13:58:38 +0200156 BUILD_DISPLAY_ID=$(BUILD_ID) \
157 slim.ota.version=$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE) \
Muhammed Nazim55de5482013-04-11 15:25:27 +0200158 ro.slim.version=$(SLIM_VERSION) \
159 ro.modversion=$(SLIM_MOD_VERSION)
William Robertsbf4b9b72013-08-15 13:08:41 -0700160