Home | History | Annotate | Download | only in product
      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 # Additional settings used in all AOSP builds
     27 PRODUCT_PRODUCT_PROPERTIES += \
     28     ro.config.ringtone=Ring_Synth_04.ogg \
     29     ro.config.notification_sound=pixiedust.ogg \
     30 
     31 # The mainline checking whitelist, should be clean up
     32 PRODUCT_ARTIFACT_PATH_REQUIREMENT_WHITELIST += \
     33     system/app/messaging/messaging.apk \
     34     system/app/WAPPushManager/WAPPushManager.apk \
     35     system/bin/healthd \
     36     system/etc/init/healthd.rc \
     37     system/etc/seccomp_policy/crash_dump.%.policy \
     38     system/etc/seccomp_policy/mediacodec.policy \
     39     system/etc/vintf/manifest/manifest_healthd.xml \
     40     system/lib/libframesequence.so \
     41     system/lib/libgiftranscode.so \
     42     system/lib64/libframesequence.so \
     43     system/lib64/libgiftranscode.so \
     44 
     45 # Some GSI builds enable dexpreopt, whitelist these preopt files
     46 PRODUCT_ARTIFACT_PATH_REQUIREMENT_WHITELIST += %.odex %.vdex %.art
     47 
     48 # Exclude GSI specific files
     49 PRODUCT_ARTIFACT_PATH_REQUIREMENT_WHITELIST += \
     50     system/etc/init/config/skip_mount.cfg \
     51     system/etc/init/init.gsi.rc \
     52 
     53 # Exclude all files under system/product and system/product_services
     54 PRODUCT_ARTIFACT_PATH_REQUIREMENT_WHITELIST += \
     55     system/product/% \
     56     system/product_services/%
     57 
     58 
     59 # Split selinux policy
     60 PRODUCT_FULL_TREBLE_OVERRIDE := true
     61 
     62 # Enable dynamic partition size
     63 PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true
     64 
     65 # Needed by Pi newly launched device to pass VtsTrebleSysProp on GSI
     66 PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
     67 
     68 # GSI specific tasks on boot
     69 PRODUCT_COPY_FILES += \
     70     build/make/target/product/gsi/skip_mount.cfg:system/etc/init/config/skip_mount.cfg \
     71     build/make/target/product/gsi/init.gsi.rc:system/etc/init/init.gsi.rc \
     72 
     73 # Support addtional P vendor interface
     74 PRODUCT_EXTRA_VNDK_VERSIONS := 28
     75 
     76 # More AOSP packages
     77 PRODUCT_PACKAGES += \
     78     messaging \
     79     PhotoTable \
     80     WAPPushManager \
     81     WallpaperPicker \
     82 
     83 # Telephony:
     84 #   Provide a APN configuration to GSI product
     85 PRODUCT_COPY_FILES += \
     86     device/sample/etc/apns-full-conf.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/apns-conf.xml
     87 
     88 # NFC:
     89 #   Provide a libnfc-nci.conf to GSI product
     90 PRODUCT_COPY_FILES += \
     91     device/generic/common/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf
     92