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 | |
Arne Coucheron | 61536d4 | 2016-09-09 00:04:09 +0200 | [diff] [blame] | 27 | # Default notification/alarm sounds |
Rashed Abdel-Tawab | b6fb3e1 | 2018-03-02 10:21:37 -0500 | [diff] [blame] | 28 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
Arne Coucheron | 61536d4 | 2016-09-09 00:04:09 +0200 | [diff] [blame] | 29 | ro.config.notification_sound=Argon.ogg \ |
Zhao Wei Liew | 805a7a2 | 2016-10-03 15:30:05 +0800 | [diff] [blame] | 30 | ro.config.alarm_alert=Hassium.ogg |
Arne Coucheron | 61536d4 | 2016-09-09 00:04:09 +0200 | [diff] [blame] | 31 | |
Ricardo Cerqueira | ed63484 | 2015-09-12 00:13:01 +0100 | [diff] [blame] | 32 | ifneq ($(TARGET_BUILD_VARIANT),user) |
Steve Kondik | e4f938c | 2014-02-04 22:59:01 -0800 | [diff] [blame] | 33 | # Thank you, please drive thru! |
Rashed Abdel-Tawab | b6fb3e1 | 2018-03-02 10:21:37 -0500 | [diff] [blame] | 34 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += persist.sys.dun.override=0 |
Ricardo Cerqueira | ed63484 | 2015-09-12 00:13:01 +0100 | [diff] [blame] | 35 | endif |
Steve Kondik | e4f938c | 2014-02-04 22:59:01 -0800 | [diff] [blame] | 36 | |
codeworkx | d51aef2 | 2018-09-14 14:35:14 +0200 | [diff] [blame] | 37 | ifeq ($(TARGET_BUILD_VARIANT),eng) |
| 38 | # Disable ADB authentication |
| 39 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += ro.adb.secure=0 |
| 40 | else |
Chirayu Desai | 59df363 | 2013-02-15 21:16:39 +0530 | [diff] [blame] | 41 | # Enable ADB authentication |
Bruno Martins | e68dd97 | 2018-03-06 09:42:15 -0600 | [diff] [blame] | 42 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += ro.adb.secure=1 |
Chirayu Desai | 88401db | 2013-03-20 16:17:17 +0530 | [diff] [blame] | 43 | endif |
Chirayu Desai | 59df363 | 2013-02-15 21:16:39 +0530 | [diff] [blame] | 44 | |
Warren Togami | b1637c8 | 2012-03-03 22:37:42 -1000 | [diff] [blame] | 45 | # Backup Tool |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 46 | PRODUCT_COPY_FILES += \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 47 | vendor/bliss/prebuilt/common/bin/backuptool.sh:install/bin/backuptool.sh \ |
| 48 | vendor/bliss/prebuilt/common/bin/backuptool.functions:install/bin/backuptool.functions \ |
| 49 | vendor/bliss/prebuilt/common/bin/50-bliss.sh:$(TARGET_COPY_OUT_SYSTEM)/addon.d/50-bliss.sh \ |
| 50 | 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] | 51 | |
Dan Pasanen | 4a049b5 | 2017-01-16 19:26:50 -0600 | [diff] [blame] | 52 | ifeq ($(AB_OTA_UPDATER),true) |
| 53 | PRODUCT_COPY_FILES += \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 54 | vendor/bliss/prebuilt/common/bin/backuptool_ab.sh:$(TARGET_COPY_OUT_SYSTEM)/bin/backuptool_ab.sh \ |
| 55 | vendor/bliss/prebuilt/common/bin/backuptool_ab.functions:$(TARGET_COPY_OUT_SYSTEM)/bin/backuptool_ab.functions \ |
| 56 | 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] | 57 | endif |
| 58 | |
Abhisek Devkota | f1c5ab8 | 2016-07-06 15:18:29 -0700 | [diff] [blame] | 59 | # Backup Services whitelist |
| 60 | PRODUCT_COPY_FILES += \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 61 | 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] | 62 | |
Bruno Martins | a1b47e3 | 2017-10-16 09:37:03 +0100 | [diff] [blame] | 63 | # Lineage-specific broadcast actions whitelist |
| 64 | PRODUCT_COPY_FILES += \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 65 | 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] | 66 | |
Steve Kondik | 485527d | 2011-12-20 12:14:24 -0800 | [diff] [blame] | 67 | # init.d support |
| 68 | PRODUCT_COPY_FILES += \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 69 | vendor/bliss/prebuilt/common/etc/init.d/00banner:$(TARGET_COPY_OUT_SYSTEM)/etc/init.d/00banner \ |
| 70 | vendor/bliss/prebuilt/common/bin/sysinit:$(TARGET_COPY_OUT_SYSTEM)/bin/sysinit |
Steve Kondik | 485527d | 2011-12-20 12:14:24 -0800 | [diff] [blame] | 71 | |
Ricardo Cerqueira | fd6bfe7 | 2015-03-16 12:22:11 +0000 | [diff] [blame] | 72 | ifneq ($(TARGET_BUILD_VARIANT),user) |
James Sullins | eb7799c | 2012-04-05 20:18:18 -0500 | [diff] [blame] | 73 | # userinit support |
| 74 | PRODUCT_COPY_FILES += \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 75 | vendor/bliss/prebuilt/common/etc/init.d/90userinit:$(TARGET_COPY_OUT_SYSTEM)/etc/init.d/90userinit |
Ricardo Cerqueira | fd6bfe7 | 2015-03-16 12:22:11 +0000 | [diff] [blame] | 76 | endif |
James Sullins | eb7799c | 2012-04-05 20:18:18 -0500 | [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 | |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 86 | # Enable SIP+VoIP on all targets |
| 87 | PRODUCT_COPY_FILES += \ |
Michael Bestas | f4032b8 | 2019-09-15 16:32:33 +0300 | [diff] [blame] | 88 | 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] | 89 | |
sleeplessninja | 918a7ea | 2013-01-30 14:45:20 -0600 | [diff] [blame] | 90 | # Enable wireless Xbox 360 controller support |
| 91 | PRODUCT_COPY_FILES += \ |
Michael Bestas | f4032b8 | 2019-09-15 16:32:33 +0300 | [diff] [blame] | 92 | 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] | 93 | |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 94 | # Lineage specific permissions |
Steve Kondik | e0c12da | 2012-03-25 17:21:32 -0700 | [diff] [blame] | 95 | PRODUCT_COPY_FILES += \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 96 | vendor/bliss/config/permissions/org.lineageos.android.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/org.lineageos.android.xml \ |
| 97 | vendor/bliss/config/permissions/privapp-permissions-lineage-system.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-lineage.xml \ |
| 98 | vendor/bliss/config/permissions/privapp-permissions-lineage-product.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-lineage.xml \ |
| 99 | 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] | 100 | |
Luca Stefani | dab1569 | 2018-08-30 14:41:32 +0200 | [diff] [blame] | 101 | # Hidden API whitelist |
| 102 | PRODUCT_COPY_FILES += \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 103 | 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] | 104 | |
Han Wang | bf74b7f | 2019-01-06 06:53:03 +0100 | [diff] [blame] | 105 | # Power whitelist |
| 106 | PRODUCT_COPY_FILES += \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 107 | vendor/bliss/config/permissions/lineage-power-whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/lineage-power-whitelist.xml |
| 108 | |
| 109 | # Sensitive Phone Numbers list |
| 110 | PRODUCT_COPY_FILES += \ |
| 111 | vendor/bliss/prebuilt/common/etc/sensitive_pn.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sensitive_pn.xml |
| 112 | |
| 113 | # Default ringtone |
| 114 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
| 115 | ro.config.ringtone=Orion.ogg |
| 116 | |
| 117 | # Tethering - allow without requiring a provisioning app |
| 118 | # (for devices that check this) |
| 119 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
| 120 | net.tethering.noprovisioning=true |
Han Wang | bf74b7f | 2019-01-06 06:53:03 +0100 | [diff] [blame] | 121 | |
Michael Bestas | f8b28f1 | 2019-04-12 02:08:21 +0300 | [diff] [blame] | 122 | # Include AOSP audio files |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 123 | include vendor/bliss/config/aosp_audio.mk |
Arne Coucheron | 61536d4 | 2016-09-09 00:04:09 +0200 | [diff] [blame] | 124 | |
Sam Mortimer | 19ce2d3 | 2017-09-18 21:05:19 -0700 | [diff] [blame] | 125 | ifneq ($(TARGET_DISABLE_LINEAGE_SDK), true) |
| 126 | # Lineage SDK |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 127 | include vendor/bliss/config/lineage_sdk_common.mk |
Luca Stefani | 2580197 | 2016-08-27 00:44:50 +0200 | [diff] [blame] | 128 | endif |
Adnan Begovic | f3610f5 | 2016-03-15 14:17:47 -0700 | [diff] [blame] | 129 | |
Michael Bestas | beb05c8 | 2017-07-18 19:57:26 +0300 | [diff] [blame] | 130 | # TWRP |
| 131 | ifeq ($(WITH_TWRP),true) |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 132 | include vendor/bliss/config/twrp.mk |
Michael Bestas | beb05c8 | 2017-07-18 19:57:26 +0300 | [diff] [blame] | 133 | endif |
| 134 | |
Luca Stefani | c4d1190 | 2019-01-05 11:46:23 +0100 | [diff] [blame] | 135 | # Do not include art debug targets |
| 136 | PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD := false |
| 137 | |
| 138 | # Strip the local variable table and the local variable type table to reduce |
| 139 | # the size of the system image. This has no bearing on stack traces, but will |
| 140 | # leave less information available via JDWP. |
| 141 | PRODUCT_MINIMIZE_JAVA_DEBUG_INFO := true |
| 142 | |
codeworkx | 9f22e53 | 2018-01-06 11:59:30 +0100 | [diff] [blame] | 143 | # Charger |
Steve Kondik | 7595620 | 2016-08-07 23:21:29 -0700 | [diff] [blame] | 144 | PRODUCT_PACKAGES += \ |
codeworkx | 9f22e53 | 2018-01-06 11:59:30 +0100 | [diff] [blame] | 145 | charger_res_images |
| 146 | |
| 147 | # Custom off-mode charger |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 148 | ifeq ($(WITH_BLISS_CHARGER),true) |
codeworkx | 9f22e53 | 2018-01-06 11:59:30 +0100 | [diff] [blame] | 149 | PRODUCT_PACKAGES += \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 150 | bliss_charger_res_images \ |
Steve Kondik | 7595620 | 2016-08-07 23:21:29 -0700 | [diff] [blame] | 151 | font_log.png \ |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 152 | libhealthd.bliss |
Steve Kondik | 7595620 | 2016-08-07 23:21:29 -0700 | [diff] [blame] | 153 | endif |
| 154 | |
Joey Rizzoli | 73a3965 | 2016-11-23 21:19:00 +0100 | [diff] [blame] | 155 | # Storage manager |
Rashed Abdel-Tawab | b6fb3e1 | 2018-03-02 10:21:37 -0500 | [diff] [blame] | 156 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
Joey Rizzoli | 73a3965 | 2016-11-23 21:19:00 +0100 | [diff] [blame] | 157 | ro.storage_manager.enabled=true |
| 158 | |
Luca Stefani | 5c91b61 | 2018-01-24 16:35:11 +0100 | [diff] [blame] | 159 | # Media |
Rashed Abdel-Tawab | b6fb3e1 | 2018-03-02 10:21:37 -0500 | [diff] [blame] | 160 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
Luca Stefani | 5c91b61 | 2018-01-24 16:35:11 +0100 | [diff] [blame] | 161 | media.recorder.show_manufacturer_and_model=true |
| 162 | |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 163 | # Overlays |
| 164 | PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS += vendor/bliss/overlay |
| 165 | DEVICE_PACKAGE_OVERLAYS += vendor/bliss/overlay/common |
| 166 | # LatinIME dictionaries |
| 167 | PRODUCT_PACKAGE_OVERLAYS += vendor/bliss/overlay/dictionaries |
Abhisek Devkota | 6af9acb | 2016-12-27 22:30:35 -0800 | [diff] [blame] | 168 | |
Jackeagle | cf6f4de | 2019-09-24 04:07:22 -0400 | [diff] [blame] | 169 | # Squisher Location |
| 170 | SQUISHER_SCRIPT := vendor/bliss/tools/squisher |
Ricardo Cerqueira | 4616137 | 2014-01-09 10:25:31 +0000 | [diff] [blame] | 171 | |
Jackeagle | af1649b | 2019-07-20 05:04:32 -0400 | [diff] [blame^] | 172 | -include vendor/bliss/config/bliss_packages.mk |
| 173 | -include vendor/bliss/config/misc_packages.mk |
Brint E. Kriebel | a1e4912 | 2014-01-31 11:59:56 -0800 | [diff] [blame] | 174 | -include $(WORKSPACE)/build_env/image-auto-bits.mk |