ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 1 | PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0 |
| 2 | |
Steve Kondik | 2ac44f5 | 2013-11-06 13:55:11 -0800 | [diff] [blame] | 3 | ifeq ($(PRODUCT_GMS_CLIENTID_BASE),) |
| 4 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 5 | ro.com.google.clientidbase=android-google |
| 6 | else |
| 7 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 8 | ro.com.google.clientidbase=$(PRODUCT_GMS_CLIENTID_BASE) |
| 9 | endif |
| 10 | |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 11 | PRODUCT_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 \ |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 15 | ro.com.android.wifi-watchlist=GoogleGuest \ |
| 16 | ro.setupwizard.enterprise_mode=1 \ |
| 17 | ro.com.android.dateformat=MM-dd-yyyy \ |
Lars Greiss | 5aca6d0 | 2013-02-01 02:47:17 +0100 | [diff] [blame] | 18 | ro.com.android.dataroaming=false |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 19 | |
Lars Greiss | 6daac0a | 2013-08-05 06:38:08 +0200 | [diff] [blame] | 20 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 21 | ro.build.selinux=1 |
| 22 | |
Michael Bestas | 7af8d5f | 2013-10-11 23:25:32 +0300 | [diff] [blame] | 23 | # Disable excessive dalvik debug messages |
| 24 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 25 | dalvik.vm.debug.alloc=0 |
| 26 | |
krarvind | 65545df | 2012-10-11 13:40:41 -0300 | [diff] [blame] | 27 | # Backup Tool |
| 28 | PRODUCT_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 Millender | a86c127 | 2013-05-25 04:11:55 -0500 | [diff] [blame] | 31 | 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 |
krarvind | 65545df | 2012-10-11 13:40:41 -0300 | [diff] [blame] | 34 | |
krarvind | 537ce9b | 2012-10-25 09:21:39 -0300 | [diff] [blame] | 35 | # SLIM-specific init file |
| 36 | PRODUCT_COPY_FILES += \ |
| 37 | vendor/slim/prebuilt/common/etc/init.local.rc:root/init.slim.rc |
| 38 | |
krarvind | 4cf5166 | 2012-12-04 10:44:10 +0000 | [diff] [blame] | 39 | # Copy latinime for gesture typing |
Lars Greiss | 8d16235 | 2014-11-28 15:12:06 +0100 | [diff] [blame] | 40 | PRODUCT_COPY_FILES += \ |
| 41 | vendor/slim/prebuilt/common/lib/libjni_latinimegoogle.so:system/lib/libjni_latinimegoogle.so |
krarvind | 4cf5166 | 2012-12-04 10:44:10 +0000 | [diff] [blame] | 42 | |
Ricardo Cerqueira | d1633c9 | 2013-07-17 16:45:20 +0100 | [diff] [blame] | 43 | # SELinux filesystem labels |
| 44 | PRODUCT_COPY_FILES += \ |
| 45 | vendor/slim/prebuilt/common/etc/init.d/50selinuxrelabel:system/etc/init.d/50selinuxrelabel |
| 46 | |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 47 | # Enable SIP+VoIP on all targets |
| 48 | PRODUCT_COPY_FILES += \ |
| 49 | frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml |
| 50 | |
| 51 | # Don't export PS1 in /system/etc/mkshrc. |
| 52 | PRODUCT_COPY_FILES += \ |
| 53 | vendor/slim/prebuilt/common/etc/mkshrc:system/etc/mkshrc \ |
Muhammed Nazim | 442a9a1 | 2013-04-11 13:35:59 +0200 | [diff] [blame] | 54 | vendor/slim/prebuilt/common/etc/sysctl.conf:system/etc/sysctl.conf |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 55 | |
| 56 | PRODUCT_COPY_FILES += \ |
Lars Greiss | b8fcbb5 | 2013-07-03 01:43:49 +0200 | [diff] [blame] | 57 | vendor/slim/prebuilt/common/etc/init.d/00banner:system/etc/init.d/00banner \ |
Lars Greiss | 1496990 | 2013-04-06 12:22:29 +0200 | [diff] [blame] | 58 | vendor/slim/prebuilt/common/etc/init.d/90userinit:system/etc/init.d/90userinit \ |
Lars Greiss | 1496990 | 2013-04-06 12:22:29 +0200 | [diff] [blame] | 59 | vendor/slim/prebuilt/common/bin/sysinit:system/bin/sysinit |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 60 | |
prbassplayer | ecc0d60 | 2013-03-08 01:34:23 +0100 | [diff] [blame] | 61 | # Embed SuperUser |
| 62 | SUPERUSER_EMBEDDED := true |
| 63 | |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 64 | # Required packages |
| 65 | PRODUCT_PACKAGES += \ |
Josue Rivera | e258e86 | 2014-02-13 02:08:33 +0100 | [diff] [blame] | 66 | CellBroadcastReceiver \ |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 67 | Development \ |
| 68 | SpareParts \ |
prbassplayer | ecc0d60 | 2013-03-08 01:34:23 +0100 | [diff] [blame] | 69 | Superuser \ |
| 70 | su |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 71 | |
| 72 | # Optional packages |
| 73 | PRODUCT_PACKAGES += \ |
| 74 | Basic \ |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 75 | PhaseBeam |
| 76 | |
Lars Greiss | a66ee28 | 2013-09-07 04:59:31 +0200 | [diff] [blame] | 77 | # DSPManager |
| 78 | PRODUCT_PACKAGES += \ |
| 79 | DSPManager \ |
| 80 | libcyanogen-dsp \ |
| 81 | audio_effects.conf |
| 82 | |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 83 | # Extra Optional packages |
| 84 | PRODUCT_PACKAGES += \ |
Lars Greiss | 1698712 | 2013-03-13 14:25:14 +0100 | [diff] [blame] | 85 | SlimCenter \ |
Griffin Millender | 393de59 | 2014-10-02 15:20:55 -0500 | [diff] [blame] | 86 | SlimLauncher \ |
blk_jack | 666ccb9 | 2013-04-15 12:18:36 -0400 | [diff] [blame] | 87 | LatinIME \ |
Griffin Millender | 6c1f51c | 2013-12-14 20:18:07 -0600 | [diff] [blame] | 88 | BluetoothExt \ |
| 89 | DashClock |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 90 | |
Griffin Millender | d4f85fc | 2014-11-06 03:30:09 +0100 | [diff] [blame] | 91 | # SlimFileManager removed until updated |
| 92 | |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 93 | # Extra tools |
| 94 | PRODUCT_PACKAGES += \ |
| 95 | openvpn \ |
| 96 | e2fsck \ |
| 97 | mke2fs \ |
rebelos | ce18358 | 2014-03-22 14:25:49 +0200 | [diff] [blame] | 98 | tune2fs \ |
| 99 | mount.exfat \ |
| 100 | fsck.exfat \ |
| 101 | mkfs.exfat |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 102 | |
Koushik Dutta | 6ee67a1 | 2013-08-12 15:41:14 -0700 | [diff] [blame] | 103 | # easy way to extend to add more packages |
| 104 | -include vendor/extra/product.mk |
| 105 | |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 106 | PRODUCT_PACKAGE_OVERLAYS += vendor/slim/overlay/common |
| 107 | |
Lars Greiss | 565ed34 | 2013-08-12 15:35:19 +0200 | [diff] [blame] | 108 | # Boot animation include |
| 109 | ifneq ($(TARGET_SCREEN_WIDTH) $(TARGET_SCREEN_HEIGHT),$(space)) |
| 110 | |
| 111 | # determine the smaller dimension |
| 112 | TARGET_BOOTANIMATION_SIZE := $(shell \ |
| 113 | if [ $(TARGET_SCREEN_WIDTH) -lt $(TARGET_SCREEN_HEIGHT) ]; then \ |
| 114 | echo $(TARGET_SCREEN_WIDTH); \ |
| 115 | else \ |
| 116 | echo $(TARGET_SCREEN_HEIGHT); \ |
| 117 | fi ) |
| 118 | |
| 119 | # get a sorted list of the sizes |
| 120 | bootanimation_sizes := $(subst .zip,, $(shell ls vendor/slim/prebuilt/common/bootanimation)) |
| 121 | bootanimation_sizes := $(shell echo -e $(subst $(space),'\n',$(bootanimation_sizes)) | sort -rn) |
| 122 | |
| 123 | # find the appropriate size and set |
| 124 | define check_and_set_bootanimation |
| 125 | $(eval TARGET_BOOTANIMATION_NAME := $(shell \ |
| 126 | if [ -z "$(TARGET_BOOTANIMATION_NAME)" ]; then |
| 127 | if [ $(1) -le $(TARGET_BOOTANIMATION_SIZE) ]; then \ |
| 128 | echo $(1); \ |
| 129 | exit 0; \ |
| 130 | fi; |
| 131 | fi; |
| 132 | echo $(TARGET_BOOTANIMATION_NAME); )) |
| 133 | endef |
| 134 | $(foreach size,$(bootanimation_sizes), $(call check_and_set_bootanimation,$(size))) |
| 135 | |
| 136 | PRODUCT_COPY_FILES += \ |
| 137 | vendor/slim/prebuilt/common/bootanimation/$(TARGET_BOOTANIMATION_NAME).zip:system/media/bootanimation.zip |
| 138 | endif |
| 139 | |
Muhammed Nazim | 442a9a1 | 2013-04-11 13:35:59 +0200 | [diff] [blame] | 140 | # Versioning System |
Lars Greiss | b1ca695 | 2014-11-04 10:23:23 +0100 | [diff] [blame] | 141 | # SlimLP first version. |
Muhammed Nazim | 0c0d711 | 2014-12-03 20:59:27 +0100 | [diff] [blame] | 142 | PRODUCT_VERSION_MAJOR = 5.0.1 |
Lars Greiss | b1ca695 | 2014-11-04 10:23:23 +0100 | [diff] [blame] | 143 | PRODUCT_VERSION_MINOR = alpha |
Lars Greiss | 8808f46 | 2014-12-03 21:50:17 +0100 | [diff] [blame] | 144 | PRODUCT_VERSION_MAINTENANCE = 0.7 |
tortureduck | cf28216 | 2013-06-19 13:58:38 +0200 | [diff] [blame] | 145 | ifdef SLIM_BUILD_EXTRA |
| 146 | SLIM_POSTFIX := -$(SLIM_BUILD_EXTRA) |
| 147 | endif |
| 148 | ifndef SLIM_BUILD_TYPE |
| 149 | SLIM_BUILD_TYPE := UNOFFICIAL |
| 150 | PLATFORM_VERSION_CODENAME := UNOFFICIAL |
| 151 | SLIM_POSTFIX := -$(shell date +"%Y%m%d-%H%M") |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 152 | endif |
Muhammed Nazim | 55de548 | 2013-04-11 15:25:27 +0200 | [diff] [blame] | 153 | |
Griffin Millender | 7647329 | 2014-06-13 15:56:34 -0500 | [diff] [blame] | 154 | # SlimIRC |
| 155 | # export INCLUDE_SLIMIRC=1 for unofficial builds |
| 156 | ifneq ($(filter WEEKLY OFFICIAL,$(SLIM_BUILD_TYPE)),) |
| 157 | INCLUDE_SLIMIRC = 1 |
| 158 | endif |
| 159 | |
| 160 | ifneq ($(INCLUDE_SLIMIRC),) |
| 161 | PRODUCT_PACKAGES += SlimIRC |
| 162 | endif |
| 163 | |
tortureduck | cf28216 | 2013-06-19 13:58:38 +0200 | [diff] [blame] | 164 | # Set all versions |
| 165 | SLIM_VERSION := Slim-$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)-$(SLIM_BUILD_TYPE)$(SLIM_POSTFIX) |
| 166 | SLIM_MOD_VERSION := Slim-$(SLIM_BUILD)-$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)-$(SLIM_BUILD_TYPE)$(SLIM_POSTFIX) |
| 167 | |
Muhammed Nazim | 55de548 | 2013-04-11 15:25:27 +0200 | [diff] [blame] | 168 | PRODUCT_PROPERTY_OVERRIDES += \ |
tortureduck | cf28216 | 2013-06-19 13:58:38 +0200 | [diff] [blame] | 169 | BUILD_DISPLAY_ID=$(BUILD_ID) \ |
| 170 | slim.ota.version=$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE) \ |
Muhammed Nazim | 55de548 | 2013-04-11 15:25:27 +0200 | [diff] [blame] | 171 | ro.slim.version=$(SLIM_VERSION) \ |
Griffin Millender | dbf85ad | 2014-06-13 18:31:04 -0500 | [diff] [blame] | 172 | ro.modversion=$(SLIM_MOD_VERSION) \ |
| 173 | ro.slim.buildtype=$(SLIM_BUILD_TYPE) |
William Roberts | bf4b9b7 | 2013-08-15 13:08:41 -0700 | [diff] [blame] | 174 | |
Anthony King | 2890d6b | 2014-11-07 21:26:48 +0000 | [diff] [blame] | 175 | EXTENDED_POST_PROCESS_PROPS := vendor/slim/tools/slim_process_props.py |
| 176 | |