blob: 39ee67858270f07709ac3302dd7a4d007dfb9440 [file] [log] [blame]
Alberto970ceb8342015-01-02 14:43:15 +01001PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
2
3PRODUCT_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 \
beanstown106ca4a0d22016-12-16 23:56:48 -050011 ro.com.android.dataroaming=false \
12 ro.opa.eligible_device=true
Alberto970ceb8342015-01-02 14:43:15 +010013
14PRODUCT_PROPERTY_OVERRIDES += \
15 ro.build.selinux=1
16
17# Thank you, please drive thru!
18PRODUCT_PROPERTY_OVERRIDES += persist.sys.dun.override=0
19
BitO BSessiOn60f6dd32016-09-11 14:05:33 +020020 # Bootanimation support
21ifneq ($(TARGET_SCREEN_WIDTH) $(TARGET_SCREEN_HEIGHT),$(space))
22# determine the smaller dimension
23TARGET_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
31bootanimation_sizes := $(subst .zip,, $(shell ls vendor/bliss/prebuilt/common/bootanimation))
32bootanimation_sizes := $(shell echo -e $(subst $(space),'\n',$(bootanimation_sizes)) | sort -rn)
33
34# find the appropriate size and set
35define 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); ))
44endef
45
46$(foreach size,$(bootanimation_sizes), $(call check_and_set_bootanimation,$(size)))
47
48ifeq ($(TARGET_BOOTANIMATION_HALF_RES),true)
49PRODUCT_BOOTANIMATION := vendor/bliss/prebuilt/common/bootanimation/halfres/$(TARGET_BOOTANIMATION_NAME).zip
50else
51PRODUCT_BOOTANIMATION := vendor/bliss/prebuilt/common/bootanimation/$(TARGET_BOOTANIMATION_NAME).zip
52endif
53
Alberto970ceb8342015-01-02 14:43:15 +010054PRODUCT_COPY_FILES += \
BitO BSessiOn60f6dd32016-09-11 14:05:33 +020055 $(PRODUCT_BOOTANIMATION):system/media/bootanimation.zip
56endif
Alberto970ceb8342015-01-02 14:43:15 +010057
58# init.d support
59PRODUCT_COPY_FILES += \
Jackeagle5c53cae2016-10-25 15:13:35 +053060 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
Alberto970ceb8342015-01-02 14:43:15 +010063
64# Init file
65PRODUCT_COPY_FILES += \
Jackeagle5c53cae2016-10-25 15:13:35 +053066 vendor/bliss/prebuilt/common/etc/init.bliss.rc:root/init.bliss.rc
Alberto970ceb8342015-01-02 14:43:15 +010067
68# Bring in camera effects
69PRODUCT_COPY_FILES += \
Jackeagle5c53cae2016-10-25 15:13:35 +053070 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
Alberto970ceb8342015-01-02 14:43:15 +010072
73# Enable SIP+VoIP on all targets
74PRODUCT_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
78PRODUCT_COPY_FILES += \
79 frameworks/base/data/keyboards/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_0719.kl
80
Alberto970ceb8342015-01-02 14:43:15 +010081# World APN list
82PRODUCT_COPY_FILES += \
Jackeagle5c53cae2016-10-25 15:13:35 +053083 vendor/bliss/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml
Alberto970ceb8342015-01-02 14:43:15 +010084
Alberto970ceb8342015-01-02 14:43:15 +010085# Selective SPN list for operator number who has the problem.
86PRODUCT_COPY_FILES += \
Jackeagle5c53cae2016-10-25 15:13:35 +053087 vendor/bliss/prebuilt/common/etc/selective-spn-conf.xml:system/etc/selective-spn-conf.xml
Alberto970ceb8342015-01-02 14:43:15 +010088
Alberto970ceb8342015-01-02 14:43:15 +010089PRODUCT_PACKAGE_OVERLAYS += \
Jackeagle5c53cae2016-10-25 15:13:35 +053090 vendor/bliss/overlay/common
Alberto970ceb8342015-01-02 14:43:15 +010091
beanstown10651b99e82015-12-26 04:15:07 -050092# Proprietary latinime libs needed for Keyboard swyping
93ifneq ($(filter arm64,$(TARGET_ARCH)),)
94PRODUCT_COPY_FILES += \
Jackeagle5c53cae2016-10-25 15:13:35 +053095 vendor/bliss/prebuilt/common/lib/libjni_latinime.so:system/lib/libjni_latinime.so
beanstown10651b99e82015-12-26 04:15:07 -050096else
97PRODUCT_COPY_FILES += \
Jackeagle5c53cae2016-10-25 15:13:35 +053098 vendor/bliss/prebuilt/common/lib64/libjni_latinime.so:system/lib64/libjni_latinime.so
beanstown10651b99e82015-12-26 04:15:07 -050099endif
100
Alberto970ceb8342015-01-02 14:43:15 +0100101# by default, do not update the recovery with system updates
102PRODUCT_PROPERTY_OVERRIDES += persist.sys.recovery_update=false
103
Chirayu Desai9819bc92013-03-20 16:17:17 +0530104ifneq ($(TARGET_BUILD_VARIANT),eng)
Chirayu Desai6efc7f82013-02-15 21:16:39 +0530105# Enable ADB authentication
106ADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=1
Chirayu Desai9819bc92013-03-20 16:17:17 +0530107endif
Chirayu Desai6efc7f82013-02-15 21:16:39 +0530108
Joe Maples2dfa0fd2014-12-03 21:09:44 -0500109# Squisher Location
110SQUISHER_SCRIPT := vendor/bliss/tools/squisher
111
Joe Maples2c83ab02017-01-05 19:14:55 -0500112# Compile libhwui in performance mode
113HWUI_COMPILE_FOR_PERF := true
114
Jackeagleb99e41d2017-02-04 20:17:05 +0530115# Bliss Packages
116-include vendor/bliss/config/bliss_packages.mk
117
118# Bliss Versioning System
119-include vendor/bliss/config/versions.mk
120
electrikjesus7fdc6132017-01-06 20:52:53 -0500121$(call inherit-product-if-exists, vendor/bliss/prebuilt/common/app/Android.mk)
122$(call inherit-product-if-exists, vendor/bliss/prebuilt/common/privapp/Android.mk)
Alberto970ceb8342015-01-02 14:43:15 +0100123$(call inherit-product-if-exists, vendor/extra/product.mk)