Anton Hansson | c16e2b2 | 2018-07-10 16:42:17 +0100 | [diff] [blame] | 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 | |
| 23 | PRODUCT_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 \ |
| 34 | libstagefright_soft_aacdec \ |
| 35 | libstagefright_soft_aacenc \ |
| 36 | libstagefright_soft_amrdec \ |
| 37 | libstagefright_soft_amrnbenc \ |
| 38 | libstagefright_soft_amrwbenc \ |
| 39 | libstagefright_soft_avcdec \ |
| 40 | libstagefright_soft_avcenc \ |
| 41 | libstagefright_soft_flacdec \ |
| 42 | libstagefright_soft_flacenc \ |
| 43 | libstagefright_soft_g711dec \ |
| 44 | libstagefright_soft_gsmdec \ |
| 45 | libstagefright_soft_hevcdec \ |
| 46 | libstagefright_soft_mp3dec \ |
| 47 | libstagefright_soft_mpeg2dec \ |
| 48 | libstagefright_soft_mpeg4dec \ |
| 49 | libstagefright_soft_mpeg4enc \ |
| 50 | libstagefright_soft_opusdec \ |
| 51 | libstagefright_soft_rawdec \ |
| 52 | libstagefright_soft_vorbisdec \ |
| 53 | libstagefright_soft_vpxdec \ |
| 54 | libstagefright_soft_vpxenc \ |
| 55 | libwebviewchromium_loader \ |
| 56 | libwebviewchromium_plat_support \ |
| 57 | make_f2fs \ |
| 58 | PackageInstaller \ |
| 59 | requestsync \ |
| 60 | StatementService \ |
| 61 | vndk_snapshot_package \ |
| 62 | webview \ |
| 63 | |
| 64 | |
| 65 | PRODUCT_COPY_FILES += \ |
| 66 | frameworks/native/data/etc/android.software.webview.xml:system/etc/permissions/android.software.webview.xml |
| 67 | |
| 68 | ifneq (REL,$(PLATFORM_VERSION_CODENAME)) |
| 69 | PRODUCT_COPY_FILES += \ |
| 70 | frameworks/native/data/etc/android.software.preview_sdk.xml:system/etc/permissions/android.software.preview_sdk.xml |
| 71 | endif |
| 72 | |
| 73 | # The order here is the same order they end up on the classpath, so it matters. |
| 74 | PRODUCT_SYSTEM_SERVER_JARS := \ |
| 75 | services \ |
| 76 | ethernet-service \ |
| 77 | wifi-service \ |
| 78 | com.android.location.provider.impl \ |
| 79 | |
| 80 | PRODUCT_COPY_FILES += \ |
| 81 | system/core/rootdir/etc/public.libraries.android.txt:system/etc/public.libraries.txt |
| 82 | |
| 83 | # Enable boot.oat filtering of compiled classes to reduce boot.oat size. b/28026683 |
| 84 | PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\ |
| 85 | frameworks/base/config/compiled-classes-phone:system/etc/compiled-classes) |
| 86 | |
| 87 | # Enable dirty image object binning to reduce dirty pages in the image. |
| 88 | PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\ |
| 89 | frameworks/base/dirty-image-objects-phone:system/etc/dirty-image-objects) |
| 90 | |
| 91 | # On userdebug builds, collect more tombstones by default. |
| 92 | ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) |
| 93 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
| 94 | tombstoned.max_tombstone_count=50 |
| 95 | endif |
| 96 | |
| 97 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ |
| 98 | ro.logd.size.stats=64K \ |
| 99 | log.tag.stats_log=I |
| 100 | |
| 101 | # Enable CFI for security-sensitive components |
| 102 | $(call inherit-product, $(SRC_TARGET_DIR)/product/cfi-common.mk) |
| 103 | $(call inherit-product-if-exists, vendor/google/products/cfi-vendor.mk) |