Doug Zongker | 3f96494 | 2013-02-15 14:01:03 -0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2013 The Android Open Source Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
| 17 | # Base configuration for most consumer android devices. Do not put |
| 18 | # things that are specific to communication devices (phones, tables, |
| 19 | # etc.) here -- for that, use core.mk. |
| 20 | |
| 21 | PRODUCT_BRAND := generic |
| 22 | PRODUCT_DEVICE := generic |
| 23 | PRODUCT_NAME := core |
| 24 | |
| 25 | PRODUCT_PACKAGES += \ |
Doug Zongker | 3f96494 | 2013-02-15 14:01:03 -0800 | [diff] [blame] | 26 | BackupRestoreConfirmation \ |
Eugene Susla | 2e83763 | 2017-02-01 15:48:28 -0800 | [diff] [blame] | 27 | CompanionDeviceManager \ |
Amith Yamasani | 6f7873c | 2016-05-13 11:25:07 -0700 | [diff] [blame] | 28 | CtsShimPrebuilt \ |
Todd Kennedy | 98ffa93 | 2016-05-03 16:11:38 +0000 | [diff] [blame] | 29 | CtsShimPrivPrebuilt \ |
| 30 | DownloadProvider \ |
Svetoslav Ganov | 8ead371 | 2016-04-07 15:29:55 -0700 | [diff] [blame] | 31 | ExtShared \ |
| 32 | ExtServices \ |
Doug Zongker | 3f96494 | 2013-02-15 14:01:03 -0800 | [diff] [blame] | 33 | HTMLViewer \ |
| 34 | MediaProvider \ |
| 35 | PackageInstaller \ |
| 36 | SettingsProvider \ |
| 37 | Shell \ |
Joseph Wen | 3a260d6 | 2015-02-25 14:04:57 -0500 | [diff] [blame] | 38 | StatementService \ |
Todd Kennedy | 98ffa93 | 2016-05-03 16:11:38 +0000 | [diff] [blame] | 39 | WallpaperBackup \ |
Jiyong Park | 279e3c2 | 2017-04-15 14:39:04 +0900 | [diff] [blame] | 40 | android.hidl.base-V1.0-java \ |
| 41 | android.hidl.manager-V1.0-java \ |
leozwang | 38bbc70 | 2014-07-12 22:03:52 -0700 | [diff] [blame] | 42 | bcc \ |
Doug Zongker | 3f96494 | 2013-02-15 14:01:03 -0800 | [diff] [blame] | 43 | bu \ |
Mike Lockwood | b0a6278 | 2014-09-08 10:34:18 -0700 | [diff] [blame] | 44 | com.android.future.usb.accessory \ |
Doug Zongker | 3f96494 | 2013-02-15 14:01:03 -0800 | [diff] [blame] | 45 | com.android.location.provider \ |
| 46 | com.android.location.provider.xml \ |
Jeff Brown | 2cbae10 | 2013-11-05 22:17:57 -0800 | [diff] [blame] | 47 | com.android.media.remotedisplay \ |
| 48 | com.android.media.remotedisplay.xml \ |
Jeff Tinker | 86d238b | 2014-08-13 11:27:59 -0700 | [diff] [blame] | 49 | com.android.mediadrm.signer \ |
| 50 | com.android.mediadrm.signer.xml \ |
Doug Zongker | 3f96494 | 2013-02-15 14:01:03 -0800 | [diff] [blame] | 51 | drmserver \ |
Lorenzo Colitti | f1669dd | 2014-05-20 19:59:10 -0700 | [diff] [blame] | 52 | ethernet-service \ |
Doug Zongker | 3f96494 | 2013-02-15 14:01:03 -0800 | [diff] [blame] | 53 | framework-res \ |
MÃ¥rten Kongstad | 2e1ade9 | 2014-01-31 14:43:49 +0100 | [diff] [blame] | 54 | idmap \ |
Doug Zongker | 3f96494 | 2013-02-15 14:01:03 -0800 | [diff] [blame] | 55 | installd \ |
Wink Saville | 273c22c | 2014-06-11 15:10:51 -0700 | [diff] [blame] | 56 | ims-common \ |
Doug Zongker | 3f96494 | 2013-02-15 14:01:03 -0800 | [diff] [blame] | 57 | ip \ |
| 58 | ip-up-vpn \ |
| 59 | ip6tables \ |
| 60 | iptables \ |
Andres Morales | d2c9d45 | 2015-04-06 17:09:24 -0700 | [diff] [blame] | 61 | gatekeeperd \ |
Doug Zongker | 3f96494 | 2013-02-15 14:01:03 -0800 | [diff] [blame] | 62 | keystore \ |
Jiyong Park | 93cae68 | 2017-04-13 11:29:24 +0900 | [diff] [blame] | 63 | ld.config.txt \ |
Stephen Hines | 2306635 | 2015-01-14 16:11:12 -0800 | [diff] [blame] | 64 | ld.mc \ |
Phil Burk | 85417bc | 2017-02-09 16:26:45 -0800 | [diff] [blame] | 65 | libaaudio \ |
Doug Zongker | 3f96494 | 2013-02-15 14:01:03 -0800 | [diff] [blame] | 66 | libOpenMAXAL \ |
| 67 | libOpenSLES \ |
Doug Zongker | 3f96494 | 2013-02-15 14:01:03 -0800 | [diff] [blame] | 68 | libdownmix \ |
Doug Zongker | 3f96494 | 2013-02-15 14:01:03 -0800 | [diff] [blame] | 69 | libdrmframework \ |
| 70 | libdrmframework_jni \ |
Doug Zongker | 3f96494 | 2013-02-15 14:01:03 -0800 | [diff] [blame] | 71 | libfilterfw \ |
Kenny Root | abe4266 | 2014-05-14 11:48:08 -0700 | [diff] [blame] | 72 | libkeystore \ |
Andres Morales | f886fee | 2015-03-31 16:31:13 -0700 | [diff] [blame] | 73 | libgatekeeper \ |
Jean-Luc Brouillet | 4f612c6 | 2017-07-21 20:11:18 -0700 | [diff] [blame] | 74 | libneuralnetworks \ |
Nikola Veljkovic | 8f1ac7c | 2016-04-08 16:55:20 +0200 | [diff] [blame] | 75 | libwebviewchromium_loader \ |
| 76 | libwebviewchromium_plat_support \ |
Doug Zongker | 3f96494 | 2013-02-15 14:01:03 -0800 | [diff] [blame] | 77 | libwilhelm \ |
Nick Kralevich | 690b10e | 2012-01-17 13:48:32 -0800 | [diff] [blame] | 78 | logd \ |
Jin Qian | 95b2b69 | 2017-11-02 16:27:41 -0700 | [diff] [blame] | 79 | mke2fs \ |
Daniel Rosenberg | 0df5e72 | 2014-06-17 16:29:15 -0700 | [diff] [blame] | 80 | e2fsck \ |
| 81 | resize2fs \ |
liminghao | a4b899d | 2016-07-22 14:23:35 +0800 | [diff] [blame] | 82 | tune2fs \ |
Doug Zongker | 3f96494 | 2013-02-15 14:01:03 -0800 | [diff] [blame] | 83 | screencap \ |
| 84 | sensorservice \ |
Adam Hampson | ba14d0e | 2014-05-15 16:28:39 -0700 | [diff] [blame] | 85 | telephony-common \ |
Doug Zongker | 00aba87 | 2014-01-16 12:43:19 -0800 | [diff] [blame] | 86 | uiautomator \ |
Colin Cross | cf1f9d2 | 2014-03-21 17:41:26 -0700 | [diff] [blame] | 87 | uncrypt \ |
Justin Yun | 992ef6c | 2018-01-05 18:35:06 +0900 | [diff] [blame] | 88 | vndk_snapshot_package \ |
Adam Hampson | ba14d0e | 2014-05-15 16:28:39 -0700 | [diff] [blame] | 89 | voip-common \ |
Tim Kilbourn | 4288549 | 2014-03-24 23:45:23 -0700 | [diff] [blame] | 90 | webview \ |
Robert Sesek | dcb603f | 2016-11-11 12:38:13 -0500 | [diff] [blame] | 91 | webview_zygote \ |
SzuWei Lin | af505d5 | 2017-06-19 15:20:10 +0800 | [diff] [blame] | 92 | |
| 93 | # Wifi modules |
| 94 | PRODUCT_PACKAGES += \ |
| 95 | wifi-service \ |
| 96 | wificond \ |
Doug Zongker | 3f96494 | 2013-02-15 14:01:03 -0800 | [diff] [blame] | 97 | |
Ben Murdoch | 675919d | 2014-04-04 21:20:55 +0100 | [diff] [blame] | 98 | PRODUCT_COPY_FILES += \ |
| 99 | frameworks/native/data/etc/android.software.webview.xml:system/etc/permissions/android.software.webview.xml |
| 100 | |
Justin Klaassen | 2bfe094 | 2017-04-13 13:45:08 -0700 | [diff] [blame] | 101 | ifneq (REL,$(PLATFORM_VERSION_CODENAME)) |
| 102 | PRODUCT_COPY_FILES += \ |
| 103 | frameworks/native/data/etc/android.software.preview_sdk.xml:system/etc/permissions/android.software.preview_sdk.xml |
| 104 | endif |
| 105 | |
Igor Murashkin | cda3d10 | 2017-06-15 09:46:58 -0700 | [diff] [blame] | 106 | ifeq ($(TARGET_CORE_JARS),) |
| 107 | $(error TARGET_CORE_JARS is empty; cannot initialize PRODUCT_BOOT_JARS variable) |
| 108 | endif |
| 109 | |
Ying Wang | ad6674c | 2014-01-07 14:31:49 -0800 | [diff] [blame] | 110 | # The order of PRODUCT_BOOT_JARS matters. |
| 111 | PRODUCT_BOOT_JARS := \ |
Igor Murashkin | cda3d10 | 2017-06-15 09:46:58 -0700 | [diff] [blame] | 112 | $(TARGET_CORE_JARS) \ |
Paul Duffin | 6470f4f | 2016-11-29 12:15:13 +0000 | [diff] [blame] | 113 | legacy-test \ |
Ying Wang | ad6674c | 2014-01-07 14:31:49 -0800 | [diff] [blame] | 114 | ext \ |
| 115 | framework \ |
Adam Hampson | ba14d0e | 2014-05-15 16:28:39 -0700 | [diff] [blame] | 116 | telephony-common \ |
| 117 | voip-common \ |
Wink Saville | 273c22c | 2014-06-11 15:10:51 -0700 | [diff] [blame] | 118 | ims-common \ |
Steven Moreland | dfabcc5 | 2017-04-09 14:09:52 -0700 | [diff] [blame] | 119 | org.apache.http.legacy.boot \ |
| 120 | android.hidl.base-V1.0-java \ |
| 121 | android.hidl.manager-V1.0-java |
Narayan Kamath | 89ec496 | 2014-08-05 14:51:08 +0100 | [diff] [blame] | 122 | |
| 123 | # The order of PRODUCT_SYSTEM_SERVER_JARS matters. |
| 124 | PRODUCT_SYSTEM_SERVER_JARS := \ |
| 125 | services \ |
Lorenzo Colitti | f1669dd | 2014-05-20 19:59:10 -0700 | [diff] [blame] | 126 | ethernet-service \ |
Nicolas Geoffray | ec5e040 | 2017-08-10 20:30:48 +0100 | [diff] [blame] | 127 | wifi-service \ |
| 128 | com.android.location.provider \ |
Ying Wang | 0650d15 | 2013-07-23 17:57:38 -0700 | [diff] [blame] | 129 | |
Nicolas Geoffray | 7d32b8b | 2017-03-22 12:36:05 +0000 | [diff] [blame] | 130 | # The set of packages whose code can be loaded by the system server. |
| 131 | PRODUCT_SYSTEM_SERVER_APPS += \ |
| 132 | SettingsProvider \ |
| 133 | WallpaperBackup |
| 134 | |
Jeff Sharkey | e819398 | 2015-05-21 21:00:26 -0700 | [diff] [blame] | 135 | # Adoptable external storage supports both ext4 and f2fs |
| 136 | PRODUCT_PACKAGES += \ |
| 137 | e2fsck \ |
Jin Qian | 95b2b69 | 2017-11-02 16:27:41 -0700 | [diff] [blame] | 138 | mke2fs \ |
Jeff Sharkey | e819398 | 2015-05-21 21:00:26 -0700 | [diff] [blame] | 139 | fsck.f2fs \ |
| 140 | make_f2fs \ |
| 141 | |
Narayan Kamath | 39fd21a | 2014-03-28 11:34:50 +0000 | [diff] [blame] | 142 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ |
| 143 | ro.zygote=zygote32 |
| 144 | PRODUCT_COPY_FILES += \ |
| 145 | system/core/rootdir/init.zygote32.rc:root/init.zygote32.rc |
| 146 | |
Dimitry Ivanov | 795132d | 2016-03-16 15:06:06 -0700 | [diff] [blame] | 147 | PRODUCT_COPY_FILES += \ |
| 148 | system/core/rootdir/etc/public.libraries.android.txt:system/etc/public.libraries.txt |
| 149 | |
Andreas Gampe | 695b28f | 2016-05-18 20:10:43 -0700 | [diff] [blame] | 150 | # Enable boot.oat filtering of compiled classes to reduce boot.oat size. b/28026683 |
Andreas Gampe | bbb0b31 | 2016-05-20 11:05:38 -0700 | [diff] [blame] | 151 | PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\ |
Mathieu Chartier | d83a7f1 | 2017-08-11 14:43:53 -0700 | [diff] [blame] | 152 | frameworks/base/config/compiled-classes-phone:system/etc/compiled-classes) |
Andreas Gampe | 695b28f | 2016-05-18 20:10:43 -0700 | [diff] [blame] | 153 | |
Jeff Hao | b454ee1 | 2017-08-02 16:45:49 -0700 | [diff] [blame] | 154 | # Enable dirty image object binning to reduce dirty pages in the image. |
| 155 | PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\ |
| 156 | frameworks/base/dirty-image-objects-phone:system/etc/dirty-image-objects) |
| 157 | |
Andreas Gampe | 47e137f | 2017-07-06 21:20:54 -0700 | [diff] [blame] | 158 | # On userdebug builds, collect more tombstones by default. |
| 159 | ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) |
Jaekyun Seok | 4022ec9 | 2017-11-13 12:08:40 +0900 | [diff] [blame] | 160 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
Andreas Gampe | 47e137f | 2017-07-06 21:20:54 -0700 | [diff] [blame] | 161 | tombstoned.max_tombstone_count=50 |
| 162 | endif |
| 163 | |
Yao Chen | 8ce8dc2 | 2017-11-13 20:58:28 -0800 | [diff] [blame] | 164 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ |
| 165 | ro.logd.size.stats=64K \ |
| 166 | log.tag.stats_log=I |
| 167 | |
Ying Wang | d54520a | 2014-12-08 14:46:29 -0800 | [diff] [blame] | 168 | $(call inherit-product, $(SRC_TARGET_DIR)/product/runtime_libart.mk) |
Doug Zongker | 3f96494 | 2013-02-15 14:01:03 -0800 | [diff] [blame] | 169 | $(call inherit-product, $(SRC_TARGET_DIR)/product/base.mk) |