| 1 |
# |
| 2 |
# Copyright (C) 2019 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 |
$(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk) |
| 18 |
|
| 19 |
# GSI includes all AOSP product packages and placed under /system/product |
| 20 |
$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_product.mk) |
| 21 |
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_product.mk) |
| 22 |
|
| 23 |
# Default AOSP sounds |
| 24 |
$(call inherit-product-if-exists, frameworks/base/data/sounds/AllAudio.mk) |
| 25 |
|
| 26 |
# GSI doesn't support apex for now. |
| 27 |
# Properties set in product take precedence over those in vendor. |
| 28 |
PRODUCT_PRODUCT_PROPERTIES += \ |
| 29 |
ro.apex.updatable=false |
| 30 |
|
| 31 |
# Additional settings used in all AOSP builds |
| 32 |
PRODUCT_PRODUCT_PROPERTIES += \ |
| 33 |
ro.config.ringtone=Ring_Synth_04.ogg \ |
| 34 |
ro.config.notification_sound=pixiedust.ogg \ |
| 35 |
|
| 36 |
# The mainline checking whitelist, should be clean up |
| 37 |
PRODUCT_ARTIFACT_PATH_REQUIREMENT_WHITELIST += \ |
| 38 |
system/app/messaging/messaging.apk \ |
| 39 |
system/app/WAPPushManager/WAPPushManager.apk \ |
| 40 |
system/bin/healthd \ |
| 41 |
system/etc/init/healthd.rc \ |
| 42 |
system/etc/seccomp_policy/crash_dump.%.policy \ |
| 43 |
system/etc/seccomp_policy/mediacodec.policy \ |
| 44 |
system/etc/vintf/manifest/manifest_healthd.xml \ |
| 45 |
system/lib/libframesequence.so \ |
| 46 |
system/lib/libgiftranscode.so \ |
| 47 |
system/lib64/libframesequence.so \ |
| 48 |
system/lib64/libgiftranscode.so \ |
| 49 |
|
| 50 |
# Some GSI builds enable dexpreopt, whitelist these preopt files |
| 51 |
PRODUCT_ARTIFACT_PATH_REQUIREMENT_WHITELIST += %.odex %.vdex %.art |
| 52 |
|
| 53 |
# Exclude GSI specific files |
| 54 |
PRODUCT_ARTIFACT_PATH_REQUIREMENT_WHITELIST += \ |
| 55 |
system/etc/init/config/skip_mount.cfg \ |
| 56 |
system/etc/init/init.gsi.rc \ |
| 57 |
|
| 58 |
# Exclude all files under system/product and system/product_services |
| 59 |
PRODUCT_ARTIFACT_PATH_REQUIREMENT_WHITELIST += \ |
| 60 |
system/product/% \ |
| 61 |
system/product_services/% |
| 62 |
|
| 63 |
|
| 64 |
# Split selinux policy |
| 65 |
PRODUCT_FULL_TREBLE_OVERRIDE := true |
| 66 |
|
| 67 |
# Enable dynamic partition size |
| 68 |
PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true |
| 69 |
|
| 70 |
# Needed by Pi newly launched device to pass VtsTrebleSysProp on GSI |
| 71 |
PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true |
| 72 |
|
| 73 |
# GSI specific tasks on boot |
| 74 |
PRODUCT_COPY_FILES += \ |
| 75 |
build/make/target/product/gsi/skip_mount.cfg:system/etc/init/config/skip_mount.cfg \ |
| 76 |
build/make/target/product/gsi/init.gsi.rc:system/etc/init/init.gsi.rc \ |
| 77 |
|
| 78 |
# Support addtional P vendor interface |
| 79 |
PRODUCT_EXTRA_VNDK_VERSIONS := 28 |
| 80 |
|
| 81 |
# More AOSP packages |
| 82 |
PRODUCT_PACKAGES += \ |
| 83 |
messaging \ |
| 84 |
PhotoTable \ |
| 85 |
WAPPushManager \ |
| 86 |
WallpaperPicker \ |
| 87 |
|
| 88 |
# Telephony: |
| 89 |
# Provide a APN configuration to GSI product |
| 90 |
PRODUCT_COPY_FILES += \ |
| 91 |
device/sample/etc/apns-full-conf.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/apns-conf.xml |
| 92 |
|
| 93 |
# NFC: |
| 94 |
# Provide a libnfc-nci.conf to GSI product |
| 95 |
PRODUCT_COPY_FILES += \ |
| 96 |
device/generic/common/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf |