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 | |
krarvind | 65545df | 2012-10-11 13:40:41 -0300 | [diff] [blame] | 16 | # Backup Tool |
| 17 | PRODUCT_COPY_FILES += \ |
| 18 | vendor/slim/prebuilt/common/bin/backuptool.sh:system/bin/backuptool.sh \ |
| 19 | vendor/slim/prebuilt/common/bin/backuptool.functions:system/bin/backuptool.functions \ |
Griffin Millender | a86c127 | 2013-05-25 04:11:55 -0500 | [diff] [blame] | 20 | vendor/slim/prebuilt/common/bin/50-slim.sh:system/addon.d/50-slim.sh \ |
| 21 | vendor/slim/prebuilt/common/bin/99-backup.sh:system/addon.d/99-backup.sh \ |
| 22 | vendor/slim/prebuilt/common/etc/backup.conf:system/etc/backup.conf |
krarvind | 65545df | 2012-10-11 13:40:41 -0300 | [diff] [blame] | 23 | |
krarvind | 537ce9b | 2012-10-25 09:21:39 -0300 | [diff] [blame] | 24 | # SLIM-specific init file |
| 25 | PRODUCT_COPY_FILES += \ |
| 26 | vendor/slim/prebuilt/common/etc/init.local.rc:root/init.slim.rc |
| 27 | |
krarvind | 4cf5166 | 2012-12-04 10:44:10 +0000 | [diff] [blame] | 28 | # Copy latinime for gesture typing |
| 29 | PRODUCT_COPY_FILES += \ |
| 30 | vendor/slim/prebuilt/common/lib/libjni_latinime.so:system/lib/libjni_latinime.so |
| 31 | |
Ricardo Cerqueira | d1633c9 | 2013-07-17 16:45:20 +0100 | [diff] [blame^] | 32 | # SELinux filesystem labels |
| 33 | PRODUCT_COPY_FILES += \ |
| 34 | vendor/slim/prebuilt/common/etc/init.d/50selinuxrelabel:system/etc/init.d/50selinuxrelabel |
| 35 | |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 36 | # Compcache/Zram support |
| 37 | PRODUCT_COPY_FILES += \ |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 38 | vendor/slim/prebuilt/common/bin/compcache:system/bin/compcache \ |
| 39 | vendor/slim/prebuilt/common/bin/handle_compcache:system/bin/handle_compcache |
| 40 | |
Muhammed Nazim | 9fa482b | 2013-04-12 13:51:07 +0200 | [diff] [blame] | 41 | # Audio Config for DSPManager |
| 42 | PRODUCT_COPY_FILES += \ |
| 43 | vendor/slim/prebuilt/common/vendor/etc/audio_effects.conf:system/vendor/etc/audio_effects.conf |
ar | faa54c1 | 2012-09-05 16:48:18 -0300 | [diff] [blame] | 44 | #LOCAL SLIM CHANGES - END |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 45 | |
| 46 | # Enable SIP+VoIP on all targets |
| 47 | PRODUCT_COPY_FILES += \ |
| 48 | frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml |
| 49 | |
| 50 | # Don't export PS1 in /system/etc/mkshrc. |
| 51 | PRODUCT_COPY_FILES += \ |
| 52 | vendor/slim/prebuilt/common/etc/mkshrc:system/etc/mkshrc \ |
Muhammed Nazim | 442a9a1 | 2013-04-11 13:35:59 +0200 | [diff] [blame] | 53 | vendor/slim/prebuilt/common/etc/sysctl.conf:system/etc/sysctl.conf |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 54 | |
| 55 | PRODUCT_COPY_FILES += \ |
Lars Greiss | b8fcbb5 | 2013-07-03 01:43:49 +0200 | [diff] [blame] | 56 | 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] | 57 | 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] | 58 | vendor/slim/prebuilt/common/bin/sysinit:system/bin/sysinit |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 59 | |
Lars Greiss | 679c82c | 2013-04-28 05:25:33 +0200 | [diff] [blame] | 60 | # Workaround for NovaLauncher zipalign fails |
| 61 | PRODUCT_COPY_FILES += \ |
| 62 | vendor/slim/prebuilt/common/app/NovaLauncher.apk:system/app/NovaLauncher.apk |
| 63 | |
prbassplayer | ecc0d60 | 2013-03-08 01:34:23 +0100 | [diff] [blame] | 64 | # Embed SuperUser |
| 65 | SUPERUSER_EMBEDDED := true |
| 66 | |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 67 | # Required packages |
| 68 | PRODUCT_PACKAGES += \ |
| 69 | Camera \ |
| 70 | Development \ |
| 71 | SpareParts \ |
prbassplayer | ecc0d60 | 2013-03-08 01:34:23 +0100 | [diff] [blame] | 72 | Superuser \ |
| 73 | su |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 74 | |
| 75 | # Optional packages |
| 76 | PRODUCT_PACKAGES += \ |
| 77 | Basic \ |
| 78 | HoloSpiralWallpaper \ |
| 79 | NoiseField \ |
| 80 | Galaxy4 \ |
| 81 | LiveWallpapersPicker \ |
| 82 | PhaseBeam |
| 83 | |
| 84 | # Extra Optional packages |
| 85 | PRODUCT_PACKAGES += \ |
Lars Greiss | 89cfcfc | 2013-02-23 02:28:10 +0100 | [diff] [blame] | 86 | DashClock \ |
mnazim | 68b2e5f | 2012-12-28 14:36:23 -0700 | [diff] [blame] | 87 | SlimFileManager \ |
Lars Greiss | 1698712 | 2013-03-13 14:25:14 +0100 | [diff] [blame] | 88 | SlimCenter \ |
blk_jack | 666ccb9 | 2013-04-15 12:18:36 -0400 | [diff] [blame] | 89 | LatinIME \ |
| 90 | SlimIRC |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 91 | |
| 92 | # Extra tools |
| 93 | PRODUCT_PACKAGES += \ |
| 94 | openvpn \ |
| 95 | e2fsck \ |
| 96 | mke2fs \ |
| 97 | tune2fs |
| 98 | |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 99 | PRODUCT_PACKAGE_OVERLAYS += vendor/slim/overlay/common |
| 100 | |
| 101 | # T-Mobile theme engine |
| 102 | include vendor/slim/config/themes_common.mk |
Muhammed Nazim | 442a9a1 | 2013-04-11 13:35:59 +0200 | [diff] [blame] | 103 | |
Lars Greiss | 565ed34 | 2013-08-12 15:35:19 +0200 | [diff] [blame] | 104 | # Boot animation include |
| 105 | ifneq ($(TARGET_SCREEN_WIDTH) $(TARGET_SCREEN_HEIGHT),$(space)) |
| 106 | |
| 107 | # determine the smaller dimension |
| 108 | TARGET_BOOTANIMATION_SIZE := $(shell \ |
| 109 | if [ $(TARGET_SCREEN_WIDTH) -lt $(TARGET_SCREEN_HEIGHT) ]; then \ |
| 110 | echo $(TARGET_SCREEN_WIDTH); \ |
| 111 | else \ |
| 112 | echo $(TARGET_SCREEN_HEIGHT); \ |
| 113 | fi ) |
| 114 | |
| 115 | # get a sorted list of the sizes |
| 116 | bootanimation_sizes := $(subst .zip,, $(shell ls vendor/slim/prebuilt/common/bootanimation)) |
| 117 | bootanimation_sizes := $(shell echo -e $(subst $(space),'\n',$(bootanimation_sizes)) | sort -rn) |
| 118 | |
| 119 | # find the appropriate size and set |
| 120 | define check_and_set_bootanimation |
| 121 | $(eval TARGET_BOOTANIMATION_NAME := $(shell \ |
| 122 | if [ -z "$(TARGET_BOOTANIMATION_NAME)" ]; then |
| 123 | if [ $(1) -le $(TARGET_BOOTANIMATION_SIZE) ]; then \ |
| 124 | echo $(1); \ |
| 125 | exit 0; \ |
| 126 | fi; |
| 127 | fi; |
| 128 | echo $(TARGET_BOOTANIMATION_NAME); )) |
| 129 | endef |
| 130 | $(foreach size,$(bootanimation_sizes), $(call check_and_set_bootanimation,$(size))) |
| 131 | |
| 132 | PRODUCT_COPY_FILES += \ |
| 133 | vendor/slim/prebuilt/common/bootanimation/$(TARGET_BOOTANIMATION_NAME).zip:system/media/bootanimation.zip |
| 134 | endif |
| 135 | |
Muhammed Nazim | 442a9a1 | 2013-04-11 13:35:59 +0200 | [diff] [blame] | 136 | # Versioning System |
Lars Greiss | 9dca756 | 2013-08-16 21:39:21 +0200 | [diff] [blame] | 137 | # Prepare for 4.3 weekly beta.2 |
Lars Greiss | 07e1472 | 2013-07-28 06:31:40 +0200 | [diff] [blame] | 138 | PRODUCT_VERSION_MAJOR = 4.3 |
krarvind | ecde695 | 2013-02-28 01:02:13 +0100 | [diff] [blame] | 139 | PRODUCT_VERSION_MINOR = build |
Lars Greiss | 9dca756 | 2013-08-16 21:39:21 +0200 | [diff] [blame] | 140 | PRODUCT_VERSION_MAINTENANCE = beta.2 |
tortureduck | cf28216 | 2013-06-19 13:58:38 +0200 | [diff] [blame] | 141 | ifdef SLIM_BUILD_EXTRA |
| 142 | SLIM_POSTFIX := -$(SLIM_BUILD_EXTRA) |
| 143 | endif |
| 144 | ifndef SLIM_BUILD_TYPE |
| 145 | SLIM_BUILD_TYPE := UNOFFICIAL |
| 146 | PLATFORM_VERSION_CODENAME := UNOFFICIAL |
| 147 | SLIM_POSTFIX := -$(shell date +"%Y%m%d-%H%M") |
ar | aa34220 | 2012-09-04 14:59:34 -0300 | [diff] [blame] | 148 | endif |
Muhammed Nazim | 55de548 | 2013-04-11 15:25:27 +0200 | [diff] [blame] | 149 | |
tortureduck | cf28216 | 2013-06-19 13:58:38 +0200 | [diff] [blame] | 150 | # Set all versions |
| 151 | SLIM_VERSION := Slim-$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)-$(SLIM_BUILD_TYPE)$(SLIM_POSTFIX) |
| 152 | SLIM_MOD_VERSION := Slim-$(SLIM_BUILD)-$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)-$(SLIM_BUILD_TYPE)$(SLIM_POSTFIX) |
| 153 | |
Muhammed Nazim | 55de548 | 2013-04-11 15:25:27 +0200 | [diff] [blame] | 154 | PRODUCT_PROPERTY_OVERRIDES += \ |
tortureduck | cf28216 | 2013-06-19 13:58:38 +0200 | [diff] [blame] | 155 | BUILD_DISPLAY_ID=$(BUILD_ID) \ |
| 156 | slim.ota.version=$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE) \ |
Muhammed Nazim | 55de548 | 2013-04-11 15:25:27 +0200 | [diff] [blame] | 157 | ro.slim.version=$(SLIM_VERSION) \ |
| 158 | ro.modversion=$(SLIM_MOD_VERSION) |