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 | cf6f4de | 2019-09-24 04:07:22 -0400 | [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 | |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 8 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
| 9 | keyguard.no_require_sim=true \ |
| 10 | ro.com.google.clientidbase=android-google \ |
| 11 | ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html \ |
| 12 | ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html \ |
| 13 | ro.com.android.wifi-watchlist=GoogleGuest \ |
| 14 | ro.setupwizard.enterprise_mode=1 \ |
| 15 | ro.com.android.dateformat=MM-dd-yyyy \ |
| 16 | ro.com.android.dataroaming=false \ |
| 17 | ro.opa.eligible_device=true |
| 18 | |
Steve Kondik | 5a27f63 | 2013-11-06 13:55:11 -0800 | [diff] [blame] | 19 | ifeq ($(PRODUCT_GMS_CLIENTID_BASE),) |
Rashed Abdel-Tawab | b6fb3e1 | 2018-03-02 10:21:37 -0500 | [diff] [blame] | 20 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
Steve Kondik | 5a27f63 | 2013-11-06 13:55:11 -0800 | [diff] [blame] | 21 | ro.com.google.clientidbase=android-google |
| 22 | else |
Rashed Abdel-Tawab | b6fb3e1 | 2018-03-02 10:21:37 -0500 | [diff] [blame] | 23 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
Steve Kondik | 5a27f63 | 2013-11-06 13:55:11 -0800 | [diff] [blame] | 24 | ro.com.google.clientidbase=$(PRODUCT_GMS_CLIENTID_BASE) |
| 25 | endif |
| 26 | |
Jackeagle | e2e8354 | 2019-10-27 08:01:48 +0100 | [diff] [blame] | 27 | # Default ringtone/notification/alarm sounds |
| 28 | TARGET_DEFAULT_RINGTONE := The_big_adventure.ogg |
| 29 | TARGET_DEFAULT_NOTIFICATION_SOUND := Popcorn.ogg |
| 30 | TARGET_DEFAULT_ALARM_ALERT := Bright_morning.ogg |
Arne Coucheron | 61536d4 | 2016-09-09 00:04:09 +0200 | [diff] [blame] | 31 | |
codeworkx | d51aef2 | 2018-09-14 14:35:14 +0200 | [diff] [blame] | 32 | ifeq ($(TARGET_BUILD_VARIANT),eng) |
| 33 | # Disable ADB authentication |
| 34 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += ro.adb.secure=0 |
| 35 | else |
Chirayu Desai | 59df363 | 2013-02-15 21:16:39 +0530 | [diff] [blame] | 36 | # Enable ADB authentication |
Bruno Martins | e68dd97 | 2018-03-06 09:42:15 -0600 | [diff] [blame] | 37 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += ro.adb.secure=1 |
Chirayu Desai | 88401db | 2013-03-20 16:17:17 +0530 | [diff] [blame] | 38 | endif |
Chirayu Desai | 59df363 | 2013-02-15 21:16:39 +0530 | [diff] [blame] | 39 | |
Dyneteve | c5fa7a3 | 2019-11-04 15:15:46 +0200 | [diff] [blame] | 40 | # SetupWizard |
| 41 | PRODUCT_PRODUCT_PROPERTIES += \ |
| 42 | setupwizard.enable_assist_gesture_training=true \ |
| 43 | setupwizard.feature.baseline_setupwizard_enabled=true \ |
| 44 | setupwizard.feature.show_pixel_tos=true \ |
| 45 | setupwizard.feature.show_support_link_in_deferred_setup=false \ |
| 46 | setupwizard.theme=glif_v3_light |
| 47 | |
| 48 | # IME |
| 49 | PRODUCT_PRODUCT_PROPERTIES += \ |
| 50 | ro.com.google.ime.bs_theme=true \ |
| 51 | ro.com.google.ime.theme_id=5 |
| 52 | |
jhenrique09 | fd84a6e | 2019-12-21 20:13:07 +0100 | [diff] [blame] | 53 | # Gestures |
| 54 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 55 | ro.boot.vendor.overlay.theme=com.android.internal.systemui.navbar.gestural |
| 56 | |
Warren Togami | b1637c8 | 2012-03-03 22:37:42 -1000 | [diff] [blame] | 57 | # Backup Tool |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 58 | PRODUCT_COPY_FILES += \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 59 | vendor/bliss/prebuilt/common/bin/backuptool.sh:install/bin/backuptool.sh \ |
| 60 | vendor/bliss/prebuilt/common/bin/backuptool.functions:install/bin/backuptool.functions \ |
| 61 | vendor/bliss/prebuilt/common/bin/50-bliss.sh:$(TARGET_COPY_OUT_SYSTEM)/addon.d/50-bliss.sh \ |
| 62 | vendor/bliss/prebuilt/common/bin/blacklist:$(TARGET_COPY_OUT_SYSTEM)/addon.d/blacklist |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 63 | |
Dan Pasanen | 4a049b5 | 2017-01-16 19:26:50 -0600 | [diff] [blame] | 64 | ifeq ($(AB_OTA_UPDATER),true) |
| 65 | PRODUCT_COPY_FILES += \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 66 | vendor/bliss/prebuilt/common/bin/backuptool_ab.sh:$(TARGET_COPY_OUT_SYSTEM)/bin/backuptool_ab.sh \ |
| 67 | vendor/bliss/prebuilt/common/bin/backuptool_ab.functions:$(TARGET_COPY_OUT_SYSTEM)/bin/backuptool_ab.functions \ |
| 68 | vendor/bliss/prebuilt/common/bin/backuptool_postinstall.sh:$(TARGET_COPY_OUT_SYSTEM)/bin/backuptool_postinstall.sh |
Dan Pasanen | 4a049b5 | 2017-01-16 19:26:50 -0600 | [diff] [blame] | 69 | endif |
| 70 | |
Davide Garberi | 79343a8 | 2019-09-24 20:18:11 +0200 | [diff] [blame] | 71 | # system mount |
| 72 | PRODUCT_COPY_FILES += \ |
| 73 | vendor/bliss/prebuilt/common/bin/system-mount.sh:install/bin/system-mount.sh |
| 74 | |
Abhisek Devkota | f1c5ab8 | 2016-07-06 15:18:29 -0700 | [diff] [blame] | 75 | # Backup Services whitelist |
| 76 | PRODUCT_COPY_FILES += \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 77 | 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] | 78 | |
Bruno Martins | a1b47e3 | 2017-10-16 09:37:03 +0100 | [diff] [blame] | 79 | # Lineage-specific broadcast actions whitelist |
| 80 | PRODUCT_COPY_FILES += \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 81 | 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] | 82 | |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 83 | # Copy all Bliss-specific init rc files |
| 84 | $(foreach f,$(wildcard vendor/bliss/prebuilt/common/etc/init/*.rc),\ |
Michael Bestas | f4032b8 | 2019-09-15 16:32:33 +0300 | [diff] [blame] | 85 | $(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] | 86 | |
herriojr | 5d2c998 | 2015-10-01 11:20:26 -0700 | [diff] [blame] | 87 | # Copy over added mimetype supported in libcore.net.MimeUtils |
| 88 | PRODUCT_COPY_FILES += \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 89 | vendor/bliss/prebuilt/common/lib/content-types.properties:$(TARGET_COPY_OUT_SYSTEM)/lib/content-types.properties |
herriojr | 5d2c998 | 2015-10-01 11:20:26 -0700 | [diff] [blame] | 90 | |
LuK1337 | 7f30f4b | 2019-10-24 02:33:34 +0200 | [diff] [blame] | 91 | # Enable Android Beam on all targets |
| 92 | PRODUCT_COPY_FILES += \ |
| 93 | vendor/bliss/config/permissions/android.software.nfc.beam.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.software.nfc.beam.xml |
| 94 | |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 95 | # Enable SIP+VoIP on all targets |
| 96 | PRODUCT_COPY_FILES += \ |
Michael Bestas | f4032b8 | 2019-09-15 16:32:33 +0300 | [diff] [blame] | 97 | 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] | 98 | |
sleeplessninja | 918a7ea | 2013-01-30 14:45:20 -0600 | [diff] [blame] | 99 | # Enable wireless Xbox 360 controller support |
| 100 | PRODUCT_COPY_FILES += \ |
Michael Bestas | f4032b8 | 2019-09-15 16:32:33 +0300 | [diff] [blame] | 101 | 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] | 102 | |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 103 | # Lineage specific permissions |
Steve Kondik | e0c12da | 2012-03-25 17:21:32 -0700 | [diff] [blame] | 104 | PRODUCT_COPY_FILES += \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 105 | vendor/bliss/config/permissions/org.lineageos.android.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/org.lineageos.android.xml \ |
| 106 | vendor/bliss/config/permissions/privapp-permissions-lineage-system.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-lineage.xml \ |
| 107 | vendor/bliss/config/permissions/privapp-permissions-lineage-product.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-lineage.xml \ |
rohan | 59ae910 | 2019-12-17 11:13:55 -0500 | [diff] [blame] | 108 | vendor/bliss/config/permissions/privapp-permissions-cm-legacy.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-cm-legacy.xml |
Luca Stefani | 214dfb9 | 2019-07-25 18:05:40 +0200 | [diff] [blame] | 109 | |
Luca Stefani | dab1569 | 2018-08-30 14:41:32 +0200 | [diff] [blame] | 110 | # Hidden API whitelist |
| 111 | PRODUCT_COPY_FILES += \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 112 | vendor/bliss/config/permissions/lineage-hiddenapi-package-whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/lineage-hiddenapi-package-whitelist.xml |
Luca Stefani | dab1569 | 2018-08-30 14:41:32 +0200 | [diff] [blame] | 113 | |
Han Wang | bf74b7f | 2019-01-06 06:53:03 +0100 | [diff] [blame] | 114 | # Power whitelist |
| 115 | PRODUCT_COPY_FILES += \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 116 | vendor/bliss/config/permissions/lineage-power-whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/lineage-power-whitelist.xml |
| 117 | |
| 118 | # Sensitive Phone Numbers list |
| 119 | PRODUCT_COPY_FILES += \ |
| 120 | vendor/bliss/prebuilt/common/etc/sensitive_pn.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sensitive_pn.xml |
| 121 | |
Arne Coucheron | 0442e3b | 2019-12-18 06:34:24 +0100 | [diff] [blame] | 122 | # Pre-granted permissions |
| 123 | PRODUCT_COPY_FILES += \ |
| 124 | vendor/bliss/config/permissions/lineage-default-permissions.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/default-permissions/lineage-default-permissions.xml |
| 125 | |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 126 | # Tethering - allow without requiring a provisioning app |
| 127 | # (for devices that check this) |
| 128 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
| 129 | net.tethering.noprovisioning=true |
Han Wang | bf74b7f | 2019-01-06 06:53:03 +0100 | [diff] [blame] | 130 | |
Michael Bestas | f8b28f1 | 2019-04-12 02:08:21 +0300 | [diff] [blame] | 131 | # Include AOSP audio files |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 132 | include vendor/bliss/config/aosp_audio.mk |
Arne Coucheron | 61536d4 | 2016-09-09 00:04:09 +0200 | [diff] [blame] | 133 | |
Sam Mortimer | 19ce2d3 | 2017-09-18 21:05:19 -0700 | [diff] [blame] | 134 | ifneq ($(TARGET_DISABLE_LINEAGE_SDK), true) |
| 135 | # Lineage SDK |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 136 | include vendor/bliss/config/lineage_sdk_common.mk |
Luca Stefani | 2580197 | 2016-08-27 00:44:50 +0200 | [diff] [blame] | 137 | endif |
Adnan Begovic | f3610f5 | 2016-03-15 14:17:47 -0700 | [diff] [blame] | 138 | |
Michael Bestas | beb05c8 | 2017-07-18 19:57:26 +0300 | [diff] [blame] | 139 | # TWRP |
| 140 | ifeq ($(WITH_TWRP),true) |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 141 | include vendor/bliss/config/twrp.mk |
Michael Bestas | beb05c8 | 2017-07-18 19:57:26 +0300 | [diff] [blame] | 142 | endif |
| 143 | |
Luca Stefani | c4d1190 | 2019-01-05 11:46:23 +0100 | [diff] [blame] | 144 | # Do not include art debug targets |
| 145 | PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD := false |
| 146 | |
| 147 | # Strip the local variable table and the local variable type table to reduce |
| 148 | # the size of the system image. This has no bearing on stack traces, but will |
| 149 | # leave less information available via JDWP. |
| 150 | PRODUCT_MINIMIZE_JAVA_DEBUG_INFO := true |
| 151 | |
Luca Stefani | e2877df | 2019-10-02 15:31:28 -0600 | [diff] [blame] | 152 | # Disable vendor restrictions |
| 153 | PRODUCT_RESTRICT_VENDOR_FILES := false |
| 154 | |
codeworkx | 9f22e53 | 2018-01-06 11:59:30 +0100 | [diff] [blame] | 155 | # Charger |
Steve Kondik | 7595620 | 2016-08-07 23:21:29 -0700 | [diff] [blame] | 156 | PRODUCT_PACKAGES += \ |
codeworkx | 9f22e53 | 2018-01-06 11:59:30 +0100 | [diff] [blame] | 157 | charger_res_images |
| 158 | |
| 159 | # Custom off-mode charger |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 160 | ifeq ($(WITH_BLISS_CHARGER),true) |
codeworkx | 9f22e53 | 2018-01-06 11:59:30 +0100 | [diff] [blame] | 161 | PRODUCT_PACKAGES += \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 162 | bliss_charger_res_images \ |
Steve Kondik | 7595620 | 2016-08-07 23:21:29 -0700 | [diff] [blame] | 163 | font_log.png \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 164 | libhealthd.bliss |
Steve Kondik | 7595620 | 2016-08-07 23:21:29 -0700 | [diff] [blame] | 165 | endif |
| 166 | |
Joey Rizzoli | 73a3965 | 2016-11-23 21:19:00 +0100 | [diff] [blame] | 167 | # Storage manager |
Rashed Abdel-Tawab | b6fb3e1 | 2018-03-02 10:21:37 -0500 | [diff] [blame] | 168 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
Joey Rizzoli | 73a3965 | 2016-11-23 21:19:00 +0100 | [diff] [blame] | 169 | ro.storage_manager.enabled=true |
| 170 | |
Luca Stefani | 5c91b61 | 2018-01-24 16:35:11 +0100 | [diff] [blame] | 171 | # Media |
Rashed Abdel-Tawab | b6fb3e1 | 2018-03-02 10:21:37 -0500 | [diff] [blame] | 172 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
Luca Stefani | 5c91b61 | 2018-01-24 16:35:11 +0100 | [diff] [blame] | 173 | media.recorder.show_manufacturer_and_model=true |
| 174 | |
Wei Wang | 2228089 | 2018-02-02 13:01:38 -0800 | [diff] [blame^] | 175 | # Dex preopt |
| 176 | PRODUCT_DEXPREOPT_SPEED_APPS += \ |
| 177 | SystemUIGoogle |
| 178 | |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 179 | # Overlays |
| 180 | PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS += vendor/bliss/overlay |
| 181 | DEVICE_PACKAGE_OVERLAYS += vendor/bliss/overlay/common |
Jackeagle | d031d94 | 2016-10-25 05:41:13 -0400 | [diff] [blame] | 182 | |
Jackeagle | 146cd8a | 2019-10-30 03:46:38 -0400 | [diff] [blame] | 183 | # Google Audio |
| 184 | $(call inherit-product-if-exists, frameworks/base/data/sounds/GoogleAudio.mk) |
| 185 | |
Jackeagle | d031d94 | 2016-10-25 05:41:13 -0400 | [diff] [blame] | 186 | # Bliss Versioning System |
| 187 | -include vendor/bliss/config/versions.mk |
| 188 | |
Jackeagle | f32e91f | 2019-09-24 05:35:33 -0400 | [diff] [blame] | 189 | # Bliss Packages |
Jackeagle | af1649b | 2019-07-20 05:04:32 -0400 | [diff] [blame] | 190 | -include vendor/bliss/config/bliss_packages.mk |
Jackeagle | f32e91f | 2019-09-24 05:35:33 -0400 | [diff] [blame] | 191 | |
| 192 | # Misc Packages |
Jackeagle | af1649b | 2019-07-20 05:04:32 -0400 | [diff] [blame] | 193 | -include vendor/bliss/config/misc_packages.mk |
Jackeagle | f32e91f | 2019-09-24 05:35:33 -0400 | [diff] [blame] | 194 | |
Jackeagle | a2a61dc | 2019-11-07 23:21:11 -0500 | [diff] [blame] | 195 | # Themes and Overlays |
| 196 | -include vendor/themes/bliss_themes.mk |
| 197 | |
Brint E. Kriebel | a1e4912 | 2014-01-31 11:59:56 -0800 | [diff] [blame] | 198 | -include $(WORKSPACE)/build_env/image-auto-bits.mk |
Jackeagle | f32e91f | 2019-09-24 05:35:33 -0400 | [diff] [blame] | 199 | -include vendor/bliss/config/partner_gms.mk |