blob: d1e17ea0dce137baadebd155a8ebe0f1aeada172 [file] [log] [blame]
Christopher N. Hessee4a40882018-09-21 23:00:26 +02001# Allow vendor/extra to override any property by setting it first
2$(call inherit-product-if-exists, vendor/extra/product.mk)
3
Jackeagled6811aa2019-09-24 08:26:40 +02004PRODUCT_BRAND ?= Bliss
Ricardo Cerqueira6ed03ff2011-11-28 16:37:47 +00005
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +00006PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
7
Steve Kondik5a27f632013-11-06 13:55:11 -08008ifeq ($(PRODUCT_GMS_CLIENTID_BASE),)
Rashed Abdel-Tawabb6fb3e12018-03-02 10:21:37 -05009PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
Steve Kondik5a27f632013-11-06 13:55:11 -080010 ro.com.google.clientidbase=android-google
11else
Rashed Abdel-Tawabb6fb3e12018-03-02 10:21:37 -050012PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
Steve Kondik5a27f632013-11-06 13:55:11 -080013 ro.com.google.clientidbase=$(PRODUCT_GMS_CLIENTID_BASE)
14endif
15
Jackeagle0686ef92022-03-10 05:16:40 -050016ifneq ($(TARGET_BUILD_VARIANT),user)
codeworkxd51aef22018-09-14 14:35:14 +020017# Disable ADB authentication
18PRODUCT_SYSTEM_DEFAULT_PROPERTIES += ro.adb.secure=0
19else
Chirayu Desai59df3632013-02-15 21:16:39 +053020# Enable ADB authentication
Bruno Martinse68dd972018-03-06 09:42:15 -060021PRODUCT_SYSTEM_DEFAULT_PROPERTIES += ro.adb.secure=1
Jackeagle0686ef92022-03-10 05:16:40 -050022endif
Danny Lin39ef68a2021-10-09 06:24:31 -070023
24# Enable one-handed mode
25PRODUCT_PRODUCT_PROPERTIES += \
26 ro.support_one_handed_mode=true
Chirayu Desai59df3632013-02-15 21:16:39 +053027
Warren Togamib1637c82012-03-03 22:37:42 -100028# Backup Tool
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000029PRODUCT_COPY_FILES += \
Jackeagled6811aa2019-09-24 08:26:40 +020030 vendor/bliss/prebuilt/common/bin/backuptool.sh:install/bin/backuptool.sh \
31 vendor/bliss/prebuilt/common/bin/backuptool.functions:install/bin/backuptool.functions \
32 vendor/bliss/prebuilt/common/bin/50-bliss.sh:$(TARGET_COPY_OUT_SYSTEM)/addon.d/50-bliss.sh
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000033
Michael Bestas95e1a092021-06-14 15:04:40 +030034PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \
35 system/addon.d/50-bliss.sh
36
Alessandro Astone1ac1b0f2020-12-28 12:34:21 +010037ifneq ($(strip $(AB_OTA_PARTITIONS) $(AB_OTA_POSTINSTALL_CONFIG)),)
Dan Pasanen4a049b52017-01-16 19:26:50 -060038PRODUCT_COPY_FILES += \
Jackeagled6811aa2019-09-24 08:26:40 +020039 vendor/bliss/prebuilt/common/bin/backuptool_ab.sh:$(TARGET_COPY_OUT_SYSTEM)/bin/backuptool_ab.sh \
40 vendor/bliss/prebuilt/common/bin/backuptool_ab.functions:$(TARGET_COPY_OUT_SYSTEM)/bin/backuptool_ab.functions \
41 vendor/bliss/prebuilt/common/bin/backuptool_postinstall.sh:$(TARGET_COPY_OUT_SYSTEM)/bin/backuptool_postinstall.sh
Luca Stefanib3bd7282020-03-26 08:15:14 +010042ifneq ($(TARGET_BUILD_VARIANT),user)
43PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
44 ro.ota.allow_downgrade=true
45endif
Dan Pasanen4a049b52017-01-16 19:26:50 -060046endif
47
Bruno Martinsa1b47e32017-10-16 09:37:03 +010048# Lineage-specific broadcast actions whitelist
49PRODUCT_COPY_FILES += \
Michael Bestas2e588412021-11-14 18:12:26 +020050 vendor/bliss/config/permissions/lineage-sysconfig.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/lineage-sysconfig.xml
Bruno Martinsa1b47e32017-10-16 09:37:03 +010051
Jayant-Deshmukhb99dc122021-05-11 14:15:54 +053052# Font service Permissions
53PRODUCT_COPY_FILES += \
54 vendor/bliss/config/permissions/privapp-permissions-bliss-system_ext.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/privapp-permissions-bliss-system_ext.xml \
55
Michael Bestasb24ce222021-11-14 18:10:56 +020056# Bliss-specific init rc file
57PRODUCT_COPY_FILES += \
Bruno Martins1a7a9762022-01-31 15:58:50 +000058 vendor/bliss/prebuilt/common/etc/init/init.bliss-system_ext.rc:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/init/init.bliss-system_ext.rc \
Michael Bestasb24ce222021-11-14 18:10:56 +020059 vendor/bliss/prebuilt/common/etc/init/init.bliss-updater.rc:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/init/init.bliss-updater.rc \
DennySPB66a7aa32022-04-27 17:43:13 +030060 vendor/bliss/prebuilt/common/etc/init/smartcharge-init.rc:$(TARGET_COPY_OUT_SYSTEM)/etc/init/smartcharge-init.rc \
Michael Bestasb24ce222021-11-14 18:10:56 +020061 vendor/bliss/prebuilt/common/etc/init/init.openssh.rc:$(TARGET_COPY_OUT_PRODUCT)/etc/init/init.openssh.rc
Ricardo Cerqueira8f412cb2012-10-18 16:38:25 +010062
LuK13374f0ad572019-10-24 02:33:34 +020063# Enable Android Beam on all targets
64PRODUCT_COPY_FILES += \
Michael Bestas2e588412021-11-14 18:12:26 +020065 vendor/bliss/config/permissions/android.software.nfc.beam.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/android.software.nfc.beam.xml
LuK13374f0ad572019-10-24 02:33:34 +020066
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000067# Enable SIP+VoIP on all targets
68PRODUCT_COPY_FILES += \
Michael Bestas2e588412021-11-14 18:12:26 +020069 frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/android.software.sip.voip.xml
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000070
sleeplessninja918a7ea2013-01-30 14:45:20 -060071# Enable wireless Xbox 360 controller support
72PRODUCT_COPY_FILES += \
Michael Bestas18ebd202021-11-14 18:18:09 +020073 frameworks/base/data/keyboards/Vendor_045e_Product_028e.kl:$(TARGET_COPY_OUT_PRODUCT)/usr/keylayout/Vendor_045e_Product_0719.kl
sleeplessninja918a7ea2013-01-30 14:45:20 -060074
Jackeagled6811aa2019-09-24 08:26:40 +020075# Lineage specific permissions
Steve Kondike0c12da2012-03-25 17:21:32 -070076PRODUCT_COPY_FILES += \
Michael Bestas2e588412021-11-14 18:12:26 +020077 vendor/bliss/config/permissions/org.lineageos.android.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/org.lineageos.android.xml
Steve Kondike0c12da2012-03-25 17:21:32 -070078
LuK1337a73d7e82022-04-04 21:31:18 +020079# Disable remote keyguard animation
80PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
81 persist.wm.enable_remote_keyguard_animation=0
82
Luca Stefani214dfb92019-07-25 18:05:40 +020083# Enforce privapp-permissions whitelist
84PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
85 ro.control_privapp_permissions=enforce
86
Michael Bestas95e1a092021-06-14 15:04:40 +030087PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \
88 system/bin/backuptool_ab.sh \
89 system/bin/backuptool_ab.functions \
90 system/bin/backuptool_postinstall.sh
91
92PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \
93 system/bin/curl \
94 system/bin/getcap \
95 system/bin/setcap
96
97ifneq ($(TARGET_BUILD_VARIANT),user)
98PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \
99 system/bin/procmem
100endif
101
Michael Bestasf8b28f12019-04-12 02:08:21 +0300102# Include AOSP audio files
Jackeagled6811aa2019-09-24 08:26:40 +0200103include vendor/bliss/config/aosp_audio.mk
Michael Bestasf8b28f12019-04-12 02:08:21 +0300104
Jackeagled6811aa2019-09-24 08:26:40 +0200105# Include Bliss audio files
106include vendor/bliss/config/bliss_audio.mk
Arne Coucheron61536d42016-09-09 00:04:09 +0200107
Sam Mortimer19ce2d32017-09-18 21:05:19 -0700108ifneq ($(TARGET_DISABLE_LINEAGE_SDK), true)
109# Lineage SDK
Jackeagled6811aa2019-09-24 08:26:40 +0200110include vendor/bliss/config/lineage_sdk_common.mk
Luca Stefani25801972016-08-27 00:44:50 +0200111endif
Adnan Begovicf3610f52016-03-15 14:17:47 -0700112
Luca Stefanic4d11902019-01-05 11:46:23 +0100113# Do not include art debug targets
114PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD := false
115
116# Strip the local variable table and the local variable type table to reduce
117# the size of the system image. This has no bearing on stack traces, but will
118# leave less information available via JDWP.
119PRODUCT_MINIMIZE_JAVA_DEBUG_INFO := true
120
Luca Stefani24ada062017-08-17 21:43:22 +0200121# Disable vendor restrictions
122PRODUCT_RESTRICT_VENDOR_FILES := false
123
Joey Rizzoli73a39652016-11-23 21:19:00 +0100124# Storage manager
Rashed Abdel-Tawabb6fb3e12018-03-02 10:21:37 -0500125PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
Joey Rizzoli73a39652016-11-23 21:19:00 +0100126 ro.storage_manager.enabled=true
127
Luca Stefani0e387902020-03-13 23:15:16 +0100128# Root
Luca Stefani06b93c02019-11-03 00:06:45 +0100129PRODUCT_PACKAGES += \
130 adb_root
Luca Stefani0e387902020-03-13 23:15:16 +0100131ifneq ($(TARGET_BUILD_VARIANT),user)
Abhisek Devkota6af9acb2016-12-27 22:30:35 -0800132ifeq ($(WITH_SU),true)
133PRODUCT_PACKAGES += \
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +0100134 su
repo Shareef Ali4bcfc312014-12-29 17:52:04 -0600135endif
Abhisek Devkota6af9acb2016-12-27 22:30:35 -0800136endif
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +0100137
Henrique Silvabb81e782021-05-11 11:19:04 +0530138# StitchImage
139PRODUCT_PACKAGES += \
140 StitchImage
141
jhenrique0981089ae2021-02-07 15:37:23 -0300142# Face Unlock
143TARGET_FACE_UNLOCK_SUPPORTED ?= true
144ifeq ($(TARGET_FACE_UNLOCK_SUPPORTED),true)
145PRODUCT_PACKAGES += \
146 FaceUnlockService
147PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
148 ro.face_unlock_service.enabled=$(TARGET_FACE_UNLOCK_SUPPORTED)
149PRODUCT_COPY_FILES += \
150 frameworks/native/data/etc/android.hardware.biometrics.face.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.biometrics.face.xml
151endif
152
Sam Mortimer4a95d782020-06-25 18:00:40 +0000153# Livedisplay
154PRODUCT_COPY_FILES += \
155 vendor/bliss/prebuilt/common/etc/permissions/privapp-permissions-lineagehw.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/privapp-permissions-lineagehw.xml
156
Blaster4385265639b2021-11-24 11:04:17 +0530157# Omadm
158PRODUCT_COPY_FILES += \
159 vendor/bliss/config/permissions/privapp-permissions-omadm.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-omadm.xml
160
Jackeagleb44ac312020-05-03 11:16:06 +0200161# Bliss Bootanimation
162-include vendor/bliss/config/bootanimation.mk
163
Jackeagle59f7d842016-10-25 05:41:13 -0400164# Bliss Versioning System
165-include vendor/bliss/config/versions.mk
166
Jackeaglea1d98162020-10-04 06:00:55 -0400167# Bliss Packages
Jackeagle111cd302019-07-20 05:04:32 -0400168-include vendor/bliss/config/bliss_packages.mk
Jackeaglea1d98162020-10-04 06:00:55 -0400169
Jackeagle84fca122020-11-21 16:12:53 +0100170# Bliss Overlays
171-include vendor/overlays/bliss_overlays.mk
172
Jackeaglea1d98162020-10-04 06:00:55 -0400173# Gapps
174ifeq ($(BLISS_BUILD_VARIANT), gapps)
Ayan Mukherjee73864362022-02-22 16:25:15 -0500175$(call inherit-product, vendor/gms/products/gms.mk)
Jackeaglea1d98162020-10-04 06:00:55 -0400176endif
177
Kshitij Gupta06e60632020-06-25 13:38:28 +0000178# Plugins
sss.sonar2003@gmail.com4ee9fbe2021-10-10 12:41:06 +0200179#include packages/apps/Plugins/plugins.mk
Kshitij Gupta06e60632020-06-25 13:38:28 +0000180
DennySPb5ef41742020-11-30 15:31:41 +0300181# FOD Animations
SagarMakharde0c5222022-01-16 17:31:15 +0000182ifeq ($(EXTRA_UDFPS_ANIMATIONS),true)
DennySPb5ef41742020-11-30 15:31:41 +0300183PRODUCT_PACKAGES += \
SagarMakharde0c5222022-01-16 17:31:15 +0000184 UdfpsResources
DennySPb5ef41742020-11-30 15:31:41 +0300185endif
186
Jon West6f429fa2021-04-24 18:09:38 -0400187# FOSS Apps
188ifeq ($(BLISS_BUILD_VARIANT), foss)
189$(call inherit-product, vendor/foss/foss.mk)
190endif
191
192# Go-gapps
193ifeq ($(BLISS_BUILD_VARIANT), goapps)
194$(call inherit-product, vendor/gapps-go/gapps-go.mk)
195endif
196
Brint E. Kriebela1e49122014-01-31 11:59:56 -0800197-include $(WORKSPACE)/build_env/image-auto-bits.mk
Jackeagled6811aa2019-09-24 08:26:40 +0200198-include vendor/bliss/config/partner_gms.mk
chil3609851df62021-10-19 23:34:21 +0700199
200# System
201persist.sys.binary_xml=false
jhenrique09f88b6eb2022-02-22 21:55:33 +0200202
203# Quick Tap
204ifeq ($(TARGET_SUPPORTS_QUICK_TAP),true)
205PRODUCT_COPY_FILES += \
206 vendor/bliss/prebuilt/common/etc/sysconfig/quick_tap.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/quick_tap.xml
207endif