1# 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 fsck.f2fs \ 31 HTMLViewer \ 32 libfilterpack_imageproc \ 33 libwebviewchromium_loader \ 34 libwebviewchromium_plat_support \ 35 make_f2fs \ 36 requestsync \ 37 StatementService \ 38 39PRODUCT_HOST_PACKAGES += \ 40 fsck.f2fs \ 41 42PRODUCT_COPY_FILES += \ 43 frameworks/native/data/etc/android.software.webview.xml:system/etc/permissions/android.software.webview.xml 44 45ifneq (REL,$(PLATFORM_VERSION_CODENAME)) 46PRODUCT_COPY_FILES += \ 47 frameworks/native/data/etc/android.software.preview_sdk.xml:system/etc/permissions/android.software.preview_sdk.xml 48endif 49 50# The order here is the same order they end up on the classpath, so it matters. 51PRODUCT_SYSTEM_SERVER_JARS := \ 52 com.android.location.provider \ 53 services 54 55PRODUCT_COPY_FILES += \ 56 system/core/rootdir/etc/public.libraries.android.txt:system/etc/public.libraries.txt 57 58# Enable boot.oat filtering of compiled classes to reduce boot.oat size. b/28026683 59PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\ 60 frameworks/base/config/compiled-classes-phone:system/etc/compiled-classes) 61 62# Enable dirty image object binning to reduce dirty pages in the image. 63PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\ 64 frameworks/base/dirty-image-objects-phone:system/etc/dirty-image-objects) 65 66# On userdebug builds, collect more tombstones by default. 67ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) 68PRODUCT_VENDOR_PROPERTIES += \ 69 tombstoned.max_tombstone_count?=50 70endif 71 72PRODUCT_VENDOR_PROPERTIES += \ 73 ro.logd.size.stats=64K \ 74 log.tag.stats_log=I 75 76# Enable CFI for security-sensitive components 77$(call inherit-product, $(SRC_TARGET_DIR)/product/cfi-common.mk) 78$(call inherit-product-if-exists, vendor/google/products/cfi-vendor.mk) 79