blob: 9bf9668cb37ab685640176df11bc877fbc96f6dd [file] [log] [blame]
Anton Hanssonc16e2b22018-07-10 16:42:17 +01001#
2# Copyright (C) 2018 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# This makefile contains the system partition contents for
18# media-capable devices (non-wearables). Only add something
19# here if it definitely doesn't belong on wearables. Otherwise,
20# choose base_system.mk.
21$(call inherit-product, $(SRC_TARGET_DIR)/product/base_system.mk)
22
23PRODUCT_PACKAGES += \
24 com.android.future.usb.accessory \
25 com.android.mediadrm.signer \
26 com.android.media.remotedisplay \
27 com.android.media.remotedisplay.xml \
28 CompanionDeviceManager \
29 drmserver \
30 ethernet-service \
31 fsck.f2fs \
32 HTMLViewer \
33 libfilterpack_imageproc \
Anton Hanssonc16e2b22018-07-10 16:42:17 +010034 libwebviewchromium_loader \
35 libwebviewchromium_plat_support \
36 make_f2fs \
Anton Hanssonc16e2b22018-07-10 16:42:17 +010037 requestsync \
38 StatementService \
39 vndk_snapshot_package \
Anton Hanssonc16e2b22018-07-10 16:42:17 +010040
Dan Willemsen4a70a192019-02-22 23:06:03 +000041PRODUCT_HOST_PACKAGES += \
42 fsck.f2fs \
Anton Hanssonc16e2b22018-07-10 16:42:17 +010043
44PRODUCT_COPY_FILES += \
45 frameworks/native/data/etc/android.software.webview.xml:system/etc/permissions/android.software.webview.xml
46
47ifneq (REL,$(PLATFORM_VERSION_CODENAME))
48PRODUCT_COPY_FILES += \
49 frameworks/native/data/etc/android.software.preview_sdk.xml:system/etc/permissions/android.software.preview_sdk.xml
50endif
51
52# The order here is the same order they end up on the classpath, so it matters.
53PRODUCT_SYSTEM_SERVER_JARS := \
54 services \
55 ethernet-service \
Sundong Ahn0372f182018-11-08 18:52:38 +090056 com.android.location.provider \
Anton Hanssona2b81662019-11-22 12:01:51 +000057 service-jobscheduler \
Alexander Dorokhinea8bae142019-12-17 10:44:27 -080058 service-blobstore
Anton Hanssonc16e2b22018-07-10 16:42:17 +010059
Roshan Piusd6e239f2019-11-22 08:47:40 -080060# system server jars which are updated via apex modules.
61# The values should be of the format <apex name>:<jar name>
62PRODUCT_UPDATABLE_SYSTEM_SERVER_JARS := \
Alexander Dorokhinea8bae142019-12-17 10:44:27 -080063 com.android.appsearch:service-appsearch \
Sravan Kumar Reddy Kallu0457d2f2020-01-21 22:31:00 +000064 com.android.permission:service-permission \
evitayan11733322020-01-02 15:39:11 -080065 com.android.wifi:wifi-service \
66 com.android.ipsec:android.net.ipsec.ike \
Roshan Piusd6e239f2019-11-22 08:47:40 -080067
Anton Hanssonc16e2b22018-07-10 16:42:17 +010068PRODUCT_COPY_FILES += \
69 system/core/rootdir/etc/public.libraries.android.txt:system/etc/public.libraries.txt
70
71# Enable boot.oat filtering of compiled classes to reduce boot.oat size. b/28026683
72PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\
73 frameworks/base/config/compiled-classes-phone:system/etc/compiled-classes)
74
75# Enable dirty image object binning to reduce dirty pages in the image.
76PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\
77 frameworks/base/dirty-image-objects-phone:system/etc/dirty-image-objects)
78
79# On userdebug builds, collect more tombstones by default.
80ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
81PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
82 tombstoned.max_tombstone_count=50
83endif
84
85PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
86 ro.logd.size.stats=64K \
87 log.tag.stats_log=I
88
89# Enable CFI for security-sensitive components
90$(call inherit-product, $(SRC_TARGET_DIR)/product/cfi-common.mk)
91$(call inherit-product-if-exists, vendor/google/products/cfi-vendor.mk)