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 | |
Sam Mortimer | c108852 | 2017-09-21 10:10:49 -0700 | [diff] [blame] | 49 | # Copy all Lineage-specific init rc files |
Jackeagle | d6811aa | 2019-09-24 08:26:40 +0200 | [diff] [blame] | 50 | $(foreach f,$(wildcard vendor/bliss/prebuilt/common/etc/init/*.rc),\ |
Michael Bestas | f4032b8 | 2019-09-15 16:32:33 +0300 | [diff] [blame] | 51 | $(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] | 52 | |
LuK1337 | 4f0ad57 | 2019-10-24 02:33:34 +0200 | [diff] [blame] | 53 | # Enable Android Beam on all targets |
| 54 | PRODUCT_COPY_FILES += \ |
Jackeagle | d6811aa | 2019-09-24 08:26:40 +0200 | [diff] [blame] | 55 | 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] | 56 | |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 57 | # Enable SIP+VoIP on all targets |
| 58 | PRODUCT_COPY_FILES += \ |
Michael Bestas | f4032b8 | 2019-09-15 16:32:33 +0300 | [diff] [blame] | 59 | 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] | 60 | |
sleeplessninja | 918a7ea | 2013-01-30 14:45:20 -0600 | [diff] [blame] | 61 | # Enable wireless Xbox 360 controller support |
| 62 | PRODUCT_COPY_FILES += \ |
Michael Bestas | f4032b8 | 2019-09-15 16:32:33 +0300 | [diff] [blame] | 63 | 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] | 64 | |
Jackeagle | d6811aa | 2019-09-24 08:26:40 +0200 | [diff] [blame] | 65 | # Lineage specific permissions |
Steve Kondik | e0c12da | 2012-03-25 17:21:32 -0700 | [diff] [blame] | 66 | PRODUCT_COPY_FILES += \ |
Jackeagle | d6811aa | 2019-09-24 08:26:40 +0200 | [diff] [blame] | 67 | 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] | 68 | |
Luca Stefani | 214dfb9 | 2019-07-25 18:05:40 +0200 | [diff] [blame] | 69 | # Enforce privapp-permissions whitelist |
| 70 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
| 71 | ro.control_privapp_permissions=enforce |
| 72 | |
Michael Bestas | f8b28f1 | 2019-04-12 02:08:21 +0300 | [diff] [blame] | 73 | # Include AOSP audio files |
Jackeagle | d6811aa | 2019-09-24 08:26:40 +0200 | [diff] [blame] | 74 | include vendor/bliss/config/aosp_audio.mk |
Michael Bestas | f8b28f1 | 2019-04-12 02:08:21 +0300 | [diff] [blame] | 75 | |
Jackeagle | d6811aa | 2019-09-24 08:26:40 +0200 | [diff] [blame] | 76 | # Include Bliss audio files |
| 77 | include vendor/bliss/config/bliss_audio.mk |
Arne Coucheron | 61536d4 | 2016-09-09 00:04:09 +0200 | [diff] [blame] | 78 | |
Sam Mortimer | 19ce2d3 | 2017-09-18 21:05:19 -0700 | [diff] [blame] | 79 | ifneq ($(TARGET_DISABLE_LINEAGE_SDK), true) |
| 80 | # Lineage SDK |
Jackeagle | d6811aa | 2019-09-24 08:26:40 +0200 | [diff] [blame] | 81 | include vendor/bliss/config/lineage_sdk_common.mk |
Luca Stefani | 2580197 | 2016-08-27 00:44:50 +0200 | [diff] [blame] | 82 | endif |
Adnan Begovic | f3610f5 | 2016-03-15 14:17:47 -0700 | [diff] [blame] | 83 | |
Michael Bestas | beb05c8 | 2017-07-18 19:57:26 +0300 | [diff] [blame] | 84 | # TWRP |
| 85 | ifeq ($(WITH_TWRP),true) |
Jackeagle | d6811aa | 2019-09-24 08:26:40 +0200 | [diff] [blame] | 86 | include vendor/bliss/config/twrp.mk |
Michael Bestas | beb05c8 | 2017-07-18 19:57:26 +0300 | [diff] [blame] | 87 | endif |
| 88 | |
Luca Stefani | c4d1190 | 2019-01-05 11:46:23 +0100 | [diff] [blame] | 89 | # Do not include art debug targets |
| 90 | PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD := false |
| 91 | |
| 92 | # Strip the local variable table and the local variable type table to reduce |
| 93 | # the size of the system image. This has no bearing on stack traces, but will |
| 94 | # leave less information available via JDWP. |
| 95 | PRODUCT_MINIMIZE_JAVA_DEBUG_INFO := true |
| 96 | |
Luca Stefani | 24ada06 | 2017-08-17 21:43:22 +0200 | [diff] [blame] | 97 | # Disable vendor restrictions |
| 98 | PRODUCT_RESTRICT_VENDOR_FILES := false |
| 99 | |
Joey Rizzoli | 73a3965 | 2016-11-23 21:19:00 +0100 | [diff] [blame] | 100 | # Storage manager |
Rashed Abdel-Tawab | b6fb3e1 | 2018-03-02 10:21:37 -0500 | [diff] [blame] | 101 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
Joey Rizzoli | 73a3965 | 2016-11-23 21:19:00 +0100 | [diff] [blame] | 102 | ro.storage_manager.enabled=true |
| 103 | |
Luca Stefani | 0e38790 | 2020-03-13 23:15:16 +0100 | [diff] [blame] | 104 | # Root |
Luca Stefani | 06b93c0 | 2019-11-03 00:06:45 +0100 | [diff] [blame] | 105 | PRODUCT_PACKAGES += \ |
| 106 | adb_root |
Luca Stefani | 0e38790 | 2020-03-13 23:15:16 +0100 | [diff] [blame] | 107 | ifneq ($(TARGET_BUILD_VARIANT),user) |
Abhisek Devkota | 6af9acb | 2016-12-27 22:30:35 -0800 | [diff] [blame] | 108 | ifeq ($(WITH_SU),true) |
| 109 | PRODUCT_PACKAGES += \ |
Ricardo Cerqueira | a21887e | 2013-09-25 17:13:25 +0100 | [diff] [blame] | 110 | su |
repo Shareef Ali | 4bcfc31 | 2014-12-29 17:52:04 -0600 | [diff] [blame] | 111 | endif |
Abhisek Devkota | 6af9acb | 2016-12-27 22:30:35 -0800 | [diff] [blame] | 112 | endif |
Ricardo Cerqueira | a21887e | 2013-09-25 17:13:25 +0100 | [diff] [blame] | 113 | |
Jackeagle | d6811aa | 2019-09-24 08:26:40 +0200 | [diff] [blame] | 114 | PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS += vendor/bliss/overlay |
Ricardo Cerqueira | 4616137 | 2014-01-09 10:25:31 +0000 | [diff] [blame] | 115 | |
Jackeagle | b44ac31 | 2020-05-03 11:16:06 +0200 | [diff] [blame] | 116 | # Bliss Bootanimation |
| 117 | -include vendor/bliss/config/bootanimation.mk |
| 118 | |
Jackeagle | 59f7d84 | 2016-10-25 05:41:13 -0400 | [diff] [blame] | 119 | # Bliss Versioning System |
| 120 | -include vendor/bliss/config/versions.mk |
| 121 | |
Jackeagle | a1d9816 | 2020-10-04 06:00:55 -0400 | [diff] [blame] | 122 | # Bliss Packages |
Jackeagle | 111cd30 | 2019-07-20 05:04:32 -0400 | [diff] [blame] | 123 | -include vendor/bliss/config/bliss_packages.mk |
Jackeagle | a1d9816 | 2020-10-04 06:00:55 -0400 | [diff] [blame] | 124 | |
Jackeagle | 84fca12 | 2020-11-21 16:12:53 +0100 | [diff] [blame] | 125 | # Bliss Overlays |
| 126 | -include vendor/overlays/bliss_overlays.mk |
| 127 | |
Jackeagle | a1d9816 | 2020-10-04 06:00:55 -0400 | [diff] [blame] | 128 | # Gapps |
| 129 | ifeq ($(BLISS_BUILD_VARIANT), gapps) |
| 130 | $(call inherit-product, vendor/gapps/common/common-vendor.mk) |
| 131 | endif |
| 132 | |
Brint E. Kriebel | a1e4912 | 2014-01-31 11:59:56 -0800 | [diff] [blame] | 133 | -include $(WORKSPACE)/build_env/image-auto-bits.mk |
Jackeagle | d6811aa | 2019-09-24 08:26:40 +0200 | [diff] [blame] | 134 | -include vendor/bliss/config/partner_gms.mk |