blob: 2aa78651c659e55f6c80b0e26317cc67ec4726f2 [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 \
26
BitO BSessiOn60f6dd32016-09-11 14:05:33 +020027 # Bootanimation support
28ifneq ($(TARGET_SCREEN_WIDTH) $(TARGET_SCREEN_HEIGHT),$(space))
29# determine the smaller dimension
30TARGET_BOOTANIMATION_SIZE := $(shell \
31 if [ $(TARGET_SCREEN_WIDTH) -lt $(TARGET_SCREEN_HEIGHT) ]; then \
32 echo $(TARGET_SCREEN_WIDTH); \
33 else \
34 echo $(TARGET_SCREEN_HEIGHT); \
35 fi )
36
37# get a sorted list of the sizes
38bootanimation_sizes := $(subst .zip,, $(shell ls vendor/bliss/prebuilt/common/bootanimation))
39bootanimation_sizes := $(shell echo -e $(subst $(space),'\n',$(bootanimation_sizes)) | sort -rn)
40
41# find the appropriate size and set
42define check_and_set_bootanimation
43$(eval TARGET_BOOTANIMATION_NAME := $(shell \
44 if [ -z "$(TARGET_BOOTANIMATION_NAME)" ]; then
45 if [ $(1) -le $(TARGET_BOOTANIMATION_SIZE) ]; then \
46 echo $(1); \
47 exit 0; \
48 fi;
49 fi;
50 echo $(TARGET_BOOTANIMATION_NAME); ))
51endef
52
53$(foreach size,$(bootanimation_sizes), $(call check_and_set_bootanimation,$(size)))
54
55ifeq ($(TARGET_BOOTANIMATION_HALF_RES),true)
56PRODUCT_BOOTANIMATION := vendor/bliss/prebuilt/common/bootanimation/halfres/$(TARGET_BOOTANIMATION_NAME).zip
57else
58PRODUCT_BOOTANIMATION := vendor/bliss/prebuilt/common/bootanimation/$(TARGET_BOOTANIMATION_NAME).zip
59endif
60
Alberto970ceb8342015-01-02 14:43:15 +010061PRODUCT_COPY_FILES += \
BitO BSessiOn60f6dd32016-09-11 14:05:33 +020062 $(PRODUCT_BOOTANIMATION):system/media/bootanimation.zip
63endif
Alberto970ceb8342015-01-02 14:43:15 +010064
65# init.d support
66PRODUCT_COPY_FILES += \
Jackeagle5c53cae2016-10-25 15:13:35 +053067 vendor/bliss/prebuilt/common/bin/sysinit:system/bin/sysinit \
68 vendor/bliss/prebuilt/common/etc/init.d/00banner:system/etc/init.d/00banner \
69 vendor/bliss/prebuilt/common/etc/init.d/90userinit:system/etc/init.d/90userinit
Alberto970ceb8342015-01-02 14:43:15 +010070
71# Init file
72PRODUCT_COPY_FILES += \
Jackeagle5c53cae2016-10-25 15:13:35 +053073 vendor/bliss/prebuilt/common/etc/init.bliss.rc:root/init.bliss.rc
Alberto970ceb8342015-01-02 14:43:15 +010074
75# Bring in camera effects
76PRODUCT_COPY_FILES += \
Jackeagle5c53cae2016-10-25 15:13:35 +053077 vendor/bliss/prebuilt/common/media/LMprec_508.emd:system/media/LMprec_508.emd \
78 vendor/bliss/prebuilt/common/media/PFFprec_600.emd:system/media/PFFprec_600.emd
Alberto970ceb8342015-01-02 14:43:15 +010079
80# Enable SIP+VoIP on all targets
81PRODUCT_COPY_FILES += \
82 frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
83
84# Enable wireless Xbox 360 controller support
85PRODUCT_COPY_FILES += \
86 frameworks/base/data/keyboards/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_0719.kl
87
Alberto970ceb8342015-01-02 14:43:15 +010088# World APN list
89PRODUCT_COPY_FILES += \
Jackeagle5c53cae2016-10-25 15:13:35 +053090 vendor/bliss/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml
Alberto970ceb8342015-01-02 14:43:15 +010091
Alberto970ceb8342015-01-02 14:43:15 +010092# Selective SPN list for operator number who has the problem.
93PRODUCT_COPY_FILES += \
Jackeagle5c53cae2016-10-25 15:13:35 +053094 vendor/bliss/prebuilt/common/etc/selective-spn-conf.xml:system/etc/selective-spn-conf.xml
Alberto970ceb8342015-01-02 14:43:15 +010095
Alberto970ceb8342015-01-02 14:43:15 +010096PRODUCT_PACKAGE_OVERLAYS += \
Jackeagle5c53cae2016-10-25 15:13:35 +053097 vendor/bliss/overlay/common
Alberto970ceb8342015-01-02 14:43:15 +010098
Jackeaglec965ff92017-08-27 02:49:00 -040099# Proprietary latinime libs needed for Keyboard swyping
beanstown10651b99e82015-12-26 04:15:07 -0500100ifneq ($(filter arm64,$(TARGET_ARCH)),)
101PRODUCT_COPY_FILES += \
Jackeaglec965ff92017-08-27 02:49:00 -0400102 vendor/bliss/prebuilt/common/lib/libjni_latinime.so:system/lib/libjni_latinime.so
beanstown10651b99e82015-12-26 04:15:07 -0500103else
104PRODUCT_COPY_FILES += \
Jackeaglec965ff92017-08-27 02:49:00 -0400105 vendor/bliss/prebuilt/common/lib64/libjni_latinime.so:system/lib64/libjni_latinime.so
beanstown10651b99e82015-12-26 04:15:07 -0500106endif
107
Alberto970ceb8342015-01-02 14:43:15 +0100108# by default, do not update the recovery with system updates
109PRODUCT_PROPERTY_OVERRIDES += persist.sys.recovery_update=false
110
Chirayu Desai9819bc92013-03-20 16:17:17 +0530111ifneq ($(TARGET_BUILD_VARIANT),eng)
Chirayu Desai6efc7f82013-02-15 21:16:39 +0530112# Enable ADB authentication
Jackeaglec965ff92017-08-27 02:49:00 -0400113PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.adb.secure=1
Chirayu Desai9819bc92013-03-20 16:17:17 +0530114endif
Chirayu Desai6efc7f82013-02-15 21:16:39 +0530115
Adrian DCc4059fb2017-08-18 16:14:47 +0200116# Custom off-mode charger
117ifneq ($(WITH_BLISS_CHARGER),false)
118PRODUCT_PACKAGES += \
119 charger_res_images \
120 bliss_charger_res_images \
121 font_log.png \
122 libhealthd.bliss
123endif
124
Joe Maples2dfa0fd2014-12-03 21:09:44 -0500125# Squisher Location
126SQUISHER_SCRIPT := vendor/bliss/tools/squisher
127
Corey Edwardsb2313a82017-02-14 11:23:00 -0600128# Root Solutions
129ifeq ($(DEFAULT_ROOT_METHOD),supersu)
130PRODUCT_COPY_FILES += \
131 vendor/bliss/prebuilt/zip/supersu.zip:system/addon.d/supersu.zip \
132 vendor/bliss/prebuilt/etc/99SuperSUDaemon:system/etc/init.d/99SuperSUDaemon
133
134#else ifeq ($(DEFAULT_ROOT_METHOD),magisk)
135#PRODUCT_COPY_FILES += \
136# vendor/bliss/prebuilt/zip/magisk.zip:system/addon.d/magisk.zip
137endif
138
Jackeaglec965ff92017-08-27 02:49:00 -0400139# Bliss Versioning System
140-include vendor/bliss/config/versions.mk
Joe Maples2c83ab02017-01-05 19:14:55 -0500141
Jackeagleb99e41d2017-02-04 20:17:05 +0530142# Bliss Packages
143-include vendor/bliss/config/bliss_packages.mk
144
electrikjesus7fdc6132017-01-06 20:52:53 -0500145$(call inherit-product-if-exists, vendor/bliss/prebuilt/common/app/Android.mk)
146$(call inherit-product-if-exists, vendor/bliss/prebuilt/common/privapp/Android.mk)
Alberto970ceb8342015-01-02 14:43:15 +0100147$(call inherit-product-if-exists, vendor/extra/product.mk)