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 | |
Warren Togami | b1637c8 | 2012-03-03 22:37:42 -1000 | [diff] [blame] | 53 | # Backup Tool |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 54 | PRODUCT_COPY_FILES += \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 55 | vendor/bliss/prebuilt/common/bin/backuptool.sh:install/bin/backuptool.sh \ |
| 56 | vendor/bliss/prebuilt/common/bin/backuptool.functions:install/bin/backuptool.functions \ |
Wang Han | d4e9ef2 | 2020-02-05 16:45:15 +0800 | [diff] [blame] | 57 | 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] | 58 | |
Dan Pasanen | 4a049b5 | 2017-01-16 19:26:50 -0600 | [diff] [blame] | 59 | ifeq ($(AB_OTA_UPDATER),true) |
| 60 | PRODUCT_COPY_FILES += \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 61 | vendor/bliss/prebuilt/common/bin/backuptool_ab.sh:$(TARGET_COPY_OUT_SYSTEM)/bin/backuptool_ab.sh \ |
| 62 | vendor/bliss/prebuilt/common/bin/backuptool_ab.functions:$(TARGET_COPY_OUT_SYSTEM)/bin/backuptool_ab.functions \ |
| 63 | vendor/bliss/prebuilt/common/bin/backuptool_postinstall.sh:$(TARGET_COPY_OUT_SYSTEM)/bin/backuptool_postinstall.sh |
Luca Stefani | 318f2fe | 2020-03-26 08:15:14 +0100 | [diff] [blame] | 64 | ifneq ($(TARGET_BUILD_VARIANT),user) |
| 65 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
| 66 | ro.ota.allow_downgrade=true |
| 67 | endif |
Dan Pasanen | 4a049b5 | 2017-01-16 19:26:50 -0600 | [diff] [blame] | 68 | endif |
| 69 | |
Abhisek Devkota | f1c5ab8 | 2016-07-06 15:18:29 -0700 | [diff] [blame] | 70 | # Backup Services whitelist |
| 71 | PRODUCT_COPY_FILES += \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 72 | 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] | 73 | |
Bruno Martins | a1b47e3 | 2017-10-16 09:37:03 +0100 | [diff] [blame] | 74 | # Lineage-specific broadcast actions whitelist |
| 75 | PRODUCT_COPY_FILES += \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 76 | 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] | 77 | |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 78 | # Copy all Bliss-specific init rc files |
| 79 | $(foreach f,$(wildcard vendor/bliss/prebuilt/common/etc/init/*.rc),\ |
Michael Bestas | f4032b8 | 2019-09-15 16:32:33 +0300 | [diff] [blame] | 80 | $(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] | 81 | |
herriojr | 5d2c998 | 2015-10-01 11:20:26 -0700 | [diff] [blame] | 82 | # Copy over added mimetype supported in libcore.net.MimeUtils |
| 83 | PRODUCT_COPY_FILES += \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 84 | 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] | 85 | |
LuK1337 | 7f30f4b | 2019-10-24 02:33:34 +0200 | [diff] [blame] | 86 | # Enable Android Beam on all targets |
| 87 | PRODUCT_COPY_FILES += \ |
| 88 | vendor/bliss/config/permissions/android.software.nfc.beam.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.software.nfc.beam.xml |
| 89 | |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 90 | # Enable SIP+VoIP on all targets |
| 91 | PRODUCT_COPY_FILES += \ |
Michael Bestas | f4032b8 | 2019-09-15 16:32:33 +0300 | [diff] [blame] | 92 | 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] | 93 | |
sleeplessninja | 918a7ea | 2013-01-30 14:45:20 -0600 | [diff] [blame] | 94 | # Enable wireless Xbox 360 controller support |
| 95 | PRODUCT_COPY_FILES += \ |
Michael Bestas | f4032b8 | 2019-09-15 16:32:33 +0300 | [diff] [blame] | 96 | 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] | 97 | |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 98 | # Lineage specific permissions |
Steve Kondik | e0c12da | 2012-03-25 17:21:32 -0700 | [diff] [blame] | 99 | PRODUCT_COPY_FILES += \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 100 | vendor/bliss/config/permissions/org.lineageos.android.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/org.lineageos.android.xml \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 101 | |
| 102 | # Sensitive Phone Numbers list |
| 103 | PRODUCT_COPY_FILES += \ |
| 104 | vendor/bliss/prebuilt/common/etc/sensitive_pn.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sensitive_pn.xml |
| 105 | |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 106 | # Tethering - allow without requiring a provisioning app |
| 107 | # (for devices that check this) |
| 108 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
| 109 | net.tethering.noprovisioning=true |
Han Wang | bf74b7f | 2019-01-06 06:53:03 +0100 | [diff] [blame] | 110 | |
Sam Mortimer | 19ce2d3 | 2017-09-18 21:05:19 -0700 | [diff] [blame] | 111 | ifneq ($(TARGET_DISABLE_LINEAGE_SDK), true) |
| 112 | # Lineage SDK |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 113 | include vendor/bliss/config/lineage_sdk_common.mk |
Luca Stefani | 2580197 | 2016-08-27 00:44:50 +0200 | [diff] [blame] | 114 | endif |
Adnan Begovic | f3610f5 | 2016-03-15 14:17:47 -0700 | [diff] [blame] | 115 | |
Michael Bestas | beb05c8 | 2017-07-18 19:57:26 +0300 | [diff] [blame] | 116 | # TWRP |
| 117 | ifeq ($(WITH_TWRP),true) |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 118 | include vendor/bliss/config/twrp.mk |
Michael Bestas | beb05c8 | 2017-07-18 19:57:26 +0300 | [diff] [blame] | 119 | endif |
| 120 | |
Luca Stefani | c4d1190 | 2019-01-05 11:46:23 +0100 | [diff] [blame] | 121 | # Do not include art debug targets |
| 122 | PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD := false |
| 123 | |
| 124 | # Strip the local variable table and the local variable type table to reduce |
| 125 | # the size of the system image. This has no bearing on stack traces, but will |
| 126 | # leave less information available via JDWP. |
| 127 | PRODUCT_MINIMIZE_JAVA_DEBUG_INFO := true |
| 128 | |
Luca Stefani | e2877df | 2019-10-02 15:31:28 -0600 | [diff] [blame] | 129 | # Disable vendor restrictions |
| 130 | PRODUCT_RESTRICT_VENDOR_FILES := false |
| 131 | |
codeworkx | 9f22e53 | 2018-01-06 11:59:30 +0100 | [diff] [blame] | 132 | # Charger |
Steve Kondik | 7595620 | 2016-08-07 23:21:29 -0700 | [diff] [blame] | 133 | PRODUCT_PACKAGES += \ |
codeworkx | 9f22e53 | 2018-01-06 11:59:30 +0100 | [diff] [blame] | 134 | charger_res_images |
| 135 | |
| 136 | # Custom off-mode charger |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 137 | ifeq ($(WITH_BLISS_CHARGER),true) |
codeworkx | 9f22e53 | 2018-01-06 11:59:30 +0100 | [diff] [blame] | 138 | PRODUCT_PACKAGES += \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 139 | bliss_charger_res_images \ |
Steve Kondik | 7595620 | 2016-08-07 23:21:29 -0700 | [diff] [blame] | 140 | font_log.png \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 141 | libhealthd.bliss |
Steve Kondik | 7595620 | 2016-08-07 23:21:29 -0700 | [diff] [blame] | 142 | endif |
| 143 | |
Joey Rizzoli | 73a3965 | 2016-11-23 21:19:00 +0100 | [diff] [blame] | 144 | # Storage manager |
Rashed Abdel-Tawab | b6fb3e1 | 2018-03-02 10:21:37 -0500 | [diff] [blame] | 145 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
Joey Rizzoli | 73a3965 | 2016-11-23 21:19:00 +0100 | [diff] [blame] | 146 | ro.storage_manager.enabled=true |
| 147 | |
Luca Stefani | 5c91b61 | 2018-01-24 16:35:11 +0100 | [diff] [blame] | 148 | # Media |
Rashed Abdel-Tawab | b6fb3e1 | 2018-03-02 10:21:37 -0500 | [diff] [blame] | 149 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
Luca Stefani | 5c91b61 | 2018-01-24 16:35:11 +0100 | [diff] [blame] | 150 | media.recorder.show_manufacturer_and_model=true |
| 151 | |
Wei Wang | 2228089 | 2018-02-02 13:01:38 -0800 | [diff] [blame] | 152 | # Dex preopt |
| 153 | PRODUCT_DEXPREOPT_SPEED_APPS += \ |
razorloves | 582dad2 | 2019-12-01 23:46:46 -0600 | [diff] [blame] | 154 | SystemUI |
Wei Wang | 2228089 | 2018-02-02 13:01:38 -0800 | [diff] [blame] | 155 | |
rohan | f9a7dd6 | 2020-05-29 09:33:26 -0400 | [diff] [blame^] | 156 | # Root |
Luca Stefani | c61824c | 2019-11-03 00:06:45 +0100 | [diff] [blame] | 157 | PRODUCT_PACKAGES += \ |
| 158 | adb_root |
Luca Stefani | c61824c | 2019-11-03 00:06:45 +0100 | [diff] [blame] | 159 | |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 160 | # Overlays |
| 161 | PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS += vendor/bliss/overlay |
| 162 | DEVICE_PACKAGE_OVERLAYS += vendor/bliss/overlay/common |
Jackeagle | d031d94 | 2016-10-25 05:41:13 -0400 | [diff] [blame] | 163 | |
Jackeagle | 146cd8a | 2019-10-30 03:46:38 -0400 | [diff] [blame] | 164 | # Google Audio |
| 165 | $(call inherit-product-if-exists, frameworks/base/data/sounds/GoogleAudio.mk) |
| 166 | |
jhenrique09 | fd23c67 | 2020-03-27 16:55:56 -0300 | [diff] [blame] | 167 | # Face Unlock |
| 168 | TARGET_FACE_UNLOCK_SUPPORTED := false |
| 169 | ifneq ($(TARGET_DISABLE_ALTERNATIVE_FACE_UNLOCK), true) |
| 170 | PRODUCT_PACKAGES += \ |
| 171 | FaceUnlockService |
| 172 | TARGET_FACE_UNLOCK_SUPPORTED := true |
| 173 | endif |
| 174 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
| 175 | ro.face.moto_unlock_service=$(TARGET_FACE_UNLOCK_SUPPORTED) |
| 176 | |
Jackeagle | 132d536 | 2020-05-03 11:16:06 +0200 | [diff] [blame] | 177 | # Bliss Bootanimation |
| 178 | -include vendor/bliss/config/bootanimation.mk |
| 179 | |
Jackeagle | d031d94 | 2016-10-25 05:41:13 -0400 | [diff] [blame] | 180 | # Bliss Versioning System |
| 181 | -include vendor/bliss/config/versions.mk |
| 182 | |
Jackeagle | f32e91f | 2019-09-24 05:35:33 -0400 | [diff] [blame] | 183 | # Bliss Packages |
Jackeagle | af1649b | 2019-07-20 05:04:32 -0400 | [diff] [blame] | 184 | -include vendor/bliss/config/bliss_packages.mk |
Jackeagle | f32e91f | 2019-09-24 05:35:33 -0400 | [diff] [blame] | 185 | |
| 186 | # Misc Packages |
Jackeagle | af1649b | 2019-07-20 05:04:32 -0400 | [diff] [blame] | 187 | -include vendor/bliss/config/misc_packages.mk |
Jackeagle | f32e91f | 2019-09-24 05:35:33 -0400 | [diff] [blame] | 188 | |
Jackeagle | a2a61dc | 2019-11-07 23:21:11 -0500 | [diff] [blame] | 189 | # Themes and Overlays |
| 190 | -include vendor/themes/bliss_themes.mk |
| 191 | |
Brint E. Kriebel | a1e4912 | 2014-01-31 11:59:56 -0800 | [diff] [blame] | 192 | -include $(WORKSPACE)/build_env/image-auto-bits.mk |
Jackeagle | f32e91f | 2019-09-24 05:35:33 -0400 | [diff] [blame] | 193 | -include vendor/bliss/config/partner_gms.mk |