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