Christopher N. Hesse | e4a4088 | 2018-09-21 23:00:26 +0200 | [diff] [blame] | 1 | # Allow vendor/extra to override any property by setting it first |
| 2 | $(call inherit-product-if-exists, vendor/extra/product.mk) |
| 3 | |
Jackeagle | d6811aa | 2019-09-24 08:26:40 +0200 | [diff] [blame] | 4 | PRODUCT_BRAND ?= Bliss |
Ricardo Cerqueira | 6ed03ff | 2011-11-28 16:37:47 +0000 | [diff] [blame] | 5 | |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 6 | PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0 |
| 7 | |
Steve Kondik | 5a27f63 | 2013-11-06 13:55:11 -0800 | [diff] [blame] | 8 | ifeq ($(PRODUCT_GMS_CLIENTID_BASE),) |
Rashed Abdel-Tawab | b6fb3e1 | 2018-03-02 10:21:37 -0500 | [diff] [blame] | 9 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
Steve Kondik | 5a27f63 | 2013-11-06 13:55:11 -0800 | [diff] [blame] | 10 | ro.com.google.clientidbase=android-google |
| 11 | else |
Rashed Abdel-Tawab | b6fb3e1 | 2018-03-02 10:21:37 -0500 | [diff] [blame] | 12 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
Steve Kondik | 5a27f63 | 2013-11-06 13:55:11 -0800 | [diff] [blame] | 13 | ro.com.google.clientidbase=$(PRODUCT_GMS_CLIENTID_BASE) |
| 14 | endif |
| 15 | |
codeworkx | d51aef2 | 2018-09-14 14:35:14 +0200 | [diff] [blame] | 16 | ifeq ($(TARGET_BUILD_VARIANT),eng) |
| 17 | # Disable ADB authentication |
| 18 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += ro.adb.secure=0 |
| 19 | else |
Chirayu Desai | 59df363 | 2013-02-15 21:16:39 +0530 | [diff] [blame] | 20 | # Enable ADB authentication |
Bruno Martins | e68dd97 | 2018-03-06 09:42:15 -0600 | [diff] [blame] | 21 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += ro.adb.secure=1 |
Chirayu Desai | 88401db | 2013-03-20 16:17:17 +0530 | [diff] [blame] | 22 | endif |
Chirayu Desai | 59df363 | 2013-02-15 21:16:39 +0530 | [diff] [blame] | 23 | |
Warren Togami | b1637c8 | 2012-03-03 22:37:42 -1000 | [diff] [blame] | 24 | # Backup Tool |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 25 | PRODUCT_COPY_FILES += \ |
Jackeagle | d6811aa | 2019-09-24 08:26:40 +0200 | [diff] [blame] | 26 | vendor/bliss/prebuilt/common/bin/backuptool.sh:install/bin/backuptool.sh \ |
| 27 | vendor/bliss/prebuilt/common/bin/backuptool.functions:install/bin/backuptool.functions \ |
| 28 | vendor/bliss/prebuilt/common/bin/50-bliss.sh:$(TARGET_COPY_OUT_SYSTEM)/addon.d/50-bliss.sh |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 29 | |
Alessandro Astone | 1ac1b0f | 2020-12-28 12:34:21 +0100 | [diff] [blame] | 30 | ifneq ($(strip $(AB_OTA_PARTITIONS) $(AB_OTA_POSTINSTALL_CONFIG)),) |
Dan Pasanen | 4a049b5 | 2017-01-16 19:26:50 -0600 | [diff] [blame] | 31 | PRODUCT_COPY_FILES += \ |
Jackeagle | d6811aa | 2019-09-24 08:26:40 +0200 | [diff] [blame] | 32 | vendor/bliss/prebuilt/common/bin/backuptool_ab.sh:$(TARGET_COPY_OUT_SYSTEM)/bin/backuptool_ab.sh \ |
| 33 | vendor/bliss/prebuilt/common/bin/backuptool_ab.functions:$(TARGET_COPY_OUT_SYSTEM)/bin/backuptool_ab.functions \ |
| 34 | vendor/bliss/prebuilt/common/bin/backuptool_postinstall.sh:$(TARGET_COPY_OUT_SYSTEM)/bin/backuptool_postinstall.sh |
Luca Stefani | b3bd728 | 2020-03-26 08:15:14 +0100 | [diff] [blame] | 35 | ifneq ($(TARGET_BUILD_VARIANT),user) |
| 36 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
| 37 | ro.ota.allow_downgrade=true |
| 38 | endif |
Dan Pasanen | 4a049b5 | 2017-01-16 19:26:50 -0600 | [diff] [blame] | 39 | endif |
| 40 | |
Abhisek Devkota | f1c5ab8 | 2016-07-06 15:18:29 -0700 | [diff] [blame] | 41 | # Backup Services whitelist |
| 42 | PRODUCT_COPY_FILES += \ |
Jackeagle | d6811aa | 2019-09-24 08:26:40 +0200 | [diff] [blame] | 43 | vendor/bliss/config/permissions/backup.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/backup.xml |
Abhisek Devkota | f1c5ab8 | 2016-07-06 15:18:29 -0700 | [diff] [blame] | 44 | |
Bruno Martins | a1b47e3 | 2017-10-16 09:37:03 +0100 | [diff] [blame] | 45 | # Lineage-specific broadcast actions whitelist |
| 46 | PRODUCT_COPY_FILES += \ |
Jackeagle | d6811aa | 2019-09-24 08:26:40 +0200 | [diff] [blame] | 47 | vendor/bliss/config/permissions/lineage-sysconfig.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/lineage-sysconfig.xml |
Bruno Martins | a1b47e3 | 2017-10-16 09:37:03 +0100 | [diff] [blame] | 48 | |
Jayant-Deshmukh | b99dc12 | 2021-05-11 14:15:54 +0530 | [diff] [blame] | 49 | # Font service Permissions |
| 50 | PRODUCT_COPY_FILES += \ |
| 51 | vendor/bliss/config/permissions/privapp-permissions-bliss-system_ext.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/privapp-permissions-bliss-system_ext.xml \ |
| 52 | |
Sam Mortimer | c108852 | 2017-09-21 10:10:49 -0700 | [diff] [blame] | 53 | # Copy all Lineage-specific init rc files |
Jackeagle | d6811aa | 2019-09-24 08:26:40 +0200 | [diff] [blame] | 54 | $(foreach f,$(wildcard vendor/bliss/prebuilt/common/etc/init/*.rc),\ |
Michael Bestas | f4032b8 | 2019-09-15 16:32:33 +0300 | [diff] [blame] | 55 | $(eval PRODUCT_COPY_FILES += $(f):$(TARGET_COPY_OUT_SYSTEM)/etc/init/$(notdir $f))) |
Ricardo Cerqueira | 8f412cb | 2012-10-18 16:38:25 +0100 | [diff] [blame] | 56 | |
LuK1337 | 4f0ad57 | 2019-10-24 02:33:34 +0200 | [diff] [blame] | 57 | # Enable Android Beam on all targets |
| 58 | PRODUCT_COPY_FILES += \ |
Jackeagle | d6811aa | 2019-09-24 08:26:40 +0200 | [diff] [blame] | 59 | vendor/bliss/config/permissions/android.software.nfc.beam.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.software.nfc.beam.xml |
LuK1337 | 4f0ad57 | 2019-10-24 02:33:34 +0200 | [diff] [blame] | 60 | |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 61 | # Enable SIP+VoIP on all targets |
| 62 | PRODUCT_COPY_FILES += \ |
Michael Bestas | f4032b8 | 2019-09-15 16:32:33 +0300 | [diff] [blame] | 63 | frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.software.sip.voip.xml |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 64 | |
sleeplessninja | 918a7ea | 2013-01-30 14:45:20 -0600 | [diff] [blame] | 65 | # Enable wireless Xbox 360 controller support |
| 66 | PRODUCT_COPY_FILES += \ |
Michael Bestas | f4032b8 | 2019-09-15 16:32:33 +0300 | [diff] [blame] | 67 | frameworks/base/data/keyboards/Vendor_045e_Product_028e.kl:$(TARGET_COPY_OUT_SYSTEM)/usr/keylayout/Vendor_045e_Product_0719.kl |
sleeplessninja | 918a7ea | 2013-01-30 14:45:20 -0600 | [diff] [blame] | 68 | |
Jackeagle | d6811aa | 2019-09-24 08:26:40 +0200 | [diff] [blame] | 69 | # Lineage specific permissions |
Steve Kondik | e0c12da | 2012-03-25 17:21:32 -0700 | [diff] [blame] | 70 | PRODUCT_COPY_FILES += \ |
Jackeagle | d6811aa | 2019-09-24 08:26:40 +0200 | [diff] [blame] | 71 | vendor/bliss/config/permissions/org.lineageos.android.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/org.lineageos.android.xml |
Steve Kondik | e0c12da | 2012-03-25 17:21:32 -0700 | [diff] [blame] | 72 | |
Luca Stefani | 214dfb9 | 2019-07-25 18:05:40 +0200 | [diff] [blame] | 73 | # Enforce privapp-permissions whitelist |
| 74 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
| 75 | ro.control_privapp_permissions=enforce |
| 76 | |
Michael Bestas | f8b28f1 | 2019-04-12 02:08:21 +0300 | [diff] [blame] | 77 | # Include AOSP audio files |
Jackeagle | d6811aa | 2019-09-24 08:26:40 +0200 | [diff] [blame] | 78 | include vendor/bliss/config/aosp_audio.mk |
Michael Bestas | f8b28f1 | 2019-04-12 02:08:21 +0300 | [diff] [blame] | 79 | |
Jackeagle | d6811aa | 2019-09-24 08:26:40 +0200 | [diff] [blame] | 80 | # Include Bliss audio files |
| 81 | include vendor/bliss/config/bliss_audio.mk |
Arne Coucheron | 61536d4 | 2016-09-09 00:04:09 +0200 | [diff] [blame] | 82 | |
Sam Mortimer | 19ce2d3 | 2017-09-18 21:05:19 -0700 | [diff] [blame] | 83 | ifneq ($(TARGET_DISABLE_LINEAGE_SDK), true) |
| 84 | # Lineage SDK |
Jackeagle | d6811aa | 2019-09-24 08:26:40 +0200 | [diff] [blame] | 85 | include vendor/bliss/config/lineage_sdk_common.mk |
Luca Stefani | 2580197 | 2016-08-27 00:44:50 +0200 | [diff] [blame] | 86 | endif |
Adnan Begovic | f3610f5 | 2016-03-15 14:17:47 -0700 | [diff] [blame] | 87 | |
Michael Bestas | beb05c8 | 2017-07-18 19:57:26 +0300 | [diff] [blame] | 88 | # TWRP |
| 89 | ifeq ($(WITH_TWRP),true) |
Jackeagle | d6811aa | 2019-09-24 08:26:40 +0200 | [diff] [blame] | 90 | include vendor/bliss/config/twrp.mk |
Michael Bestas | beb05c8 | 2017-07-18 19:57:26 +0300 | [diff] [blame] | 91 | endif |
| 92 | |
Luca Stefani | c4d1190 | 2019-01-05 11:46:23 +0100 | [diff] [blame] | 93 | # Do not include art debug targets |
| 94 | PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD := false |
| 95 | |
| 96 | # Strip the local variable table and the local variable type table to reduce |
| 97 | # the size of the system image. This has no bearing on stack traces, but will |
| 98 | # leave less information available via JDWP. |
| 99 | PRODUCT_MINIMIZE_JAVA_DEBUG_INFO := true |
| 100 | |
Luca Stefani | 24ada06 | 2017-08-17 21:43:22 +0200 | [diff] [blame] | 101 | # Disable vendor restrictions |
| 102 | PRODUCT_RESTRICT_VENDOR_FILES := false |
| 103 | |
Joey Rizzoli | 73a3965 | 2016-11-23 21:19:00 +0100 | [diff] [blame] | 104 | # Storage manager |
Rashed Abdel-Tawab | b6fb3e1 | 2018-03-02 10:21:37 -0500 | [diff] [blame] | 105 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
Joey Rizzoli | 73a3965 | 2016-11-23 21:19:00 +0100 | [diff] [blame] | 106 | ro.storage_manager.enabled=true |
| 107 | |
Luca Stefani | 0e38790 | 2020-03-13 23:15:16 +0100 | [diff] [blame] | 108 | # Root |
Luca Stefani | 06b93c0 | 2019-11-03 00:06:45 +0100 | [diff] [blame] | 109 | PRODUCT_PACKAGES += \ |
| 110 | adb_root |
Luca Stefani | 0e38790 | 2020-03-13 23:15:16 +0100 | [diff] [blame] | 111 | ifneq ($(TARGET_BUILD_VARIANT),user) |
Abhisek Devkota | 6af9acb | 2016-12-27 22:30:35 -0800 | [diff] [blame] | 112 | ifeq ($(WITH_SU),true) |
| 113 | PRODUCT_PACKAGES += \ |
Ricardo Cerqueira | a21887e | 2013-09-25 17:13:25 +0100 | [diff] [blame] | 114 | su |
repo Shareef Ali | 4bcfc31 | 2014-12-29 17:52:04 -0600 | [diff] [blame] | 115 | endif |
Abhisek Devkota | 6af9acb | 2016-12-27 22:30:35 -0800 | [diff] [blame] | 116 | endif |
Ricardo Cerqueira | a21887e | 2013-09-25 17:13:25 +0100 | [diff] [blame] | 117 | |
Henrique Silva | bb81e78 | 2021-05-11 11:19:04 +0530 | [diff] [blame] | 118 | # StitchImage |
| 119 | PRODUCT_PACKAGES += \ |
| 120 | StitchImage |
| 121 | |
jhenrique09 | 81089ae | 2021-02-07 15:37:23 -0300 | [diff] [blame] | 122 | # Face Unlock |
| 123 | TARGET_FACE_UNLOCK_SUPPORTED ?= true |
| 124 | ifeq ($(TARGET_FACE_UNLOCK_SUPPORTED),true) |
| 125 | PRODUCT_PACKAGES += \ |
| 126 | FaceUnlockService |
| 127 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
| 128 | ro.face_unlock_service.enabled=$(TARGET_FACE_UNLOCK_SUPPORTED) |
| 129 | PRODUCT_COPY_FILES += \ |
| 130 | frameworks/native/data/etc/android.hardware.biometrics.face.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.biometrics.face.xml |
| 131 | endif |
| 132 | |
Jackeagle | d6811aa | 2019-09-24 08:26:40 +0200 | [diff] [blame] | 133 | PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS += vendor/bliss/overlay |
Ricardo Cerqueira | 4616137 | 2014-01-09 10:25:31 +0000 | [diff] [blame] | 134 | |
Jackeagle | b44ac31 | 2020-05-03 11:16:06 +0200 | [diff] [blame] | 135 | # Bliss Bootanimation |
| 136 | -include vendor/bliss/config/bootanimation.mk |
| 137 | |
Jackeagle | 59f7d84 | 2016-10-25 05:41:13 -0400 | [diff] [blame] | 138 | # Bliss Versioning System |
| 139 | -include vendor/bliss/config/versions.mk |
| 140 | |
Jackeagle | a1d9816 | 2020-10-04 06:00:55 -0400 | [diff] [blame] | 141 | # Bliss Packages |
Jackeagle | 111cd30 | 2019-07-20 05:04:32 -0400 | [diff] [blame] | 142 | -include vendor/bliss/config/bliss_packages.mk |
Jackeagle | a1d9816 | 2020-10-04 06:00:55 -0400 | [diff] [blame] | 143 | |
Jackeagle | 84fca12 | 2020-11-21 16:12:53 +0100 | [diff] [blame] | 144 | # Bliss Overlays |
| 145 | -include vendor/overlays/bliss_overlays.mk |
| 146 | |
Jackeagle | a1d9816 | 2020-10-04 06:00:55 -0400 | [diff] [blame] | 147 | # Gapps |
| 148 | ifeq ($(BLISS_BUILD_VARIANT), gapps) |
Jackeagle | 22aaae5 | 2021-05-20 14:20:27 -0400 | [diff] [blame] | 149 | $(call inherit-product, vendor/gapps/gapps.mk) |
Jackeagle | a1d9816 | 2020-10-04 06:00:55 -0400 | [diff] [blame] | 150 | endif |
| 151 | |
Kshitij Gupta | 06e6063 | 2020-06-25 13:38:28 +0000 | [diff] [blame] | 152 | # Plugins |
| 153 | include packages/apps/Plugins/plugins.mk |
| 154 | |
DennySPb | 5ef4174 | 2020-11-30 15:31:41 +0300 | [diff] [blame] | 155 | # FOD Animations |
| 156 | ifeq ($(TARGET_WANTS_FOD_ANIMATIONS),true) |
| 157 | PRODUCT_PACKAGES += \ |
| 158 | FodAnimationResources |
| 159 | endif |
| 160 | |
Jon West | 6f429fa | 2021-04-24 18:09:38 -0400 | [diff] [blame] | 161 | # FOSS Apps |
| 162 | ifeq ($(BLISS_BUILD_VARIANT), foss) |
| 163 | $(call inherit-product, vendor/foss/foss.mk) |
| 164 | endif |
| 165 | |
| 166 | # Go-gapps |
| 167 | ifeq ($(BLISS_BUILD_VARIANT), goapps) |
| 168 | $(call inherit-product, vendor/gapps-go/gapps-go.mk) |
| 169 | endif |
| 170 | |
Brint E. Kriebel | a1e4912 | 2014-01-31 11:59:56 -0800 | [diff] [blame] | 171 | -include $(WORKSPACE)/build_env/image-auto-bits.mk |
Jackeagle | d6811aa | 2019-09-24 08:26:40 +0200 | [diff] [blame] | 172 | -include vendor/bliss/config/partner_gms.mk |