blob: 863c7aa4eaf31e4923dc1b43246640c01c168a3d [file] [log] [blame]
araa342202012-09-04 14:59:34 -03001PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
2
Steve Kondik2ac44f52013-11-06 13:55:11 -08003ifeq ($(PRODUCT_GMS_CLIENTID_BASE),)
4PRODUCT_PROPERTY_OVERRIDES += \
5 ro.com.google.clientidbase=android-google
6else
7PRODUCT_PROPERTY_OVERRIDES += \
8 ro.com.google.clientidbase=$(PRODUCT_GMS_CLIENTID_BASE)
9endif
10
araa342202012-09-04 14:59:34 -030011PRODUCT_PROPERTY_OVERRIDES += \
12 keyguard.no_require_sim=true \
13 ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html \
14 ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html \
araa342202012-09-04 14:59:34 -030015 ro.com.android.wifi-watchlist=GoogleGuest \
16 ro.setupwizard.enterprise_mode=1 \
17 ro.com.android.dateformat=MM-dd-yyyy \
Lars Greiss5aca6d02013-02-01 02:47:17 +010018 ro.com.android.dataroaming=false
araa342202012-09-04 14:59:34 -030019
Lars Greiss6daac0a2013-08-05 06:38:08 +020020PRODUCT_PROPERTY_OVERRIDES += \
21 ro.build.selinux=1
22
Michael Bestas7af8d5f2013-10-11 23:25:32 +030023# Disable excessive dalvik debug messages
24PRODUCT_PROPERTY_OVERRIDES += \
25 dalvik.vm.debug.alloc=0
26
krarvind65545df2012-10-11 13:40:41 -030027# Backup Tool
28PRODUCT_COPY_FILES += \
29 vendor/slim/prebuilt/common/bin/backuptool.sh:system/bin/backuptool.sh \
30 vendor/slim/prebuilt/common/bin/backuptool.functions:system/bin/backuptool.functions \
Griffin Millendera86c1272013-05-25 04:11:55 -050031 vendor/slim/prebuilt/common/bin/50-slim.sh:system/addon.d/50-slim.sh \
32 vendor/slim/prebuilt/common/bin/99-backup.sh:system/addon.d/99-backup.sh \
33 vendor/slim/prebuilt/common/etc/backup.conf:system/etc/backup.conf
krarvind65545df2012-10-11 13:40:41 -030034
Nicholas Flintham5d790b72014-12-01 19:10:11 +000035# Signature compatibility validation
36PRODUCT_COPY_FILES += \
37 vendor/slim/prebuilt/common/bin/otasigcheck.sh:system/bin/otasigcheck.sh
38
krarvind537ce9b2012-10-25 09:21:39 -030039# SLIM-specific init file
40PRODUCT_COPY_FILES += \
41 vendor/slim/prebuilt/common/etc/init.local.rc:root/init.slim.rc
42
krarvind4cf51662012-12-04 10:44:10 +000043# Copy latinime for gesture typing
Lars Greiss8d162352014-11-28 15:12:06 +010044PRODUCT_COPY_FILES += \
45 vendor/slim/prebuilt/common/lib/libjni_latinimegoogle.so:system/lib/libjni_latinimegoogle.so
krarvind4cf51662012-12-04 10:44:10 +000046
Ricardo Cerqueirad1633c92013-07-17 16:45:20 +010047# SELinux filesystem labels
48PRODUCT_COPY_FILES += \
49 vendor/slim/prebuilt/common/etc/init.d/50selinuxrelabel:system/etc/init.d/50selinuxrelabel
50
araa342202012-09-04 14:59:34 -030051# Enable SIP+VoIP on all targets
52PRODUCT_COPY_FILES += \
53 frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
54
55# Don't export PS1 in /system/etc/mkshrc.
56PRODUCT_COPY_FILES += \
57 vendor/slim/prebuilt/common/etc/mkshrc:system/etc/mkshrc \
Muhammed Nazim442a9a12013-04-11 13:35:59 +020058 vendor/slim/prebuilt/common/etc/sysctl.conf:system/etc/sysctl.conf
araa342202012-09-04 14:59:34 -030059
60PRODUCT_COPY_FILES += \
Lars Greissb8fcbb52013-07-03 01:43:49 +020061 vendor/slim/prebuilt/common/etc/init.d/00banner:system/etc/init.d/00banner \
Lars Greiss14969902013-04-06 12:22:29 +020062 vendor/slim/prebuilt/common/etc/init.d/90userinit:system/etc/init.d/90userinit \
Lars Greiss14969902013-04-06 12:22:29 +020063 vendor/slim/prebuilt/common/bin/sysinit:system/bin/sysinit
araa342202012-09-04 14:59:34 -030064
prbassplayerecc0d602013-03-08 01:34:23 +010065# Embed SuperUser
66SUPERUSER_EMBEDDED := true
67
araa342202012-09-04 14:59:34 -030068# Required packages
69PRODUCT_PACKAGES += \
Josue Riverae258e862014-02-13 02:08:33 +010070 CellBroadcastReceiver \
araa342202012-09-04 14:59:34 -030071 Development \
72 SpareParts \
prbassplayerecc0d602013-03-08 01:34:23 +010073 Superuser \
74 su
araa342202012-09-04 14:59:34 -030075
76# Optional packages
77PRODUCT_PACKAGES += \
78 Basic \
Lars Greisscab1f5a2014-12-08 13:50:11 +010079 LiveWallpapersPicker \
araa342202012-09-04 14:59:34 -030080 PhaseBeam
81
Nicholas Flintham9d722f32014-12-12 11:11:19 +000082# AudioFX
Lars Greissa66ee282013-09-07 04:59:31 +020083PRODUCT_PACKAGES += \
Nicholas Flintham9d722f32014-12-12 11:11:19 +000084 AudioFX
Lars Greissa66ee282013-09-07 04:59:31 +020085
araa342202012-09-04 14:59:34 -030086# Extra Optional packages
87PRODUCT_PACKAGES += \
Lars Greiss16987122013-03-13 14:25:14 +010088 SlimCenter \
Griffin Millender393de592014-10-02 15:20:55 -050089 SlimLauncher \
blk_jack666ccb92013-04-15 12:18:36 -040090 LatinIME \
Griffin Millender6c1f51c2013-12-14 20:18:07 -060091 BluetoothExt \
92 DashClock
araa342202012-09-04 14:59:34 -030093
Griffin Millenderd4f85fc2014-11-06 03:30:09 +010094# SlimFileManager removed until updated
95
araa342202012-09-04 14:59:34 -030096# Extra tools
97PRODUCT_PACKAGES += \
98 openvpn \
99 e2fsck \
100 mke2fs \
rebelosce183582014-03-22 14:25:49 +0200101 tune2fs \
102 mount.exfat \
103 fsck.exfat \
104 mkfs.exfat
araa342202012-09-04 14:59:34 -0300105
Josue Rivera758daa02014-11-30 12:01:01 -0800106# Stagefright FFMPEG plugin
Andreas Blaesiusa1ecb992015-03-19 16:25:30 -0600107#PRODUCT_PACKAGES += \
108# libstagefright_soft_ffmpegadec \
109# libstagefright_soft_ffmpegvdec \
110# libFFmpegExtractor \
111# libnamparser
Josue Rivera758daa02014-11-30 12:01:01 -0800112
Koushik Dutta6ee67a12013-08-12 15:41:14 -0700113# easy way to extend to add more packages
114-include vendor/extra/product.mk
115
araa342202012-09-04 14:59:34 -0300116PRODUCT_PACKAGE_OVERLAYS += vendor/slim/overlay/common
117
Lars Greiss565ed342013-08-12 15:35:19 +0200118# Boot animation include
119ifneq ($(TARGET_SCREEN_WIDTH) $(TARGET_SCREEN_HEIGHT),$(space))
120
121# determine the smaller dimension
122TARGET_BOOTANIMATION_SIZE := $(shell \
123 if [ $(TARGET_SCREEN_WIDTH) -lt $(TARGET_SCREEN_HEIGHT) ]; then \
124 echo $(TARGET_SCREEN_WIDTH); \
125 else \
126 echo $(TARGET_SCREEN_HEIGHT); \
127 fi )
128
129# get a sorted list of the sizes
130bootanimation_sizes := $(subst .zip,, $(shell ls vendor/slim/prebuilt/common/bootanimation))
131bootanimation_sizes := $(shell echo -e $(subst $(space),'\n',$(bootanimation_sizes)) | sort -rn)
132
133# find the appropriate size and set
134define check_and_set_bootanimation
135$(eval TARGET_BOOTANIMATION_NAME := $(shell \
136 if [ -z "$(TARGET_BOOTANIMATION_NAME)" ]; then
137 if [ $(1) -le $(TARGET_BOOTANIMATION_SIZE) ]; then \
138 echo $(1); \
139 exit 0; \
140 fi;
141 fi;
142 echo $(TARGET_BOOTANIMATION_NAME); ))
143endef
144$(foreach size,$(bootanimation_sizes), $(call check_and_set_bootanimation,$(size)))
145
146PRODUCT_COPY_FILES += \
147 vendor/slim/prebuilt/common/bootanimation/$(TARGET_BOOTANIMATION_NAME).zip:system/media/bootanimation.zip
148endif
149
Muhammed Nazim442a9a12013-04-11 13:35:59 +0200150# Versioning System
Lars Greissb1ca6952014-11-04 10:23:23 +0100151# SlimLP first version.
Andreas Blaesiusa1ecb992015-03-19 16:25:30 -0600152PRODUCT_VERSION_MAJOR = 5.1
Lars Greissb1ca6952014-11-04 10:23:23 +0100153PRODUCT_VERSION_MINOR = alpha
Andreas Blaesiusa1ecb992015-03-19 16:25:30 -0600154PRODUCT_VERSION_MAINTENANCE = 0.1
tortureduckcf282162013-06-19 13:58:38 +0200155ifdef SLIM_BUILD_EXTRA
156 SLIM_POSTFIX := -$(SLIM_BUILD_EXTRA)
157endif
158ifndef SLIM_BUILD_TYPE
159 SLIM_BUILD_TYPE := UNOFFICIAL
160 PLATFORM_VERSION_CODENAME := UNOFFICIAL
161 SLIM_POSTFIX := -$(shell date +"%Y%m%d-%H%M")
araa342202012-09-04 14:59:34 -0300162endif
Muhammed Nazim55de5482013-04-11 15:25:27 +0200163
Griffin Millender76473292014-06-13 15:56:34 -0500164# SlimIRC
165# export INCLUDE_SLIMIRC=1 for unofficial builds
166ifneq ($(filter WEEKLY OFFICIAL,$(SLIM_BUILD_TYPE)),)
167 INCLUDE_SLIMIRC = 1
168endif
169
170ifneq ($(INCLUDE_SLIMIRC),)
171 PRODUCT_PACKAGES += SlimIRC
172endif
173
tortureduckcf282162013-06-19 13:58:38 +0200174# Set all versions
175SLIM_VERSION := Slim-$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)-$(SLIM_BUILD_TYPE)$(SLIM_POSTFIX)
176SLIM_MOD_VERSION := Slim-$(SLIM_BUILD)-$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)-$(SLIM_BUILD_TYPE)$(SLIM_POSTFIX)
177
Muhammed Nazim55de5482013-04-11 15:25:27 +0200178PRODUCT_PROPERTY_OVERRIDES += \
tortureduckcf282162013-06-19 13:58:38 +0200179 BUILD_DISPLAY_ID=$(BUILD_ID) \
180 slim.ota.version=$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE) \
Muhammed Nazim55de5482013-04-11 15:25:27 +0200181 ro.slim.version=$(SLIM_VERSION) \
Griffin Millenderdbf85ad2014-06-13 18:31:04 -0500182 ro.modversion=$(SLIM_MOD_VERSION) \
183 ro.slim.buildtype=$(SLIM_BUILD_TYPE)
William Robertsbf4b9b72013-08-15 13:08:41 -0700184
Anthony King2890d6b2014-11-07 21:26:48 +0000185EXTENDED_POST_PROCESS_PROPS := vendor/slim/tools/slim_process_props.py
186