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 | |
Dan Pasanen | 0344771 | 2016-12-19 11:22:55 -0600 | [diff] [blame] | 4 | PRODUCT_BRAND ?= LineageOS |
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 | |
Arne Coucheron | 61536d4 | 2016-09-09 00:04:09 +0200 | [diff] [blame] | 16 | # Default notification/alarm sounds |
Rashed Abdel-Tawab | b6fb3e1 | 2018-03-02 10:21:37 -0500 | [diff] [blame] | 17 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
Arne Coucheron | 61536d4 | 2016-09-09 00:04:09 +0200 | [diff] [blame] | 18 | ro.config.notification_sound=Argon.ogg \ |
Zhao Wei Liew | 805a7a2 | 2016-10-03 15:30:05 +0800 | [diff] [blame] | 19 | ro.config.alarm_alert=Hassium.ogg |
Arne Coucheron | 61536d4 | 2016-09-09 00:04:09 +0200 | [diff] [blame] | 20 | |
Ricardo Cerqueira | ed63484 | 2015-09-12 00:13:01 +0100 | [diff] [blame] | 21 | ifneq ($(TARGET_BUILD_VARIANT),user) |
Steve Kondik | e4f938c | 2014-02-04 22:59:01 -0800 | [diff] [blame] | 22 | # Thank you, please drive thru! |
Rashed Abdel-Tawab | b6fb3e1 | 2018-03-02 10:21:37 -0500 | [diff] [blame] | 23 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += persist.sys.dun.override=0 |
Ricardo Cerqueira | ed63484 | 2015-09-12 00:13:01 +0100 | [diff] [blame] | 24 | endif |
Steve Kondik | e4f938c | 2014-02-04 22:59:01 -0800 | [diff] [blame] | 25 | |
codeworkx | d51aef2 | 2018-09-14 14:35:14 +0200 | [diff] [blame] | 26 | ifeq ($(TARGET_BUILD_VARIANT),eng) |
| 27 | # Disable ADB authentication |
| 28 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += ro.adb.secure=0 |
| 29 | else |
Chirayu Desai | 59df363 | 2013-02-15 21:16:39 +0530 | [diff] [blame] | 30 | # Enable ADB authentication |
Bruno Martins | e68dd97 | 2018-03-06 09:42:15 -0600 | [diff] [blame] | 31 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += ro.adb.secure=1 |
Chirayu Desai | 88401db | 2013-03-20 16:17:17 +0530 | [diff] [blame] | 32 | endif |
Chirayu Desai | 59df363 | 2013-02-15 21:16:39 +0530 | [diff] [blame] | 33 | |
Warren Togami | b1637c8 | 2012-03-03 22:37:42 -1000 | [diff] [blame] | 34 | # Backup Tool |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 35 | PRODUCT_COPY_FILES += \ |
Dan Pasanen | 91f7620 | 2017-07-06 08:21:30 -0500 | [diff] [blame] | 36 | vendor/lineage/prebuilt/common/bin/backuptool.sh:install/bin/backuptool.sh \ |
| 37 | vendor/lineage/prebuilt/common/bin/backuptool.functions:install/bin/backuptool.functions \ |
Michael Bestas | f4032b8 | 2019-09-15 16:32:33 +0300 | [diff] [blame] | 38 | vendor/lineage/prebuilt/common/bin/50-lineage.sh:$(TARGET_COPY_OUT_SYSTEM)/addon.d/50-lineage.sh \ |
| 39 | vendor/lineage/prebuilt/common/bin/blacklist:$(TARGET_COPY_OUT_SYSTEM)/addon.d/blacklist |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 40 | |
Dan Pasanen | 4a049b5 | 2017-01-16 19:26:50 -0600 | [diff] [blame] | 41 | ifeq ($(AB_OTA_UPDATER),true) |
| 42 | PRODUCT_COPY_FILES += \ |
Michael Bestas | f4032b8 | 2019-09-15 16:32:33 +0300 | [diff] [blame] | 43 | vendor/lineage/prebuilt/common/bin/backuptool_ab.sh:$(TARGET_COPY_OUT_SYSTEM)/bin/backuptool_ab.sh \ |
| 44 | vendor/lineage/prebuilt/common/bin/backuptool_ab.functions:$(TARGET_COPY_OUT_SYSTEM)/bin/backuptool_ab.functions \ |
| 45 | vendor/lineage/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] | 46 | endif |
| 47 | |
Abhisek Devkota | f1c5ab8 | 2016-07-06 15:18:29 -0700 | [diff] [blame] | 48 | # Backup Services whitelist |
| 49 | PRODUCT_COPY_FILES += \ |
Michael Bestas | f4032b8 | 2019-09-15 16:32:33 +0300 | [diff] [blame] | 50 | vendor/lineage/config/permissions/backup.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/backup.xml |
Abhisek Devkota | f1c5ab8 | 2016-07-06 15:18:29 -0700 | [diff] [blame] | 51 | |
Bruno Martins | a1b47e3 | 2017-10-16 09:37:03 +0100 | [diff] [blame] | 52 | # Lineage-specific broadcast actions whitelist |
| 53 | PRODUCT_COPY_FILES += \ |
Michael Bestas | f4032b8 | 2019-09-15 16:32:33 +0300 | [diff] [blame] | 54 | vendor/lineage/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] | 55 | |
Sam Mortimer | c108852 | 2017-09-21 10:10:49 -0700 | [diff] [blame] | 56 | # Copy all Lineage-specific init rc files |
| 57 | $(foreach f,$(wildcard vendor/lineage/prebuilt/common/etc/init/*.rc),\ |
Michael Bestas | f4032b8 | 2019-09-15 16:32:33 +0300 | [diff] [blame] | 58 | $(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] | 59 | |
herriojr | 5d2c998 | 2015-10-01 11:20:26 -0700 | [diff] [blame] | 60 | # Copy over added mimetype supported in libcore.net.MimeUtils |
| 61 | PRODUCT_COPY_FILES += \ |
Michael Bestas | f4032b8 | 2019-09-15 16:32:33 +0300 | [diff] [blame] | 62 | vendor/lineage/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] | 63 | |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 64 | # Enable SIP+VoIP on all targets |
| 65 | PRODUCT_COPY_FILES += \ |
Michael Bestas | f4032b8 | 2019-09-15 16:32:33 +0300 | [diff] [blame] | 66 | 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] | 67 | |
sleeplessninja | 918a7ea | 2013-01-30 14:45:20 -0600 | [diff] [blame] | 68 | # Enable wireless Xbox 360 controller support |
| 69 | PRODUCT_COPY_FILES += \ |
Michael Bestas | f4032b8 | 2019-09-15 16:32:33 +0300 | [diff] [blame] | 70 | 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] | 71 | |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 72 | # This is Lineage! |
Steve Kondik | e0c12da | 2012-03-25 17:21:32 -0700 | [diff] [blame] | 73 | PRODUCT_COPY_FILES += \ |
Michael Bestas | f4032b8 | 2019-09-15 16:32:33 +0300 | [diff] [blame] | 74 | vendor/lineage/config/permissions/org.lineageos.android.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/org.lineageos.android.xml \ |
| 75 | vendor/lineage/config/permissions/privapp-permissions-lineage-system.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-lineage.xml \ |
Han Wang | 89521b1 | 2019-09-15 13:36:12 +0200 | [diff] [blame] | 76 | vendor/lineage/config/permissions/privapp-permissions-lineage-product.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-lineage.xml \ |
Michael Bestas | f4032b8 | 2019-09-15 16:32:33 +0300 | [diff] [blame] | 77 | vendor/lineage/config/permissions/privapp-permissions-cm-legacy.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-cm-legacy.xml |
Steve Kondik | e0c12da | 2012-03-25 17:21:32 -0700 | [diff] [blame] | 78 | |
Luca Stefani | 214dfb9 | 2019-07-25 18:05:40 +0200 | [diff] [blame] | 79 | # Enforce privapp-permissions whitelist |
| 80 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
| 81 | ro.control_privapp_permissions=enforce |
| 82 | |
Luca Stefani | dab1569 | 2018-08-30 14:41:32 +0200 | [diff] [blame] | 83 | # Hidden API whitelist |
| 84 | PRODUCT_COPY_FILES += \ |
Michael Bestas | f4032b8 | 2019-09-15 16:32:33 +0300 | [diff] [blame] | 85 | vendor/lineage/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] | 86 | |
Han Wang | bf74b7f | 2019-01-06 06:53:03 +0100 | [diff] [blame] | 87 | # Power whitelist |
| 88 | PRODUCT_COPY_FILES += \ |
Michael Bestas | f4032b8 | 2019-09-15 16:32:33 +0300 | [diff] [blame] | 89 | vendor/lineage/config/permissions/lineage-power-whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/lineage-power-whitelist.xml |
Han Wang | bf74b7f | 2019-01-06 06:53:03 +0100 | [diff] [blame] | 90 | |
Michael Bestas | f8b28f1 | 2019-04-12 02:08:21 +0300 | [diff] [blame] | 91 | # Include AOSP audio files |
| 92 | include vendor/lineage/config/aosp_audio.mk |
| 93 | |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 94 | # Include Lineage audio files |
| 95 | include vendor/lineage/config/lineage_audio.mk |
Arne Coucheron | 61536d4 | 2016-09-09 00:04:09 +0200 | [diff] [blame] | 96 | |
Sam Mortimer | 19ce2d3 | 2017-09-18 21:05:19 -0700 | [diff] [blame] | 97 | ifneq ($(TARGET_DISABLE_LINEAGE_SDK), true) |
| 98 | # Lineage SDK |
| 99 | include vendor/lineage/config/lineage_sdk_common.mk |
Luca Stefani | 2580197 | 2016-08-27 00:44:50 +0200 | [diff] [blame] | 100 | endif |
Adnan Begovic | f3610f5 | 2016-03-15 14:17:47 -0700 | [diff] [blame] | 101 | |
Michael Bestas | beb05c8 | 2017-07-18 19:57:26 +0300 | [diff] [blame] | 102 | # TWRP |
| 103 | ifeq ($(WITH_TWRP),true) |
Dan Pasanen | 91f7620 | 2017-07-06 08:21:30 -0500 | [diff] [blame] | 104 | include vendor/lineage/config/twrp.mk |
Michael Bestas | beb05c8 | 2017-07-18 19:57:26 +0300 | [diff] [blame] | 105 | endif |
| 106 | |
Luca Stefani | c4d1190 | 2019-01-05 11:46:23 +0100 | [diff] [blame] | 107 | # Do not include art debug targets |
| 108 | PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD := false |
| 109 | |
| 110 | # Strip the local variable table and the local variable type table to reduce |
| 111 | # the size of the system image. This has no bearing on stack traces, but will |
| 112 | # leave less information available via JDWP. |
| 113 | PRODUCT_MINIMIZE_JAVA_DEBUG_INFO := true |
| 114 | |
Luca Stefani | 24ada06 | 2017-08-17 21:43:22 +0200 | [diff] [blame] | 115 | # Disable vendor restrictions |
| 116 | PRODUCT_RESTRICT_VENDOR_FILES := false |
| 117 | |
Dan Pasanen | 24a1cc9 | 2016-12-28 22:59:21 -0600 | [diff] [blame] | 118 | # Bootanimation |
Asher Simonds | e035b9a | 2017-01-16 21:52:24 -0600 | [diff] [blame] | 119 | PRODUCT_PACKAGES += \ |
| 120 | bootanimation.zip |
Dan Pasanen | 24a1cc9 | 2016-12-28 22:59:21 -0600 | [diff] [blame] | 121 | |
Michael Bestas | 85fdce3 | 2019-09-13 20:58:35 +0300 | [diff] [blame] | 122 | # AOSP packages |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 123 | PRODUCT_PACKAGES += \ |
Michael Bestas | 85fdce3 | 2019-09-13 20:58:35 +0300 | [diff] [blame] | 124 | ExactCalculator \ |
| 125 | Exchange2 \ |
Steve Kondik | df96b44 | 2016-10-13 11:37:08 -0700 | [diff] [blame] | 126 | Terminal |
Koushik Dutta | 8387c32 | 2011-11-26 17:31:19 -0800 | [diff] [blame] | 127 | |
Michael Bestas | 85fdce3 | 2019-09-13 20:58:35 +0300 | [diff] [blame] | 128 | # Lineage packages |
Steve Kondik | 04a4941 | 2011-12-14 14:02:19 -0800 | [diff] [blame] | 129 | PRODUCT_PACKAGES += \ |
Steve Kondik | c4f6b97 | 2014-12-09 13:29:29 -0800 | [diff] [blame] | 130 | AudioFX \ |
Joey | 515f8e0 | 2019-04-29 12:50:45 +0200 | [diff] [blame] | 131 | Backgrounds \ |
Michael Bestas | 85fdce3 | 2019-09-13 20:58:35 +0300 | [diff] [blame] | 132 | LineageParts \ |
Sam Mortimer | 19ce2d3 | 2017-09-18 21:05:19 -0700 | [diff] [blame] | 133 | LineageSettingsProvider \ |
cretin45 | 7674e05 | 2017-02-11 11:39:59 -0800 | [diff] [blame] | 134 | LineageSetupWizard \ |
Steve Kondik | df96b44 | 2016-10-13 11:37:08 -0700 | [diff] [blame] | 135 | Eleven \ |
Joey Rizzoli | 177ab03 | 2017-04-20 22:17:37 +0200 | [diff] [blame] | 136 | Jelly \ |
Steve Kondik | df96b44 | 2016-10-13 11:37:08 -0700 | [diff] [blame] | 137 | LockClock \ |
Michael Bestas | 85fdce3 | 2019-09-13 20:58:35 +0300 | [diff] [blame] | 138 | Profiles \ |
Artem Borisov | e0ca332 | 2018-10-27 12:08:00 +0300 | [diff] [blame] | 139 | TrebuchetQuickStep \ |
Gabriele M | c7b874b | 2017-07-06 12:30:35 +0200 | [diff] [blame] | 140 | Updater \ |
Paul Keith | a23592c | 2018-04-02 00:45:00 +0000 | [diff] [blame] | 141 | WeatherProvider |
Steve Kondik | 04a4941 | 2011-12-14 14:02:19 -0800 | [diff] [blame] | 142 | |
Joey | 7f9596f | 2018-01-20 14:06:47 +0100 | [diff] [blame] | 143 | # Berry styles |
| 144 | PRODUCT_PACKAGES += \ |
Demon Singur | e6c0c25 | 2018-07-05 21:15:37 +0200 | [diff] [blame] | 145 | LineageBlackTheme \ |
Joey | 7f9596f | 2018-01-20 14:06:47 +0100 | [diff] [blame] | 146 | LineageDarkTheme \ |
| 147 | LineageBlackAccent \ |
| 148 | LineageBlueAccent \ |
| 149 | LineageBrownAccent \ |
Joey | 7091a4f | 2018-03-25 18:11:51 +0200 | [diff] [blame] | 150 | LineageCyanAccent \ |
Joey | 7f9596f | 2018-01-20 14:06:47 +0100 | [diff] [blame] | 151 | LineageGreenAccent \ |
| 152 | LineageOrangeAccent \ |
| 153 | LineagePinkAccent \ |
| 154 | LineagePurpleAccent \ |
| 155 | LineageRedAccent \ |
| 156 | LineageYellowAccent |
| 157 | |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 158 | # Extra tools in Lineage |
Sebastian Schmidt | 7d5de0c | 2012-04-15 11:39:25 +0200 | [diff] [blame] | 159 | PRODUCT_PACKAGES += \ |
Arne Coucheron | 61536d4 | 2016-09-09 00:04:09 +0200 | [diff] [blame] | 160 | 7z \ |
Tom Marshall | e08b021 | 2018-03-06 23:32:20 +0100 | [diff] [blame] | 161 | awk \ |
Arne Coucheron | 61536d4 | 2016-09-09 00:04:09 +0200 | [diff] [blame] | 162 | bash \ |
| 163 | bzip2 \ |
| 164 | curl \ |
LuK1337 | bf5dcb1 | 2019-03-22 10:42:33 +0100 | [diff] [blame] | 165 | getcap \ |
Steve Kondik | df96b44 | 2016-10-13 11:37:08 -0700 | [diff] [blame] | 166 | htop \ |
| 167 | lib7z \ |
| 168 | libsepol \ |
LuK1337 | defae4a | 2019-10-09 01:45:33 +0200 | [diff] [blame] | 169 | nano \ |
Steve Kondik | df96b44 | 2016-10-13 11:37:08 -0700 | [diff] [blame] | 170 | pigz \ |
Arne Coucheron | 61536d4 | 2016-09-09 00:04:09 +0200 | [diff] [blame] | 171 | powertop \ |
LuK1337 | bf5dcb1 | 2019-03-22 10:42:33 +0100 | [diff] [blame] | 172 | setcap \ |
Arne Coucheron | 61536d4 | 2016-09-09 00:04:09 +0200 | [diff] [blame] | 173 | unrar \ |
| 174 | unzip \ |
| 175 | vim \ |
| 176 | wget \ |
| 177 | zip |
Sebastian Schmidt | 7d5de0c | 2012-04-15 11:39:25 +0200 | [diff] [blame] | 178 | |
codeworkx | 9f22e53 | 2018-01-06 11:59:30 +0100 | [diff] [blame] | 179 | # Charger |
Steve Kondik | 7595620 | 2016-08-07 23:21:29 -0700 | [diff] [blame] | 180 | PRODUCT_PACKAGES += \ |
codeworkx | 9f22e53 | 2018-01-06 11:59:30 +0100 | [diff] [blame] | 181 | charger_res_images |
| 182 | |
| 183 | # Custom off-mode charger |
| 184 | ifeq ($(WITH_LINEAGE_CHARGER),true) |
| 185 | PRODUCT_PACKAGES += \ |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 186 | lineage_charger_res_images \ |
Steve Kondik | 7595620 | 2016-08-07 23:21:29 -0700 | [diff] [blame] | 187 | font_log.png \ |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 188 | libhealthd.lineage |
Steve Kondik | 7595620 | 2016-08-07 23:21:29 -0700 | [diff] [blame] | 189 | endif |
| 190 | |
Bruno Martins | db4aa05 | 2018-07-25 09:40:10 +0100 | [diff] [blame] | 191 | # Filesystems tools |
Scott Mertz | 2911a0e | 2015-11-09 11:35:41 -0800 | [diff] [blame] | 192 | PRODUCT_PACKAGES += \ |
Scott Mertz | 2911a0e | 2015-11-09 11:35:41 -0800 | [diff] [blame] | 193 | fsck.exfat \ |
Bruno Martins | db4aa05 | 2018-07-25 09:40:10 +0100 | [diff] [blame] | 194 | fsck.ntfs \ |
| 195 | mke2fs \ |
| 196 | mkfs.exfat \ |
| 197 | mkfs.ntfs \ |
| 198 | mount.ntfs |
Scott Mertz | 2911a0e | 2015-11-09 11:35:41 -0800 | [diff] [blame] | 199 | |
Chirayu Desai | 8636d67 | 2012-07-19 16:04:25 +0530 | [diff] [blame] | 200 | # Openssh |
| 201 | PRODUCT_PACKAGES += \ |
| 202 | scp \ |
| 203 | sftp \ |
| 204 | ssh \ |
| 205 | sshd \ |
| 206 | sshd_config \ |
| 207 | ssh-keygen \ |
Chirayu Desai | 4bacf67 | 2012-08-19 17:30:04 +0530 | [diff] [blame] | 208 | start-ssh |
| 209 | |
| 210 | # rsync |
| 211 | PRODUCT_PACKAGES += \ |
| 212 | rsync |
Chirayu Desai | 8636d67 | 2012-07-19 16:04:25 +0530 | [diff] [blame] | 213 | |
Joey Rizzoli | 73a3965 | 2016-11-23 21:19:00 +0100 | [diff] [blame] | 214 | # Storage manager |
Rashed Abdel-Tawab | b6fb3e1 | 2018-03-02 10:21:37 -0500 | [diff] [blame] | 215 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
Joey Rizzoli | 73a3965 | 2016-11-23 21:19:00 +0100 | [diff] [blame] | 216 | ro.storage_manager.enabled=true |
| 217 | |
Luca Stefani | 5c91b61 | 2018-01-24 16:35:11 +0100 | [diff] [blame] | 218 | # Media |
Rashed Abdel-Tawab | b6fb3e1 | 2018-03-02 10:21:37 -0500 | [diff] [blame] | 219 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
Luca Stefani | 5c91b61 | 2018-01-24 16:35:11 +0100 | [diff] [blame] | 220 | media.recorder.show_manufacturer_and_model=true |
| 221 | |
Ricardo Cerqueira | a21887e | 2013-09-25 17:13:25 +0100 | [diff] [blame] | 222 | # These packages are excluded from user builds |
Bruno Martins | 8d3ac29 | 2018-07-25 10:11:41 +0100 | [diff] [blame] | 223 | PRODUCT_PACKAGES_DEBUG += \ |
Bruno Martins | 3bf932e | 2019-10-07 12:12:25 +0100 | [diff] [blame] | 224 | procmem |
Abhisek Devkota | 6af9acb | 2016-12-27 22:30:35 -0800 | [diff] [blame] | 225 | |
| 226 | # Conditionally build in su |
Bruno Martins | 8d3ac29 | 2018-07-25 10:11:41 +0100 | [diff] [blame] | 227 | ifneq ($(TARGET_BUILD_VARIANT),user) |
Abhisek Devkota | 6af9acb | 2016-12-27 22:30:35 -0800 | [diff] [blame] | 228 | ifeq ($(WITH_SU),true) |
| 229 | PRODUCT_PACKAGES += \ |
Ricardo Cerqueira | a21887e | 2013-09-25 17:13:25 +0100 | [diff] [blame] | 230 | su |
repo Shareef Ali | 4bcfc31 | 2014-12-29 17:52:04 -0600 | [diff] [blame] | 231 | endif |
Abhisek Devkota | 6af9acb | 2016-12-27 22:30:35 -0800 | [diff] [blame] | 232 | endif |
Ricardo Cerqueira | a21887e | 2013-09-25 17:13:25 +0100 | [diff] [blame] | 233 | |
Rashed Abdel-Tawab | e4868cc | 2018-08-12 10:51:27 -0700 | [diff] [blame] | 234 | PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS += vendor/lineage/overlay |
Dan Pasanen | 91f7620 | 2017-07-06 08:21:30 -0500 | [diff] [blame] | 235 | DEVICE_PACKAGE_OVERLAYS += vendor/lineage/overlay/common |
Koushik Dutta | c6f7a49 | 2011-11-28 07:44:23 -0800 | [diff] [blame] | 236 | |
Rashed Abdel-Tawab | b6b3421 | 2019-09-04 15:08:51 -0700 | [diff] [blame] | 237 | PRODUCT_VERSION_MAJOR = 17 |
Rashed Abdel-Tawab | 6326caa | 2018-08-07 10:49:49 -0700 | [diff] [blame] | 238 | PRODUCT_VERSION_MINOR = 0 |
Dan Pasanen | 6935410 | 2016-08-24 10:19:50 -0500 | [diff] [blame] | 239 | PRODUCT_VERSION_MAINTENANCE := 0 |
Adrian DC | 3e85bf7 | 2016-08-06 21:47:23 +0200 | [diff] [blame] | 240 | |
Scott Mertz | a995059 | 2016-08-05 12:24:19 -0700 | [diff] [blame] | 241 | ifeq ($(TARGET_VENDOR_SHOW_MAINTENANCE_VERSION),true) |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 242 | LINEAGE_VERSION_MAINTENANCE := $(PRODUCT_VERSION_MAINTENANCE) |
Scott Mertz | a995059 | 2016-08-05 12:24:19 -0700 | [diff] [blame] | 243 | else |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 244 | LINEAGE_VERSION_MAINTENANCE := 0 |
Scott Mertz | a995059 | 2016-08-05 12:24:19 -0700 | [diff] [blame] | 245 | endif |
Koushik Dutta | c6f7a49 | 2011-11-28 07:44:23 -0800 | [diff] [blame] | 246 | |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 247 | # Set LINEAGE_BUILDTYPE from the env RELEASE_TYPE, for jenkins compat |
Ricardo Cerqueira | 554f370 | 2013-09-24 17:58:56 +0100 | [diff] [blame] | 248 | |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 249 | ifndef LINEAGE_BUILDTYPE |
Ricardo Cerqueira | 554f370 | 2013-09-24 17:58:56 +0100 | [diff] [blame] | 250 | ifdef RELEASE_TYPE |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 251 | # Starting with "LINEAGE_" is optional |
| 252 | RELEASE_TYPE := $(shell echo $(RELEASE_TYPE) | sed -e 's|^LINEAGE_||g') |
| 253 | LINEAGE_BUILDTYPE := $(RELEASE_TYPE) |
Ricardo Cerqueira | 554f370 | 2013-09-24 17:58:56 +0100 | [diff] [blame] | 254 | endif |
Warren Togami | 2128e2f | 2012-05-06 19:49:33 -1000 | [diff] [blame] | 255 | endif |
Ricardo Cerqueira | 554f370 | 2013-09-24 17:58:56 +0100 | [diff] [blame] | 256 | |
| 257 | # Filter out random types, so it'll reset to UNOFFICIAL |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 258 | ifeq ($(filter RELEASE NIGHTLY SNAPSHOT EXPERIMENTAL,$(LINEAGE_BUILDTYPE)),) |
| 259 | LINEAGE_BUILDTYPE := |
Warren Togami | 2128e2f | 2012-05-06 19:49:33 -1000 | [diff] [blame] | 260 | endif |
| 261 | |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 262 | ifdef LINEAGE_BUILDTYPE |
| 263 | ifneq ($(LINEAGE_BUILDTYPE), SNAPSHOT) |
| 264 | ifdef LINEAGE_EXTRAVERSION |
Ricardo Cerqueira | 554f370 | 2013-09-24 17:58:56 +0100 | [diff] [blame] | 265 | # Force build type to EXPERIMENTAL |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 266 | LINEAGE_BUILDTYPE := EXPERIMENTAL |
| 267 | # Remove leading dash from LINEAGE_EXTRAVERSION |
| 268 | LINEAGE_EXTRAVERSION := $(shell echo $(LINEAGE_EXTRAVERSION) | sed 's/-//') |
| 269 | # Add leading dash to LINEAGE_EXTRAVERSION |
| 270 | LINEAGE_EXTRAVERSION := -$(LINEAGE_EXTRAVERSION) |
Ricardo Cerqueira | 554f370 | 2013-09-24 17:58:56 +0100 | [diff] [blame] | 271 | endif |
| 272 | else |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 273 | ifndef LINEAGE_EXTRAVERSION |
Ricardo Cerqueira | 554f370 | 2013-09-24 17:58:56 +0100 | [diff] [blame] | 274 | # Force build type to EXPERIMENTAL, SNAPSHOT mandates a tag |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 275 | LINEAGE_BUILDTYPE := EXPERIMENTAL |
Ricardo Cerqueira | 554f370 | 2013-09-24 17:58:56 +0100 | [diff] [blame] | 276 | else |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 277 | # Remove leading dash from LINEAGE_EXTRAVERSION |
| 278 | LINEAGE_EXTRAVERSION := $(shell echo $(LINEAGE_EXTRAVERSION) | sed 's/-//') |
| 279 | # Add leading dash to LINEAGE_EXTRAVERSION |
| 280 | LINEAGE_EXTRAVERSION := -$(LINEAGE_EXTRAVERSION) |
Ricardo Cerqueira | 554f370 | 2013-09-24 17:58:56 +0100 | [diff] [blame] | 281 | endif |
Ricardo Cerqueira | d8e7666 | 2012-06-08 11:08:15 +0100 | [diff] [blame] | 282 | endif |
| 283 | else |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 284 | # If LINEAGE_BUILDTYPE is not defined, set to UNOFFICIAL |
| 285 | LINEAGE_BUILDTYPE := UNOFFICIAL |
| 286 | LINEAGE_EXTRAVERSION := |
Warren Togami | 2128e2f | 2012-05-06 19:49:33 -1000 | [diff] [blame] | 287 | endif |
| 288 | |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 289 | ifeq ($(LINEAGE_BUILDTYPE), UNOFFICIAL) |
Matt Mower | f416839 | 2013-12-13 11:04:14 -0600 | [diff] [blame] | 290 | ifneq ($(TARGET_UNOFFICIAL_BUILD_ID),) |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 291 | LINEAGE_EXTRAVERSION := -$(TARGET_UNOFFICIAL_BUILD_ID) |
Matt Mower | f416839 | 2013-12-13 11:04:14 -0600 | [diff] [blame] | 292 | endif |
| 293 | endif |
| 294 | |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 295 | ifeq ($(LINEAGE_BUILDTYPE), RELEASE) |
Ricardo Cerqueira | ae71f04 | 2013-11-11 00:55:51 +0000 | [diff] [blame] | 296 | ifndef TARGET_VENDOR_RELEASE_BUILD_ID |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 297 | LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(LINEAGE_BUILD) |
Ricardo Cerqueira | ae71f04 | 2013-11-11 00:55:51 +0000 | [diff] [blame] | 298 | else |
| 299 | ifeq ($(TARGET_BUILD_VARIANT),user) |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 300 | ifeq ($(LINEAGE_VERSION_MAINTENANCE),0) |
| 301 | LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(LINEAGE_BUILD) |
Jessica Wagantall | 79204e6 | 2016-07-14 15:42:08 -0700 | [diff] [blame] | 302 | else |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 303 | LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(LINEAGE_VERSION_MAINTENANCE)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(LINEAGE_BUILD) |
Jessica Wagantall | 79204e6 | 2016-07-14 15:42:08 -0700 | [diff] [blame] | 304 | endif |
Ricardo Cerqueira | ae71f04 | 2013-11-11 00:55:51 +0000 | [diff] [blame] | 305 | else |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 306 | LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(LINEAGE_BUILD) |
Ricardo Cerqueira | ae71f04 | 2013-11-11 00:55:51 +0000 | [diff] [blame] | 307 | endif |
| 308 | endif |
Koushik Dutta | c6f7a49 | 2011-11-28 07:44:23 -0800 | [diff] [blame] | 309 | else |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 310 | ifeq ($(LINEAGE_VERSION_MAINTENANCE),0) |
Michael Bestas | 24807ea | 2017-12-24 04:08:07 +0200 | [diff] [blame] | 311 | ifeq ($(LINEAGE_VERSION_APPEND_TIME_OF_DAY),true) |
Kevin F. Haggerty | a2440d0 | 2017-10-21 04:41:20 +0200 | [diff] [blame] | 312 | LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(shell date -u +%Y%m%d_%H%M%S)-$(LINEAGE_BUILDTYPE)$(LINEAGE_EXTRAVERSION)-$(LINEAGE_BUILD) |
| 313 | else |
| 314 | LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(shell date -u +%Y%m%d)-$(LINEAGE_BUILDTYPE)$(LINEAGE_EXTRAVERSION)-$(LINEAGE_BUILD) |
| 315 | endif |
Jessica Wagantall | 79204e6 | 2016-07-14 15:42:08 -0700 | [diff] [blame] | 316 | else |
Michael Bestas | 24807ea | 2017-12-24 04:08:07 +0200 | [diff] [blame] | 317 | ifeq ($(LINEAGE_VERSION_APPEND_TIME_OF_DAY),true) |
Kevin F. Haggerty | a2440d0 | 2017-10-21 04:41:20 +0200 | [diff] [blame] | 318 | LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(LINEAGE_VERSION_MAINTENANCE)-$(shell date -u +%Y%m%d_%H%M%S)-$(LINEAGE_BUILDTYPE)$(LINEAGE_EXTRAVERSION)-$(LINEAGE_BUILD) |
| 319 | else |
| 320 | LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(LINEAGE_VERSION_MAINTENANCE)-$(shell date -u +%Y%m%d)-$(LINEAGE_BUILDTYPE)$(LINEAGE_EXTRAVERSION)-$(LINEAGE_BUILD) |
| 321 | endif |
Jessica Wagantall | 79204e6 | 2016-07-14 15:42:08 -0700 | [diff] [blame] | 322 | endif |
Koushik Dutta | c6f7a49 | 2011-11-28 07:44:23 -0800 | [diff] [blame] | 323 | endif |
Koushik Dutta | d69b292 | 2012-02-23 14:07:44 -0800 | [diff] [blame] | 324 | |
Tom Powell | e4c8c82 | 2017-01-06 22:29:06 -0800 | [diff] [blame] | 325 | PRODUCT_EXTRA_RECOVERY_KEYS += \ |
Dan Pasanen | 91f7620 | 2017-07-06 08:21:30 -0500 | [diff] [blame] | 326 | vendor/lineage/build/target/product/security/lineage |
Tom Powell | e4c8c82 | 2017-01-06 22:29:06 -0800 | [diff] [blame] | 327 | |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 328 | -include vendor/lineage-priv/keys/keys.mk |
Ricardo Cerqueira | 178dbd6 | 2013-10-23 20:56:56 +0100 | [diff] [blame] | 329 | |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 330 | LINEAGE_DISPLAY_VERSION := $(LINEAGE_VERSION) |
Ricardo Cerqueira | 4616137 | 2014-01-09 10:25:31 +0000 | [diff] [blame] | 331 | |
Brint E. Kriebel | ac948f5 | 2014-01-24 09:58:36 -0800 | [diff] [blame] | 332 | ifneq ($(PRODUCT_DEFAULT_DEV_CERTIFICATE),) |
| 333 | ifneq ($(PRODUCT_DEFAULT_DEV_CERTIFICATE),build/target/product/security/testkey) |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 334 | ifneq ($(LINEAGE_BUILDTYPE), UNOFFICIAL) |
Zhao Wei Liew | 046484f | 2017-01-07 15:55:35 +0800 | [diff] [blame] | 335 | ifndef TARGET_VENDOR_RELEASE_BUILD_ID |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 336 | ifneq ($(LINEAGE_EXTRAVERSION),) |
| 337 | # Remove leading dash from LINEAGE_EXTRAVERSION |
| 338 | LINEAGE_EXTRAVERSION := $(shell echo $(LINEAGE_EXTRAVERSION) | sed 's/-//') |
| 339 | TARGET_VENDOR_RELEASE_BUILD_ID := $(LINEAGE_EXTRAVERSION) |
Zhao Wei Liew | 046484f | 2017-01-07 15:55:35 +0800 | [diff] [blame] | 340 | else |
| 341 | TARGET_VENDOR_RELEASE_BUILD_ID := $(shell date -u +%Y%m%d) |
| 342 | endif |
| 343 | else |
| 344 | TARGET_VENDOR_RELEASE_BUILD_ID := $(TARGET_VENDOR_RELEASE_BUILD_ID) |
| 345 | endif |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 346 | ifeq ($(LINEAGE_VERSION_MAINTENANCE),0) |
| 347 | LINEAGE_DISPLAY_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(LINEAGE_BUILD) |
Zhao Wei Liew | 046484f | 2017-01-07 15:55:35 +0800 | [diff] [blame] | 348 | else |
Luca Stefani | 5c60e4f | 2017-08-17 19:28:48 +0200 | [diff] [blame] | 349 | LINEAGE_DISPLAY_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(LINEAGE_VERSION_MAINTENANCE)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(LINEAGE_BUILD) |
Zhao Wei Liew | 046484f | 2017-01-07 15:55:35 +0800 | [diff] [blame] | 350 | endif |
Ricardo Cerqueira | 4616137 | 2014-01-09 10:25:31 +0000 | [diff] [blame] | 351 | endif |
Ricardo Cerqueira | 4616137 | 2014-01-09 10:25:31 +0000 | [diff] [blame] | 352 | endif |
Ricardo Cerqueira | 74b4f9b | 2014-01-11 16:00:16 +0000 | [diff] [blame] | 353 | endif |
Ricardo Cerqueira | 4616137 | 2014-01-09 10:25:31 +0000 | [diff] [blame] | 354 | |
Brint E. Kriebel | a1e4912 | 2014-01-31 11:59:56 -0800 | [diff] [blame] | 355 | -include $(WORKSPACE)/build_env/image-auto-bits.mk |
Dan Pasanen | 91f7620 | 2017-07-06 08:21:30 -0500 | [diff] [blame] | 356 | -include vendor/lineage/config/partner_gms.mk |