blob: 45f5f593a2d607eda5f15c512543d279065e98e2 [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
codeworkxd51aef22018-09-14 14:35:14 +020016ifeq ($(TARGET_BUILD_VARIANT),eng)
17# 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
Chirayu Desai88401db2013-03-20 16:17:17 +053022endif
Chirayu Desai59df3632013-02-15 21:16:39 +053023
Warren Togamib1637c82012-03-03 22:37:42 -100024# Backup Tool
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000025PRODUCT_COPY_FILES += \
Jackeagled6811aa2019-09-24 08:26:40 +020026 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 Cerqueirae1f37382011-11-27 19:56:54 +000029
Dan Pasanen3e7435c2019-10-23 08:35:32 -050030ifneq ($(AB_OTA_PARTITIONS),)
Dan Pasanen4a049b52017-01-16 19:26:50 -060031PRODUCT_COPY_FILES += \
Jackeagled6811aa2019-09-24 08:26:40 +020032 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 Stefanib3bd7282020-03-26 08:15:14 +010035ifneq ($(TARGET_BUILD_VARIANT),user)
36PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
37 ro.ota.allow_downgrade=true
38endif
Dan Pasanen4a049b52017-01-16 19:26:50 -060039endif
40
Abhisek Devkotaf1c5ab82016-07-06 15:18:29 -070041# Backup Services whitelist
42PRODUCT_COPY_FILES += \
Jackeagled6811aa2019-09-24 08:26:40 +020043 vendor/bliss/config/permissions/backup.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/backup.xml
Abhisek Devkotaf1c5ab82016-07-06 15:18:29 -070044
Bruno Martinsa1b47e32017-10-16 09:37:03 +010045# Lineage-specific broadcast actions whitelist
46PRODUCT_COPY_FILES += \
Jackeagled6811aa2019-09-24 08:26:40 +020047 vendor/bliss/config/permissions/lineage-sysconfig.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/lineage-sysconfig.xml
Bruno Martinsa1b47e32017-10-16 09:37:03 +010048
Sam Mortimerc1088522017-09-21 10:10:49 -070049# Copy all Lineage-specific init rc files
Jackeagled6811aa2019-09-24 08:26:40 +020050$(foreach f,$(wildcard vendor/bliss/prebuilt/common/etc/init/*.rc),\
Michael Bestasf4032b82019-09-15 16:32:33 +030051 $(eval PRODUCT_COPY_FILES += $(f):$(TARGET_COPY_OUT_SYSTEM)/etc/init/$(notdir $f)))
Ricardo Cerqueira8f412cb2012-10-18 16:38:25 +010052
herriojr5d2c9982015-10-01 11:20:26 -070053# Copy over added mimetype supported in libcore.net.MimeUtils
54PRODUCT_COPY_FILES += \
Jackeagled6811aa2019-09-24 08:26:40 +020055 vendor/bliss/prebuilt/common/lib/content-types.properties:$(TARGET_COPY_OUT_SYSTEM)/lib/content-types.properties
herriojr5d2c9982015-10-01 11:20:26 -070056
LuK13374f0ad572019-10-24 02:33:34 +020057# Enable Android Beam on all targets
58PRODUCT_COPY_FILES += \
Jackeagled6811aa2019-09-24 08:26:40 +020059 vendor/bliss/config/permissions/android.software.nfc.beam.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.software.nfc.beam.xml
LuK13374f0ad572019-10-24 02:33:34 +020060
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000061# Enable SIP+VoIP on all targets
62PRODUCT_COPY_FILES += \
Michael Bestasf4032b82019-09-15 16:32:33 +030063 frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.software.sip.voip.xml
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000064
sleeplessninja918a7ea2013-01-30 14:45:20 -060065# Enable wireless Xbox 360 controller support
66PRODUCT_COPY_FILES += \
Michael Bestasf4032b82019-09-15 16:32:33 +030067 frameworks/base/data/keyboards/Vendor_045e_Product_028e.kl:$(TARGET_COPY_OUT_SYSTEM)/usr/keylayout/Vendor_045e_Product_0719.kl
sleeplessninja918a7ea2013-01-30 14:45:20 -060068
Jackeagled6811aa2019-09-24 08:26:40 +020069# Lineage specific permissions
Steve Kondike0c12da2012-03-25 17:21:32 -070070PRODUCT_COPY_FILES += \
Jackeagled6811aa2019-09-24 08:26:40 +020071 vendor/bliss/config/permissions/org.lineageos.android.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/org.lineageos.android.xml
Steve Kondike0c12da2012-03-25 17:21:32 -070072
Luca Stefani214dfb92019-07-25 18:05:40 +020073# Enforce privapp-permissions whitelist
74PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
75 ro.control_privapp_permissions=enforce
76
Michael Bestasf8b28f12019-04-12 02:08:21 +030077# Include AOSP audio files
Jackeagled6811aa2019-09-24 08:26:40 +020078include vendor/bliss/config/aosp_audio.mk
Michael Bestasf8b28f12019-04-12 02:08:21 +030079
Jackeagled6811aa2019-09-24 08:26:40 +020080# Include Bliss audio files
81include vendor/bliss/config/bliss_audio.mk
Arne Coucheron61536d42016-09-09 00:04:09 +020082
Sam Mortimer19ce2d32017-09-18 21:05:19 -070083ifneq ($(TARGET_DISABLE_LINEAGE_SDK), true)
84# Lineage SDK
Jackeagled6811aa2019-09-24 08:26:40 +020085include vendor/bliss/config/lineage_sdk_common.mk
Luca Stefani25801972016-08-27 00:44:50 +020086endif
Adnan Begovicf3610f52016-03-15 14:17:47 -070087
Michael Bestasbeb05c82017-07-18 19:57:26 +030088# TWRP
89ifeq ($(WITH_TWRP),true)
Jackeagled6811aa2019-09-24 08:26:40 +020090include vendor/bliss/config/twrp.mk
Michael Bestasbeb05c82017-07-18 19:57:26 +030091endif
92
Luca Stefanic4d11902019-01-05 11:46:23 +010093# Do not include art debug targets
94PRODUCT_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.
99PRODUCT_MINIMIZE_JAVA_DEBUG_INFO := true
100
Luca Stefani24ada062017-08-17 21:43:22 +0200101# Disable vendor restrictions
102PRODUCT_RESTRICT_VENDOR_FILES := false
103
Joey Rizzoli73a39652016-11-23 21:19:00 +0100104# Storage manager
Rashed Abdel-Tawabb6fb3e12018-03-02 10:21:37 -0500105PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
Joey Rizzoli73a39652016-11-23 21:19:00 +0100106 ro.storage_manager.enabled=true
107
Luca Stefani0e387902020-03-13 23:15:16 +0100108# Root
Luca Stefani06b93c02019-11-03 00:06:45 +0100109PRODUCT_PACKAGES += \
110 adb_root
Luca Stefani0e387902020-03-13 23:15:16 +0100111ifneq ($(TARGET_BUILD_VARIANT),user)
Abhisek Devkota6af9acb2016-12-27 22:30:35 -0800112ifeq ($(WITH_SU),true)
113PRODUCT_PACKAGES += \
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +0100114 su
repo Shareef Ali4bcfc312014-12-29 17:52:04 -0600115endif
Abhisek Devkota6af9acb2016-12-27 22:30:35 -0800116endif
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +0100117
Jackeagled6811aa2019-09-24 08:26:40 +0200118PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS += vendor/bliss/overlay
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000119
Jackeagleb44ac312020-05-03 11:16:06 +0200120# Bliss Bootanimation
121-include vendor/bliss/config/bootanimation.mk
122
Jackeagle59f7d842016-10-25 05:41:13 -0400123# Bliss Versioning System
124-include vendor/bliss/config/versions.mk
125
Jackeaglea1d98162020-10-04 06:00:55 -0400126# Bliss Packages
Jackeagle111cd302019-07-20 05:04:32 -0400127-include vendor/bliss/config/bliss_packages.mk
Jackeaglea1d98162020-10-04 06:00:55 -0400128
Jackeagle84fca122020-11-21 16:12:53 +0100129# Bliss Overlays
130-include vendor/overlays/bliss_overlays.mk
131
Jackeaglea1d98162020-10-04 06:00:55 -0400132# Gapps
133ifeq ($(BLISS_BUILD_VARIANT), gapps)
134$(call inherit-product, vendor/gapps/common/common-vendor.mk)
135endif
136
Brint E. Kriebela1e49122014-01-31 11:59:56 -0800137-include $(WORKSPACE)/build_env/image-auto-bits.mk
Jackeagled6811aa2019-09-24 08:26:40 +0200138-include vendor/bliss/config/partner_gms.mk