Home | History | Annotate | Download | only in product
      1 #
      2 # Copyright (C) 2017 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 # Split selinux policy
     18 PRODUCT_FULL_TREBLE_OVERRIDE := true
     19 
     20 # HAL interfaces:
     21 #   Some of HAL interface libraries are automatically added by the dependencies
     22 #   from the framework. However, we list them all here to make it explicit and
     23 #   prevent possible mistake.
     24 PRODUCT_PACKAGES := \
     25     android.frameworks.displayservice@1.0 \
     26     android.frameworks.schedulerservice@1.0 \
     27     android.frameworks.sensorservice@1.0 \
     28     android.frameworks.vr.composer@1.0 \
     29     android.hardware.audio@2.0 \
     30     android.hardware.audio.common@2.0 \
     31     android.hardware.audio.common@2.0-util \
     32     android.hardware.audio.effect@2.0 \
     33     android.hardware.automotive.evs@1.0 \
     34     android.hardware.automotive.vehicle@2.0 \
     35     android.hardware.automotive.vehicle@2.0-manager-lib-shared \
     36     android.hardware.automotive.vehicle@2.1 \
     37     android.hardware.biometrics.fingerprint@2.1 \
     38     android.hardware.bluetooth@1.0 \
     39     android.hardware.boot@1.0 \
     40     android.hardware.broadcastradio@1.0 \
     41     android.hardware.broadcastradio@1.1 \
     42     android.hardware.camera.common@1.0 \
     43     android.hardware.camera.device@1.0 \
     44     android.hardware.camera.device@3.2 \
     45     android.hardware.camera.metadata@3.2 \
     46     android.hardware.camera.provider@2.4 \
     47     android.hardware.configstore-utils \
     48     android.hardware.configstore@1.0 \
     49     android.hardware.contexthub@1.0 \
     50     android.hardware.drm@1.0 \
     51     android.hardware.dumpstate@1.0 \
     52     android.hardware.gatekeeper@1.0 \
     53     android.hardware.gnss@1.0 \
     54     android.hardware.graphics.allocator@2.0 \
     55     android.hardware.graphics.bufferqueue@1.0 \
     56     android.hardware.graphics.common@1.0 \
     57     android.hardware.graphics.composer@2.1 \
     58     android.hardware.graphics.mapper@2.0 \
     59     android.hardware.health@1.0 \
     60     android.hardware.ir@1.0 \
     61     android.hardware.keymaster@3.0 \
     62     android.hardware.light@2.0 \
     63     android.hardware.media@1.0 \
     64     android.hardware.media.omx@1.0 \
     65     android.hardware.memtrack@1.0 \
     66     android.hardware.nfc@1.0 \
     67     android.hardware.oemlock@1.0 \
     68     android.hardware.power@1.0 \
     69     android.hardware.radio@1.0 \
     70     android.hardware.radio.deprecated@1.0 \
     71     android.hardware.sensors@1.0 \
     72     android.hardware.soundtrigger@2.0 \
     73     android.hardware.thermal@1.0 \
     74     android.hardware.tv.cec@1.0 \
     75     android.hardware.tv.input@1.0 \
     76     android.hardware.usb@1.0 \
     77     android.hardware.usb@1.1 \
     78     android.hardware.vibrator@1.0 \
     79     android.hardware.vr@1.0 \
     80     android.hardware.weaver@1.0 \
     81     android.hardware.wifi@1.0 \
     82     android.hardware.wifi.supplicant@1.0 \
     83     android.hidl.allocator@1.0 \
     84     android.hidl.base@1.0 \
     85     android.hidl.manager@1.0 \
     86     android.hidl.memory@1.0 \
     87     android.hidl.token@1.0 \
     88     android.system.wifi.keystore@1.0 \
     89 
     90 # VNDK:
     91 #   Some VNDK shared objects are automatically included indirectly.
     92 #   We list them all here to make it explicit and prevent possible mistakes.
     93 #   An example of one such mistake was libcurl, which is included in A/B
     94 #   devices because of update_engine, but not in non-A/B devices.
     95 PRODUCT_PACKAGES += \
     96     libaudioroute \
     97     libaudioutils \
     98     libbinder \
     99     libcamera_metadata \
    100     libcap \
    101     libcrypto \
    102     libcrypto_utils \
    103     libcups \
    104     libcurl \
    105     libdiskconfig \
    106     libdumpstateutil \
    107     libevent \
    108     libexif \
    109     libexpat \
    110     libfmq \
    111     libgatekeeper \
    112     libgui \
    113     libhardware_legacy \
    114     libhidlmemory \
    115     libicui18n \
    116     libicuuc \
    117     libjpeg \
    118     libkeymaster1 \
    119     libkeymaster_messages \
    120     libldacBT_abr \
    121     libldacBT_enc \
    122     liblz4 \
    123     liblzma \
    124     libmdnssd \
    125     libmemtrack \
    126     libmemunreachable \
    127     libmetricslogger \
    128     libminijail \
    129     libnetutils \
    130     libnl \
    131     libopus \
    132     libpagemap \
    133     libpcap \
    134     libpcre2 \
    135     libpcrecpp \
    136     libpdfium \
    137     libpiex \
    138     libpower \
    139     libprocessgroup \
    140     libprocinfo \
    141     libprotobuf-cpp-full \
    142     libprotobuf-cpp-lite \
    143     libradio_metadata \
    144     libsoftkeymasterdevice \
    145     libsonic \
    146     libsonivox \
    147     libspeexresampler \
    148     libsqlite \
    149     libssl \
    150     libsuspend \
    151     libsysutils \
    152     libtinyalsa \
    153     libtinyxml2 \
    154     libui \
    155     libusbhost \
    156     libvixl-arm \
    157     libvixl-arm64 \
    158     libvorbisidec \
    159     libwebrtc_audio_preprocessing \
    160     libxml2 \
    161     libyuv \
    162     libziparchive \
    163 
    164 # VNDK-SP:
    165 PRODUCT_PACKAGES += \
    166     vndk-sp \
    167 
    168 # LL-VNDK:
    169 PRODUCT_PACKAGES += \
    170     libandroid_net \
    171     libc \
    172     libdl \
    173     liblog \
    174     libm \
    175     libstdc++ \
    176     libvndksupport \
    177     libz \
    178 
    179 # SP-NDK:
    180 PRODUCT_PACKAGES += \
    181     libEGL \
    182     libGLESv1_CM \
    183     libGLESv2 \
    184     libGLESv3 \
    185     libnativewindow \
    186     libsync \
    187     libvulkan \
    188 
    189 PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/bootdevice/by-name/system
    190 
    191 # Wifi:
    192 #   Wifi HAL (android.hardware.wifi (at] 1.0-service, wpa_supplicant,
    193 #   and wpa_supplicant.conf) is not here. They are in vendor.img
    194 PRODUCT_PACKAGES += \
    195     wificond \
    196 
    197 # Audio:
    198 USE_XML_AUDIO_POLICY_CONF := 1
    199 # The following policy XML files are used as fallback for
    200 # vendors/devices not using XML to configure audio policy.
    201 PRODUCT_COPY_FILES += \
    202     frameworks/av/services/audiopolicy/config/audio_policy_configuration_generic.xml:system/etc/audio_policy_configuration.xml \
    203     frameworks/av/services/audiopolicy/config/primary_audio_policy_configuration.xml:system/etc/primary_audio_policy_configuration.xml \
    204     frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:system/etc/r_submix_audio_policy_configuration.xml \
    205     frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:system/etc/audio_policy_volumes.xml \
    206     frameworks/av/services/audiopolicy/config/default_volume_tables.xml:system/etc/default_volume_tables.xml \
    207 
    208 # Bluetooth:
    209 #   audio.a2dp.default is a system module. Generic system image includes
    210 #   audio.a2dp.default to support A2DP if board has the capability.
    211 PRODUCT_PACKAGES += \
    212     audio.a2dp.default
    213 
    214 # May need to review why the followings are needed in generic system image.
    215 PRODUCT_COPY_FILES += \
    216     device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml
    217 
    218