blob: 491c5e59071802be5cbfb950d88291fda6dd490b [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
Jackeagle2e87a9a2017-10-01 05:24:50 -040020# Backup Tool
21PRODUCT_COPY_FILES += \
22 vendor/bliss/prebuilt/common/bin/backuptool.sh:install/bin/backuptool.sh \
23 vendor/bliss/prebuilt/common/bin/backuptool.functions:install/bin/backuptool.functions \
24 vendor/bliss/prebuilt/common/bin/blacklist:system/addon.d/blacklist \
25 vendor/bliss/prebuilt/common/bin/whitelist:system/addon.d/whitelist \
Aren Clegg0aeb1442017-11-04 14:27:34 -070026 vendor/bliss/prebuilt/bin/blacklist:system/addon.d/blacklist
Jackeagle2e87a9a2017-10-01 05:24:50 -040027
BitO BSessiOn60f6dd32016-09-11 14:05:33 +020028 # Bootanimation support
29ifneq ($(TARGET_SCREEN_WIDTH) $(TARGET_SCREEN_HEIGHT),$(space))
30# determine the smaller dimension
31TARGET_BOOTANIMATION_SIZE := $(shell \
32 if [ $(TARGET_SCREEN_WIDTH) -lt $(TARGET_SCREEN_HEIGHT) ]; then \
33 echo $(TARGET_SCREEN_WIDTH); \
34 else \
35 echo $(TARGET_SCREEN_HEIGHT); \
36 fi )
37
38# get a sorted list of the sizes
39bootanimation_sizes := $(subst .zip,, $(shell ls vendor/bliss/prebuilt/common/bootanimation))
40bootanimation_sizes := $(shell echo -e $(subst $(space),'\n',$(bootanimation_sizes)) | sort -rn)
41
42# find the appropriate size and set
43define check_and_set_bootanimation
44$(eval TARGET_BOOTANIMATION_NAME := $(shell \
45 if [ -z "$(TARGET_BOOTANIMATION_NAME)" ]; then
46 if [ $(1) -le $(TARGET_BOOTANIMATION_SIZE) ]; then \
47 echo $(1); \
48 exit 0; \
49 fi;
50 fi;
51 echo $(TARGET_BOOTANIMATION_NAME); ))
52endef
53
54$(foreach size,$(bootanimation_sizes), $(call check_and_set_bootanimation,$(size)))
55
56ifeq ($(TARGET_BOOTANIMATION_HALF_RES),true)
57PRODUCT_BOOTANIMATION := vendor/bliss/prebuilt/common/bootanimation/halfres/$(TARGET_BOOTANIMATION_NAME).zip
58else
59PRODUCT_BOOTANIMATION := vendor/bliss/prebuilt/common/bootanimation/$(TARGET_BOOTANIMATION_NAME).zip
60endif
61
Alberto970ceb8342015-01-02 14:43:15 +010062PRODUCT_COPY_FILES += \
BitO BSessiOn60f6dd32016-09-11 14:05:33 +020063 $(PRODUCT_BOOTANIMATION):system/media/bootanimation.zip
64endif
Alberto970ceb8342015-01-02 14:43:15 +010065
66# init.d support
67PRODUCT_COPY_FILES += \
Jackeagle5c53cae2016-10-25 15:13:35 +053068 vendor/bliss/prebuilt/common/bin/sysinit:system/bin/sysinit \
69 vendor/bliss/prebuilt/common/etc/init.d/00banner:system/etc/init.d/00banner \
70 vendor/bliss/prebuilt/common/etc/init.d/90userinit:system/etc/init.d/90userinit
Alberto970ceb8342015-01-02 14:43:15 +010071
72# Init file
73PRODUCT_COPY_FILES += \
Jackeagle5c53cae2016-10-25 15:13:35 +053074 vendor/bliss/prebuilt/common/etc/init.bliss.rc:root/init.bliss.rc
Alberto970ceb8342015-01-02 14:43:15 +010075
76# Bring in camera effects
77PRODUCT_COPY_FILES += \
Jackeagle5c53cae2016-10-25 15:13:35 +053078 vendor/bliss/prebuilt/common/media/LMprec_508.emd:system/media/LMprec_508.emd \
79 vendor/bliss/prebuilt/common/media/PFFprec_600.emd:system/media/PFFprec_600.emd
Alberto970ceb8342015-01-02 14:43:15 +010080
81# Enable SIP+VoIP on all targets
82PRODUCT_COPY_FILES += \
83 frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
84
85# Enable wireless Xbox 360 controller support
86PRODUCT_COPY_FILES += \
87 frameworks/base/data/keyboards/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_0719.kl
88
Alberto970ceb8342015-01-02 14:43:15 +010089# World APN list
90PRODUCT_COPY_FILES += \
Jackeagle5c53cae2016-10-25 15:13:35 +053091 vendor/bliss/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml
Alberto970ceb8342015-01-02 14:43:15 +010092
Alberto970ceb8342015-01-02 14:43:15 +010093# Selective SPN list for operator number who has the problem.
94PRODUCT_COPY_FILES += \
Jackeagle5c53cae2016-10-25 15:13:35 +053095 vendor/bliss/prebuilt/common/etc/selective-spn-conf.xml:system/etc/selective-spn-conf.xml
Alberto970ceb8342015-01-02 14:43:15 +010096
Alberto970ceb8342015-01-02 14:43:15 +010097PRODUCT_PACKAGE_OVERLAYS += \
Jackeagle5c53cae2016-10-25 15:13:35 +053098 vendor/bliss/overlay/common
Alberto970ceb8342015-01-02 14:43:15 +010099
Jackeaglec965ff92017-08-27 02:49:00 -0400100# Proprietary latinime libs needed for Keyboard swyping
beanstown10651b99e82015-12-26 04:15:07 -0500101ifneq ($(filter arm64,$(TARGET_ARCH)),)
102PRODUCT_COPY_FILES += \
Jackeaglec965ff92017-08-27 02:49:00 -0400103 vendor/bliss/prebuilt/common/lib/libjni_latinime.so:system/lib/libjni_latinime.so
beanstown10651b99e82015-12-26 04:15:07 -0500104else
105PRODUCT_COPY_FILES += \
Jackeaglec965ff92017-08-27 02:49:00 -0400106 vendor/bliss/prebuilt/common/lib64/libjni_latinime.so:system/lib64/libjni_latinime.so
beanstown10651b99e82015-12-26 04:15:07 -0500107endif
108
Alberto970ceb8342015-01-02 14:43:15 +0100109# by default, do not update the recovery with system updates
110PRODUCT_PROPERTY_OVERRIDES += persist.sys.recovery_update=false
111
Chirayu Desai9819bc92013-03-20 16:17:17 +0530112ifneq ($(TARGET_BUILD_VARIANT),eng)
Chirayu Desai6efc7f82013-02-15 21:16:39 +0530113# Enable ADB authentication
Jackeaglec965ff92017-08-27 02:49:00 -0400114PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.adb.secure=1
Chirayu Desai9819bc92013-03-20 16:17:17 +0530115endif
Chirayu Desai6efc7f82013-02-15 21:16:39 +0530116
Adrian DCc4059fb2017-08-18 16:14:47 +0200117# Custom off-mode charger
118ifneq ($(WITH_BLISS_CHARGER),false)
119PRODUCT_PACKAGES += \
120 charger_res_images \
121 bliss_charger_res_images \
122 font_log.png \
123 libhealthd.bliss
124endif
125
Joe Maples2dfa0fd2014-12-03 21:09:44 -0500126# Squisher Location
127SQUISHER_SCRIPT := vendor/bliss/tools/squisher
128
Corey Edwardsb2313a82017-02-14 11:23:00 -0600129# Root Solutions
130ifeq ($(DEFAULT_ROOT_METHOD),supersu)
131PRODUCT_COPY_FILES += \
132 vendor/bliss/prebuilt/zip/supersu.zip:system/addon.d/supersu.zip \
133 vendor/bliss/prebuilt/etc/99SuperSUDaemon:system/etc/init.d/99SuperSUDaemon
134
135#else ifeq ($(DEFAULT_ROOT_METHOD),magisk)
136#PRODUCT_COPY_FILES += \
137# vendor/bliss/prebuilt/zip/magisk.zip:system/addon.d/magisk.zip
138endif
139
Jackeaglec965ff92017-08-27 02:49:00 -0400140# Bliss Versioning System
141-include vendor/bliss/config/versions.mk
Joe Maples2c83ab02017-01-05 19:14:55 -0500142
Jackeagleb99e41d2017-02-04 20:17:05 +0530143# Bliss Packages
144-include vendor/bliss/config/bliss_packages.mk
145
electrikjesus7fdc6132017-01-06 20:52:53 -0500146$(call inherit-product-if-exists, vendor/bliss/prebuilt/common/app/Android.mk)
147$(call inherit-product-if-exists, vendor/bliss/prebuilt/common/privapp/Android.mk)
Alberto970ceb8342015-01-02 14:43:15 +0100148$(call inherit-product-if-exists, vendor/extra/product.mk)