ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 1 | PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0 |
| 2 | |
| 3 | PRODUCT_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 Greiss | 5aca6d0 | 2013-02-01 02:47:17 +0100 | [diff] [blame] | 11 | ro.com.android.dataroaming=false |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 12 | |
Lars Greiss | 6daac0a | 2013-08-05 06:38:08 +0200 | [diff] [blame] | 13 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 14 | ro.build.selinux=1 |
| 15 | |
Michael Bestas | 7af8d5f | 2013-10-11 23:25:32 +0300 | [diff] [blame] | 16 | # Disable excessive dalvik debug messages |
| 17 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 18 | dalvik.vm.debug.alloc=0 |
| 19 | |
krarvind | 65545df | 2012-10-11 13:40:41 -0300 | [diff] [blame] | 20 | # Backup Tool |
| 21 | PRODUCT_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 Millender | a86c127 | 2013-05-25 04:11:55 -0500 | [diff] [blame] | 24 | 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 |
krarvind | 65545df | 2012-10-11 13:40:41 -0300 | [diff] [blame] | 27 | |
krarvind | 537ce9b | 2012-10-25 09:21:39 -0300 | [diff] [blame] | 28 | # SLIM-specific init file |
| 29 | PRODUCT_COPY_FILES += \ |
| 30 | vendor/slim/prebuilt/common/etc/init.local.rc:root/init.slim.rc |
| 31 | |
krarvind | 4cf5166 | 2012-12-04 10:44:10 +0000 | [diff] [blame] | 32 | # Copy latinime for gesture typing |
Lars Greiss | 9ea6e16 | 2013-11-02 21:21:56 +0100 | [diff] [blame] | 33 | PRODUCT_COPY_FILES += \ |
| 34 | vendor/slim/prebuilt/common/lib/libjni_latinime.so:system/lib/libjni_latinime.so |
krarvind | 4cf5166 | 2012-12-04 10:44:10 +0000 | [diff] [blame] | 35 | |
Ricardo Cerqueira | d1633c9 | 2013-07-17 16:45:20 +0100 | [diff] [blame] | 36 | # SELinux filesystem labels |
| 37 | PRODUCT_COPY_FILES += \ |
| 38 | vendor/slim/prebuilt/common/etc/init.d/50selinuxrelabel:system/etc/init.d/50selinuxrelabel |
| 39 | |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 40 | # Enable SIP+VoIP on all targets |
| 41 | PRODUCT_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. |
| 45 | PRODUCT_COPY_FILES += \ |
| 46 | vendor/slim/prebuilt/common/etc/mkshrc:system/etc/mkshrc \ |
Muhammed Nazim | 442a9a1 | 2013-04-11 13:35:59 +0200 | [diff] [blame] | 47 | vendor/slim/prebuilt/common/etc/sysctl.conf:system/etc/sysctl.conf |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 48 | |
| 49 | PRODUCT_COPY_FILES += \ |
Lars Greiss | b8fcbb5 | 2013-07-03 01:43:49 +0200 | [diff] [blame] | 50 | 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] | 51 | 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] | 52 | vendor/slim/prebuilt/common/bin/sysinit:system/bin/sysinit |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 53 | |
Lars Greiss | 679c82c | 2013-04-28 05:25:33 +0200 | [diff] [blame] | 54 | # Workaround for NovaLauncher zipalign fails |
| 55 | PRODUCT_COPY_FILES += \ |
| 56 | vendor/slim/prebuilt/common/app/NovaLauncher.apk:system/app/NovaLauncher.apk |
| 57 | |
prbassplayer | ecc0d60 | 2013-03-08 01:34:23 +0100 | [diff] [blame] | 58 | # Embed SuperUser |
| 59 | SUPERUSER_EMBEDDED := true |
| 60 | |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 61 | # Required packages |
| 62 | PRODUCT_PACKAGES += \ |
| 63 | Camera \ |
Josue Rivera | e258e86 | 2014-02-13 02:08:33 +0100 | [diff] [blame] | 64 | CellBroadcastReceiver \ |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 65 | Development \ |
| 66 | SpareParts \ |
prbassplayer | ecc0d60 | 2013-03-08 01:34:23 +0100 | [diff] [blame] | 67 | Superuser \ |
| 68 | su |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 69 | |
| 70 | # Optional packages |
| 71 | PRODUCT_PACKAGES += \ |
| 72 | Basic \ |
| 73 | HoloSpiralWallpaper \ |
| 74 | NoiseField \ |
| 75 | Galaxy4 \ |
| 76 | LiveWallpapersPicker \ |
| 77 | PhaseBeam |
| 78 | |
Lars Greiss | a66ee28 | 2013-09-07 04:59:31 +0200 | [diff] [blame] | 79 | # DSPManager |
| 80 | PRODUCT_PACKAGES += \ |
| 81 | DSPManager \ |
| 82 | libcyanogen-dsp \ |
| 83 | audio_effects.conf |
| 84 | |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 85 | # Extra Optional packages |
| 86 | PRODUCT_PACKAGES += \ |
Lars Greiss | 1698712 | 2013-03-13 14:25:14 +0100 | [diff] [blame] | 87 | SlimCenter \ |
Lars Greiss | 393d181 | 2013-11-20 16:02:38 +0100 | [diff] [blame] | 88 | SlimFileManager \ |
blk_jack | 666ccb9 | 2013-04-15 12:18:36 -0400 | [diff] [blame] | 89 | LatinIME \ |
cordell | 3ad230e | 2013-10-13 19:42:10 +0200 | [diff] [blame] | 90 | SlimIRC \ |
Griffin Millender | 6c1f51c | 2013-12-14 20:18:07 -0600 | [diff] [blame] | 91 | BluetoothExt \ |
| 92 | DashClock |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 93 | |
| 94 | # Extra tools |
| 95 | PRODUCT_PACKAGES += \ |
| 96 | openvpn \ |
| 97 | e2fsck \ |
| 98 | mke2fs \ |
| 99 | tune2fs |
| 100 | |
Koushik Dutta | 6ee67a1 | 2013-08-12 15:41:14 -0700 | [diff] [blame] | 101 | # easy way to extend to add more packages |
| 102 | -include vendor/extra/product.mk |
| 103 | |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 104 | PRODUCT_PACKAGE_OVERLAYS += vendor/slim/overlay/common |
| 105 | |
Lars Greiss | 565ed34 | 2013-08-12 15:35:19 +0200 | [diff] [blame] | 106 | # Boot animation include |
| 107 | ifneq ($(TARGET_SCREEN_WIDTH) $(TARGET_SCREEN_HEIGHT),$(space)) |
| 108 | |
| 109 | # determine the smaller dimension |
| 110 | TARGET_BOOTANIMATION_SIZE := $(shell \ |
| 111 | if [ $(TARGET_SCREEN_WIDTH) -lt $(TARGET_SCREEN_HEIGHT) ]; then \ |
| 112 | echo $(TARGET_SCREEN_WIDTH); \ |
| 113 | else \ |
| 114 | echo $(TARGET_SCREEN_HEIGHT); \ |
| 115 | fi ) |
| 116 | |
| 117 | # get a sorted list of the sizes |
| 118 | bootanimation_sizes := $(subst .zip,, $(shell ls vendor/slim/prebuilt/common/bootanimation)) |
| 119 | bootanimation_sizes := $(shell echo -e $(subst $(space),'\n',$(bootanimation_sizes)) | sort -rn) |
| 120 | |
| 121 | # find the appropriate size and set |
| 122 | define check_and_set_bootanimation |
| 123 | $(eval TARGET_BOOTANIMATION_NAME := $(shell \ |
| 124 | if [ -z "$(TARGET_BOOTANIMATION_NAME)" ]; then |
| 125 | if [ $(1) -le $(TARGET_BOOTANIMATION_SIZE) ]; then \ |
| 126 | echo $(1); \ |
| 127 | exit 0; \ |
| 128 | fi; |
| 129 | fi; |
| 130 | echo $(TARGET_BOOTANIMATION_NAME); )) |
| 131 | endef |
| 132 | $(foreach size,$(bootanimation_sizes), $(call check_and_set_bootanimation,$(size))) |
| 133 | |
| 134 | PRODUCT_COPY_FILES += \ |
| 135 | vendor/slim/prebuilt/common/bootanimation/$(TARGET_BOOTANIMATION_NAME).zip:system/media/bootanimation.zip |
| 136 | endif |
| 137 | |
Muhammed Nazim | 442a9a1 | 2013-04-11 13:35:59 +0200 | [diff] [blame] | 138 | # Versioning System |
Lars Greiss | caa545d | 2014-03-28 14:44:13 +0100 | [diff] [blame] | 139 | # KitKat SlimKat freeze code |
Lars Greiss | 2dfc2ce | 2013-12-11 22:32:13 +0100 | [diff] [blame] | 140 | PRODUCT_VERSION_MAJOR = 4.4.2 |
Lars Greiss | 046ceec | 2014-01-26 20:07:58 +0100 | [diff] [blame] | 141 | PRODUCT_VERSION_MINOR = build |
Josue Rivera | cf460ad | 2014-04-28 00:58:47 +0200 | [diff] [blame^] | 142 | PRODUCT_VERSION_MAINTENANCE = 4.8 |
tortureduck | cf28216 | 2013-06-19 13:58:38 +0200 | [diff] [blame] | 143 | ifdef SLIM_BUILD_EXTRA |
| 144 | SLIM_POSTFIX := -$(SLIM_BUILD_EXTRA) |
| 145 | endif |
| 146 | ifndef SLIM_BUILD_TYPE |
| 147 | SLIM_BUILD_TYPE := UNOFFICIAL |
| 148 | PLATFORM_VERSION_CODENAME := UNOFFICIAL |
| 149 | SLIM_POSTFIX := -$(shell date +"%Y%m%d-%H%M") |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 150 | endif |
Muhammed Nazim | 55de548 | 2013-04-11 15:25:27 +0200 | [diff] [blame] | 151 | |
tortureduck | cf28216 | 2013-06-19 13:58:38 +0200 | [diff] [blame] | 152 | # Set all versions |
| 153 | SLIM_VERSION := Slim-$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)-$(SLIM_BUILD_TYPE)$(SLIM_POSTFIX) |
| 154 | SLIM_MOD_VERSION := Slim-$(SLIM_BUILD)-$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)-$(SLIM_BUILD_TYPE)$(SLIM_POSTFIX) |
| 155 | |
Muhammed Nazim | 55de548 | 2013-04-11 15:25:27 +0200 | [diff] [blame] | 156 | PRODUCT_PROPERTY_OVERRIDES += \ |
tortureduck | cf28216 | 2013-06-19 13:58:38 +0200 | [diff] [blame] | 157 | BUILD_DISPLAY_ID=$(BUILD_ID) \ |
| 158 | slim.ota.version=$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE) \ |
Muhammed Nazim | 55de548 | 2013-04-11 15:25:27 +0200 | [diff] [blame] | 159 | ro.slim.version=$(SLIM_VERSION) \ |
| 160 | ro.modversion=$(SLIM_MOD_VERSION) |
William Roberts | bf4b9b7 | 2013-08-15 13:08:41 -0700 | [diff] [blame] | 161 | |