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