blob: 44f75e77d4ad8355acbd59890fdcf1c784a886cf [file] [log] [blame]
tobitege9d0fcb02015-03-30 15:23:19 +02001#
2# Copyright (C) 2015 BlissRoms Project
3#
4# Licensed under the Attribution-NonCommercial-ShareAlike 4.0 International
5# (the "License") you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
Alberto970ceb8342015-01-02 14:43:15 +010016PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
17
18PRODUCT_PROPERTY_OVERRIDES += \
19 keyguard.no_require_sim=true \
20 ro.com.google.clientidbase=android-google \
21 ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html \
22 ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html \
23 ro.com.android.wifi-watchlist=GoogleGuest \
24 ro.setupwizard.enterprise_mode=1 \
25 ro.com.android.dateformat=MM-dd-yyyy \
beanstown106ca4a0d22016-12-16 23:56:48 -050026 ro.com.android.dataroaming=false \
27 ro.opa.eligible_device=true
Alberto970ceb8342015-01-02 14:43:15 +010028
29PRODUCT_PROPERTY_OVERRIDES += \
30 ro.build.selinux=1
31
32# Thank you, please drive thru!
33PRODUCT_PROPERTY_OVERRIDES += persist.sys.dun.override=0
34
BitO BSessiOn60f6dd32016-09-11 14:05:33 +020035 # Bootanimation support
36ifneq ($(TARGET_SCREEN_WIDTH) $(TARGET_SCREEN_HEIGHT),$(space))
37# determine the smaller dimension
38TARGET_BOOTANIMATION_SIZE := $(shell \
39 if [ $(TARGET_SCREEN_WIDTH) -lt $(TARGET_SCREEN_HEIGHT) ]; then \
40 echo $(TARGET_SCREEN_WIDTH); \
41 else \
42 echo $(TARGET_SCREEN_HEIGHT); \
43 fi )
44
45# get a sorted list of the sizes
46bootanimation_sizes := $(subst .zip,, $(shell ls vendor/bliss/prebuilt/common/bootanimation))
47bootanimation_sizes := $(shell echo -e $(subst $(space),'\n',$(bootanimation_sizes)) | sort -rn)
48
49# find the appropriate size and set
50define check_and_set_bootanimation
51$(eval TARGET_BOOTANIMATION_NAME := $(shell \
52 if [ -z "$(TARGET_BOOTANIMATION_NAME)" ]; then
53 if [ $(1) -le $(TARGET_BOOTANIMATION_SIZE) ]; then \
54 echo $(1); \
55 exit 0; \
56 fi;
57 fi;
58 echo $(TARGET_BOOTANIMATION_NAME); ))
59endef
60
61$(foreach size,$(bootanimation_sizes), $(call check_and_set_bootanimation,$(size)))
62
63ifeq ($(TARGET_BOOTANIMATION_HALF_RES),true)
64PRODUCT_BOOTANIMATION := vendor/bliss/prebuilt/common/bootanimation/halfres/$(TARGET_BOOTANIMATION_NAME).zip
65else
66PRODUCT_BOOTANIMATION := vendor/bliss/prebuilt/common/bootanimation/$(TARGET_BOOTANIMATION_NAME).zip
67endif
68
Alberto970ceb8342015-01-02 14:43:15 +010069PRODUCT_COPY_FILES += \
BitO BSessiOn60f6dd32016-09-11 14:05:33 +020070 $(PRODUCT_BOOTANIMATION):system/media/bootanimation.zip
71endif
Alberto970ceb8342015-01-02 14:43:15 +010072
73# init.d support
74PRODUCT_COPY_FILES += \
Jackeagle5c53cae2016-10-25 15:13:35 +053075 vendor/bliss/prebuilt/common/bin/sysinit:system/bin/sysinit \
76 vendor/bliss/prebuilt/common/etc/init.d/00banner:system/etc/init.d/00banner \
77 vendor/bliss/prebuilt/common/etc/init.d/90userinit:system/etc/init.d/90userinit
Alberto970ceb8342015-01-02 14:43:15 +010078
79# Init file
80PRODUCT_COPY_FILES += \
Jackeagle5c53cae2016-10-25 15:13:35 +053081 vendor/bliss/prebuilt/common/etc/init.bliss.rc:root/init.bliss.rc
Alberto970ceb8342015-01-02 14:43:15 +010082
83# Bring in camera effects
84PRODUCT_COPY_FILES += \
Jackeagle5c53cae2016-10-25 15:13:35 +053085 vendor/bliss/prebuilt/common/media/LMprec_508.emd:system/media/LMprec_508.emd \
86 vendor/bliss/prebuilt/common/media/PFFprec_600.emd:system/media/PFFprec_600.emd
Alberto970ceb8342015-01-02 14:43:15 +010087
88# Enable SIP+VoIP on all targets
89PRODUCT_COPY_FILES += \
90 frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
91
92# Enable wireless Xbox 360 controller support
93PRODUCT_COPY_FILES += \
94 frameworks/base/data/keyboards/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_0719.kl
95
Alberto970ceb8342015-01-02 14:43:15 +010096# World APN list
97PRODUCT_COPY_FILES += \
Jackeagle5c53cae2016-10-25 15:13:35 +053098 vendor/bliss/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml
Alberto970ceb8342015-01-02 14:43:15 +010099
Alberto970ceb8342015-01-02 14:43:15 +0100100# Selective SPN list for operator number who has the problem.
101PRODUCT_COPY_FILES += \
Jackeagle5c53cae2016-10-25 15:13:35 +0530102 vendor/bliss/prebuilt/common/etc/selective-spn-conf.xml:system/etc/selective-spn-conf.xml
Alberto970ceb8342015-01-02 14:43:15 +0100103
Alberto970ceb8342015-01-02 14:43:15 +0100104PRODUCT_PACKAGE_OVERLAYS += \
Jackeagle5c53cae2016-10-25 15:13:35 +0530105 vendor/bliss/overlay/common
Alberto970ceb8342015-01-02 14:43:15 +0100106
tobitege9d0fcb02015-03-30 15:23:19 +0200107# Proprietary libs for BlissOTA and keyboard swyping
beanstown10651b99e82015-12-26 04:15:07 -0500108ifneq ($(filter arm64,$(TARGET_ARCH)),)
109PRODUCT_COPY_FILES += \
tobitege9d0fcb02015-03-30 15:23:19 +0200110 vendor/bliss/prebuilt/common/lib/libjni_latinime.so:system/lib/libjni_latinime.so \
111 vendor/bliss/prebuilt/common/lib/libbypass.so:system/lib/libbypass.so
beanstown10651b99e82015-12-26 04:15:07 -0500112else
113PRODUCT_COPY_FILES += \
tobitege9d0fcb02015-03-30 15:23:19 +0200114 vendor/bliss/prebuilt/common/lib64/libjni_latinime.so:system/lib64/libjni_latinime.so \
115 vendor/bliss/prebuilt/common/lib64/libbypass.so:system/lib64/libbypass.so
beanstown10651b99e82015-12-26 04:15:07 -0500116endif
117
Alberto970ceb8342015-01-02 14:43:15 +0100118# by default, do not update the recovery with system updates
119PRODUCT_PROPERTY_OVERRIDES += persist.sys.recovery_update=false
120
Chirayu Desai9819bc92013-03-20 16:17:17 +0530121ifneq ($(TARGET_BUILD_VARIANT),eng)
Chirayu Desai6efc7f82013-02-15 21:16:39 +0530122# Enable ADB authentication
123ADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=1
Chirayu Desai9819bc92013-03-20 16:17:17 +0530124endif
Chirayu Desai6efc7f82013-02-15 21:16:39 +0530125
Joe Maples2dfa0fd2014-12-03 21:09:44 -0500126# Squisher Location
127SQUISHER_SCRIPT := vendor/bliss/tools/squisher
128
Joe Maples2c83ab02017-01-05 19:14:55 -0500129# Compile libhwui in performance mode
130HWUI_COMPILE_FOR_PERF := true
131
Jackeagleb99e41d2017-02-04 20:17:05 +0530132# Bliss Packages
133-include vendor/bliss/config/bliss_packages.mk
134
tobitege9d0fcb02015-03-30 15:23:19 +0200135# Bliss OTA System
136-include vendor/bliss/config/bliss_ota.mk
137
Jackeagleb99e41d2017-02-04 20:17:05 +0530138# Bliss Versioning System
139-include vendor/bliss/config/versions.mk
140
electrikjesus7fdc6132017-01-06 20:52:53 -0500141$(call inherit-product-if-exists, vendor/bliss/prebuilt/common/app/Android.mk)
142$(call inherit-product-if-exists, vendor/bliss/prebuilt/common/privapp/Android.mk)
Alberto970ceb8342015-01-02 14:43:15 +0100143$(call inherit-product-if-exists, vendor/extra/product.mk)