Alberto97 | 0ceb834 | 2015-01-02 14:43:15 +0100 | [diff] [blame] | 1 | PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0 |
| 2 | |
| 3 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 4 | keyguard.no_require_sim=true \ |
| 5 | ro.com.google.clientidbase=android-google \ |
| 6 | ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html \ |
| 7 | ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html \ |
| 8 | ro.com.android.wifi-watchlist=GoogleGuest \ |
| 9 | ro.setupwizard.enterprise_mode=1 \ |
| 10 | ro.com.android.dateformat=MM-dd-yyyy \ |
beanstown106 | ca4a0d2 | 2016-12-16 23:56:48 -0500 | [diff] [blame] | 11 | ro.com.android.dataroaming=false \ |
| 12 | ro.opa.eligible_device=true |
Alberto97 | 0ceb834 | 2015-01-02 14:43:15 +0100 | [diff] [blame] | 13 | |
| 14 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 15 | ro.build.selinux=1 |
| 16 | |
| 17 | # Thank you, please drive thru! |
| 18 | PRODUCT_PROPERTY_OVERRIDES += persist.sys.dun.override=0 |
| 19 | |
BitO BSessiOn | 60f6dd3 | 2016-09-11 14:05:33 +0200 | [diff] [blame^] | 20 | # Bootanimation support |
| 21 | ifneq ($(TARGET_SCREEN_WIDTH) $(TARGET_SCREEN_HEIGHT),$(space)) |
| 22 | # determine the smaller dimension |
| 23 | TARGET_BOOTANIMATION_SIZE := $(shell \ |
| 24 | if [ $(TARGET_SCREEN_WIDTH) -lt $(TARGET_SCREEN_HEIGHT) ]; then \ |
| 25 | echo $(TARGET_SCREEN_WIDTH); \ |
| 26 | else \ |
| 27 | echo $(TARGET_SCREEN_HEIGHT); \ |
| 28 | fi ) |
| 29 | |
| 30 | # get a sorted list of the sizes |
| 31 | bootanimation_sizes := $(subst .zip,, $(shell ls vendor/bliss/prebuilt/common/bootanimation)) |
| 32 | bootanimation_sizes := $(shell echo -e $(subst $(space),'\n',$(bootanimation_sizes)) | sort -rn) |
| 33 | |
| 34 | # find the appropriate size and set |
| 35 | define check_and_set_bootanimation |
| 36 | $(eval TARGET_BOOTANIMATION_NAME := $(shell \ |
| 37 | if [ -z "$(TARGET_BOOTANIMATION_NAME)" ]; then |
| 38 | if [ $(1) -le $(TARGET_BOOTANIMATION_SIZE) ]; then \ |
| 39 | echo $(1); \ |
| 40 | exit 0; \ |
| 41 | fi; |
| 42 | fi; |
| 43 | echo $(TARGET_BOOTANIMATION_NAME); )) |
| 44 | endef |
| 45 | |
| 46 | $(foreach size,$(bootanimation_sizes), $(call check_and_set_bootanimation,$(size))) |
| 47 | |
| 48 | ifeq ($(TARGET_BOOTANIMATION_HALF_RES),true) |
| 49 | PRODUCT_BOOTANIMATION := vendor/bliss/prebuilt/common/bootanimation/halfres/$(TARGET_BOOTANIMATION_NAME).zip |
| 50 | else |
| 51 | PRODUCT_BOOTANIMATION := vendor/bliss/prebuilt/common/bootanimation/$(TARGET_BOOTANIMATION_NAME).zip |
| 52 | endif |
| 53 | |
Alberto97 | 0ceb834 | 2015-01-02 14:43:15 +0100 | [diff] [blame] | 54 | PRODUCT_COPY_FILES += \ |
BitO BSessiOn | 60f6dd3 | 2016-09-11 14:05:33 +0200 | [diff] [blame^] | 55 | $(PRODUCT_BOOTANIMATION):system/media/bootanimation.zip |
| 56 | endif |
Alberto97 | 0ceb834 | 2015-01-02 14:43:15 +0100 | [diff] [blame] | 57 | |
| 58 | # init.d support |
| 59 | PRODUCT_COPY_FILES += \ |
Jackeagle | 5c53cae | 2016-10-25 15:13:35 +0530 | [diff] [blame] | 60 | vendor/bliss/prebuilt/common/bin/sysinit:system/bin/sysinit \ |
| 61 | vendor/bliss/prebuilt/common/etc/init.d/00banner:system/etc/init.d/00banner \ |
| 62 | vendor/bliss/prebuilt/common/etc/init.d/90userinit:system/etc/init.d/90userinit |
Alberto97 | 0ceb834 | 2015-01-02 14:43:15 +0100 | [diff] [blame] | 63 | |
| 64 | # Init file |
| 65 | PRODUCT_COPY_FILES += \ |
Jackeagle | 5c53cae | 2016-10-25 15:13:35 +0530 | [diff] [blame] | 66 | vendor/bliss/prebuilt/common/etc/init.bliss.rc:root/init.bliss.rc |
Alberto97 | 0ceb834 | 2015-01-02 14:43:15 +0100 | [diff] [blame] | 67 | |
| 68 | # Bring in camera effects |
| 69 | PRODUCT_COPY_FILES += \ |
Jackeagle | 5c53cae | 2016-10-25 15:13:35 +0530 | [diff] [blame] | 70 | vendor/bliss/prebuilt/common/media/LMprec_508.emd:system/media/LMprec_508.emd \ |
| 71 | vendor/bliss/prebuilt/common/media/PFFprec_600.emd:system/media/PFFprec_600.emd |
Alberto97 | 0ceb834 | 2015-01-02 14:43:15 +0100 | [diff] [blame] | 72 | |
| 73 | # Enable SIP+VoIP on all targets |
| 74 | PRODUCT_COPY_FILES += \ |
| 75 | frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml |
| 76 | |
| 77 | # Enable wireless Xbox 360 controller support |
| 78 | PRODUCT_COPY_FILES += \ |
| 79 | frameworks/base/data/keyboards/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_0719.kl |
| 80 | |
Alberto97 | 0ceb834 | 2015-01-02 14:43:15 +0100 | [diff] [blame] | 81 | # World APN list |
| 82 | PRODUCT_COPY_FILES += \ |
Jackeagle | 5c53cae | 2016-10-25 15:13:35 +0530 | [diff] [blame] | 83 | vendor/bliss/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml |
Alberto97 | 0ceb834 | 2015-01-02 14:43:15 +0100 | [diff] [blame] | 84 | |
Alberto97 | 0ceb834 | 2015-01-02 14:43:15 +0100 | [diff] [blame] | 85 | # Selective SPN list for operator number who has the problem. |
| 86 | PRODUCT_COPY_FILES += \ |
Jackeagle | 5c53cae | 2016-10-25 15:13:35 +0530 | [diff] [blame] | 87 | vendor/bliss/prebuilt/common/etc/selective-spn-conf.xml:system/etc/selective-spn-conf.xml |
Alberto97 | 0ceb834 | 2015-01-02 14:43:15 +0100 | [diff] [blame] | 88 | |
Alberto97 | 0ceb834 | 2015-01-02 14:43:15 +0100 | [diff] [blame] | 89 | PRODUCT_PACKAGE_OVERLAYS += \ |
Jackeagle | 5c53cae | 2016-10-25 15:13:35 +0530 | [diff] [blame] | 90 | vendor/bliss/overlay/common |
Alberto97 | 0ceb834 | 2015-01-02 14:43:15 +0100 | [diff] [blame] | 91 | |
beanstown106 | 51b99e8 | 2015-12-26 04:15:07 -0500 | [diff] [blame] | 92 | # Proprietary latinime libs needed for Keyboard swyping |
| 93 | ifneq ($(filter arm64,$(TARGET_ARCH)),) |
| 94 | PRODUCT_COPY_FILES += \ |
Jackeagle | 5c53cae | 2016-10-25 15:13:35 +0530 | [diff] [blame] | 95 | vendor/bliss/prebuilt/common/lib/libjni_latinime.so:system/lib/libjni_latinime.so |
beanstown106 | 51b99e8 | 2015-12-26 04:15:07 -0500 | [diff] [blame] | 96 | else |
| 97 | PRODUCT_COPY_FILES += \ |
Jackeagle | 5c53cae | 2016-10-25 15:13:35 +0530 | [diff] [blame] | 98 | vendor/bliss/prebuilt/common/lib64/libjni_latinime.so:system/lib64/libjni_latinime.so |
beanstown106 | 51b99e8 | 2015-12-26 04:15:07 -0500 | [diff] [blame] | 99 | endif |
| 100 | |
Alberto97 | 0ceb834 | 2015-01-02 14:43:15 +0100 | [diff] [blame] | 101 | # by default, do not update the recovery with system updates |
| 102 | PRODUCT_PROPERTY_OVERRIDES += persist.sys.recovery_update=false |
| 103 | |
Chirayu Desai | 9819bc9 | 2013-03-20 16:17:17 +0530 | [diff] [blame] | 104 | ifneq ($(TARGET_BUILD_VARIANT),eng) |
Chirayu Desai | 6efc7f8 | 2013-02-15 21:16:39 +0530 | [diff] [blame] | 105 | # Enable ADB authentication |
| 106 | ADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=1 |
Chirayu Desai | 9819bc9 | 2013-03-20 16:17:17 +0530 | [diff] [blame] | 107 | endif |
Chirayu Desai | 6efc7f8 | 2013-02-15 21:16:39 +0530 | [diff] [blame] | 108 | |
Joe Maples | 2dfa0fd | 2014-12-03 21:09:44 -0500 | [diff] [blame] | 109 | # Squisher Location |
| 110 | SQUISHER_SCRIPT := vendor/bliss/tools/squisher |
| 111 | |
Joe Maples | 2c83ab0 | 2017-01-05 19:14:55 -0500 | [diff] [blame] | 112 | # Compile libhwui in performance mode |
| 113 | HWUI_COMPILE_FOR_PERF := true |
| 114 | |
Jackeagle | b99e41d | 2017-02-04 20:17:05 +0530 | [diff] [blame] | 115 | # Bliss Packages |
| 116 | -include vendor/bliss/config/bliss_packages.mk |
| 117 | |
| 118 | # Bliss Versioning System |
| 119 | -include vendor/bliss/config/versions.mk |
| 120 | |
Alberto97 | 0ceb834 | 2015-01-02 14:43:15 +0100 | [diff] [blame] | 121 | $(call inherit-product-if-exists, vendor/extra/product.mk) |