| # |
| # Copyright (C) 2017 The Android Open Source Project |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| # |
| |
| # Include all languages |
| $(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk) |
| |
| # Enable updating of APEXes |
| $(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk) |
| |
| # Enable userspace reboot |
| $(call inherit-product, $(SRC_TARGET_DIR)/product/userspace_reboot.mk) |
| |
| # Enforce generic ramdisk allow list |
| $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_ramdisk.mk) |
| |
| PRODUCT_SOONG_NAMESPACES += device/generic/goldfish-opengl # for vulkan |
| |
| PRODUCT_SHIPPING_API_LEVEL := 31 |
| PRODUCT_USE_DYNAMIC_PARTITIONS := true |
| DISABLE_RILD_OEM_HOOK := true |
| |
| PRODUCT_SOONG_NAMESPACES += device/generic/goldfish-opengl # for vulkan |
| |
| TARGET_RO_FILE_SYSTEM_TYPE ?= ext4 |
| TARGET_USERDATAIMAGE_FILE_SYSTEM_TYPE ?= f2fs |
| TARGET_USERDATAIMAGE_PARTITION_SIZE ?= 6442450944 |
| |
| TARGET_VULKAN_SUPPORT ?= true |
| # TODO(b/181203470) enable it for every target when rootcanal supports arm64 as well. |
| # Depends on TARGET_PRODUCT because TARGET_ARCH is not available here. |
| ifneq ($(findstring x86,$(TARGET_PRODUCT)),) |
| TARGET_ENABLE_HOST_BLUETOOTH_EMULATION ?= true |
| endif |
| |
| AB_OTA_UPDATER := true |
| AB_OTA_PARTITIONS += \ |
| boot \ |
| odm \ |
| odm_dlkm \ |
| product \ |
| system \ |
| system_ext \ |
| vbmeta \ |
| vbmeta_system \ |
| vendor \ |
| vendor_boot \ |
| vendor_dlkm \ |
| |
| # Enable Virtual A/B |
| $(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/compression.mk) |
| |
| # Enable Scoped Storage related |
| $(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk) |
| |
| # Properties that are not vendor-specific. These will go in the product |
| # partition, instead of the vendor partition, and do not need vendor |
| # sepolicy |
| PRODUCT_PRODUCT_PROPERTIES += \ |
| persist.adb.tcp.port=5555 \ |
| ro.com.google.locationfeatures=1 \ |
| persist.sys.fuse.passthrough.enable=true \ |
| |
| # Storage: for factory reset protection feature |
| PRODUCT_VENDOR_PROPERTIES += \ |
| ro.frp.pst=/dev/block/vdb |
| |
| # Explanation of specific properties: |
| # debug.hwui.swap_with_damage avoids boot failure on M http://b/25152138 |
| # ro.opengles.version OpenGLES 3.0 |
| # ro.hardware.keystore_desede=true needed for CtsKeystoreTestCases |
| PRODUCT_VENDOR_PROPERTIES += \ |
| tombstoned.max_tombstone_count=500 \ |
| vendor.bt.rootcanal_test_console=off \ |
| debug.hwui.swap_with_damage=0 \ |
| ro.carrier=unknown \ |
| ro.com.android.dataroaming?=false \ |
| ro.hardware.virtual_device=1 \ |
| ro.logd.size=1M \ |
| ro.opengles.version=196608 \ |
| wifi.interface=wlan0 \ |
| persist.sys.zram_enabled=1 \ |
| ro.hardware.keystore_desede=true \ |
| ro.rebootescrow.device=/dev/block/pmem0 \ |
| ro.incremental.enable=1 \ |
| debug.c2.use_dmabufheaps=1 \ |
| |
| # Below is a list of properties we probably should get rid of. |
| PRODUCT_VENDOR_PROPERTIES += \ |
| wlan.driver.status=ok |
| |
| ifneq ($(LOCAL_DISABLE_OMX),true) |
| # Codec 1.0 requires the OMX services |
| DEVICE_MANIFEST_FILE += \ |
| device/google/cuttlefish/shared/config/android.hardware.media.omx@1.0.xml |
| endif |
| |
| PRODUCT_VENDOR_PROPERTIES += \ |
| debug.stagefright.c2inputsurface=-1 |
| |
| # Enforce privapp permissions control. |
| PRODUCT_VENDOR_PROPERTIES += ro.control_privapp_permissions=enforce |
| |
| # aes-256-heh default is not supported in standard kernels. |
| PRODUCT_VENDOR_PROPERTIES += ro.crypto.volume.filenames_mode=aes-256-cts |
| |
| # Copy preopted files from system_b on first boot |
| PRODUCT_VENDOR_PROPERTIES += ro.cp_system_other_odex=1 |
| |
| AB_OTA_POSTINSTALL_CONFIG += \ |
| RUN_POSTINSTALL_system=true \ |
| POSTINSTALL_PATH_system=system/bin/otapreopt_script \ |
| FILESYSTEM_TYPE_system=ext4 \ |
| POSTINSTALL_OPTIONAL_system=true |
| |
| AB_OTA_POSTINSTALL_CONFIG += \ |
| RUN_POSTINSTALL_vendor=true \ |
| POSTINSTALL_PATH_vendor=bin/checkpoint_gc \ |
| FILESYSTEM_TYPE_vendor=ext4 \ |
| POSTINSTALL_OPTIONAL_vendor=true |
| |
| # Userdata Checkpointing OTA GC |
| PRODUCT_PACKAGES += \ |
| checkpoint_gc |
| |
| # DRM service opt-in |
| PRODUCT_VENDOR_PROPERTIES += drm.service.enabled=true |
| |
| PRODUCT_SOONG_NAMESPACES += hardware/google/camera |
| PRODUCT_SOONG_NAMESPACES += hardware/google/camera/devices/EmulatedCamera |
| |
| # |
| # Packages for various GCE-specific utilities |
| # |
| PRODUCT_PACKAGES += \ |
| CuttlefishService \ |
| cuttlefish_rotate \ |
| rename_netiface \ |
| setup_wifi \ |
| socket_vsock_proxy \ |
| tombstone_transmit \ |
| tombstone_producer \ |
| suspend_blocker \ |
| vsoc_input_service \ |
| vtpm_manager \ |
| wpa_supplicant.vsoc.conf \ |
| |
| SOONG_CONFIG_NAMESPACES += cvd |
| SOONG_CONFIG_cvd += launch_configs |
| SOONG_CONFIG_cvd_launch_configs += \ |
| cvd_config_auto.json \ |
| cvd_config_foldable.json \ |
| cvd_config_phone.json \ |
| cvd_config_tablet.json \ |
| cvd_config_tv.json \ |
| |
| # |
| # Packages for AOSP-available stuff we use from the framework |
| # |
| PRODUCT_PACKAGES += \ |
| e2fsck \ |
| ip \ |
| sleep \ |
| tcpdump \ |
| wpa_supplicant \ |
| wificond \ |
| |
| # |
| # Packages for the OpenGL implementation |
| # |
| |
| # ANGLE provides an OpenGL implementation built on top of Vulkan. |
| PRODUCT_PACKAGES += \ |
| libEGL_angle \ |
| libGLESv1_CM_angle \ |
| libGLESv2_angle \ |
| libfeature_support_angle.so |
| |
| # SwiftShader provides a software-only implementation that is not thread-safe |
| PRODUCT_PACKAGES += \ |
| libEGL_swiftshader \ |
| libGLESv1_CM_swiftshader \ |
| libGLESv2_swiftshader |
| |
| # GL implementation for virgl |
| PRODUCT_PACKAGES += \ |
| libGLES_mesa \ |
| |
| # |
| # Packages for the Vulkan implementation |
| # |
| ifeq ($(TARGET_VULKAN_SUPPORT),true) |
| PRODUCT_PACKAGES += \ |
| vulkan.ranchu \ |
| libvulkan_enc \ |
| vulkan.pastel |
| endif |
| |
| # GL/Vk implementation for gfxstream |
| PRODUCT_PACKAGES += \ |
| hwcomposer.ranchu \ |
| libandroidemu \ |
| libOpenglCodecCommon \ |
| libOpenglSystemCommon \ |
| libGLESv1_CM_emulation \ |
| lib_renderControl_enc \ |
| libEGL_emulation \ |
| libGLESv2_enc \ |
| libGLESv2_emulation \ |
| libGLESv1_enc |
| |
| # |
| # Packages for testing |
| # |
| PRODUCT_PACKAGES += \ |
| aidl_lazy_test_server \ |
| hidl_lazy_test_server |
| |
| DEVICE_PACKAGE_OVERLAYS := device/google/cuttlefish/shared/overlay |
| # PRODUCT_AAPT_CONFIG and PRODUCT_AAPT_PREF_CONFIG are intentionally not set to |
| # pick up every density resources. |
| |
| # |
| # Common manifest for all targets |
| # |
| DEVICE_MANIFEST_FILE += device/google/cuttlefish/shared/config/manifest.xml |
| |
| # |
| # General files |
| # |
| |
| |
| ifneq ($(LOCAL_SENSOR_FILE_OVERRIDES),true) |
| PRODUCT_COPY_FILES += \ |
| frameworks/native/data/etc/android.hardware.sensor.ambient_temperature.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.ambient_temperature.xml \ |
| frameworks/native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.barometer.xml \ |
| frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \ |
| frameworks/native/data/etc/android.hardware.sensor.hinge_angle.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.hinge_angle.xml \ |
| frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \ |
| frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \ |
| frameworks/native/data/etc/android.hardware.sensor.relative_humidity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.relative_humidity.xml |
| endif |
| |
| PRODUCT_COPY_FILES += \ |
| hardware/google/camera/devices/EmulatedCamera/hwl/configs/emu_camera_back.json:$(TARGET_COPY_OUT_VENDOR)/etc/config/emu_camera_back.json \ |
| hardware/google/camera/devices/EmulatedCamera/hwl/configs/emu_camera_front.json:$(TARGET_COPY_OUT_VENDOR)/etc/config/emu_camera_front.json \ |
| hardware/google/camera/devices/EmulatedCamera/hwl/configs/emu_camera_depth.json:$(TARGET_COPY_OUT_VENDOR)/etc/config/emu_camera_depth.json \ |
| device/google/cuttlefish/shared/config/init.vendor.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.cutf_cvm.rc \ |
| device/google/cuttlefish/shared/config/init.product.rc:$(TARGET_COPY_OUT_PRODUCT)/etc/init/init.rc \ |
| device/google/cuttlefish/shared/config/ueventd.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \ |
| device/google/cuttlefish/shared/config/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \ |
| device/google/cuttlefish/shared/config/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \ |
| device/google/cuttlefish/shared/config/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \ |
| device/google/cuttlefish/shared/config/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \ |
| device/google/cuttlefish/shared/permissions/cuttlefish_excluded_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/cuttlefish_excluded_hardware.xml \ |
| device/google/cuttlefish/shared/permissions/privapp-permissions-cuttlefish.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/privapp-permissions-cuttlefish.xml \ |
| frameworks/av/media/libeffects/data/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ |
| frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \ |
| frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \ |
| frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ |
| frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ |
| frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ |
| frameworks/av/services/audiopolicy/config/surround_sound_configuration_5_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/surround_sound_configuration_5_0.xml \ |
| frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml \ |
| frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \ |
| frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \ |
| frameworks/native/data/etc/android.hardware.camera.concurrent.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.concurrent.xml \ |
| frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \ |
| frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \ |
| frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \ |
| frameworks/native/data/etc/android.hardware.camera.raw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.raw.xml \ |
| frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \ |
| frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml \ |
| frameworks/native/data/etc/android.hardware.reboot_escrow.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.reboot_escrow.xml \ |
| frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \ |
| frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \ |
| frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \ |
| frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \ |
| frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \ |
| frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.verified_boot.xml \ |
| system/bt/vendor_libs/test_vendor_lib/data/controller_properties.json:vendor/etc/bluetooth/controller_properties.json \ |
| device/google/cuttlefish/shared/config/task_profiles.json:$(TARGET_COPY_OUT_VENDOR)/etc/task_profiles.json |
| |
| ifeq ($(TARGET_RO_FILE_SYSTEM_TYPE),ext4) |
| PRODUCT_COPY_FILES += \ |
| device/google/cuttlefish/shared/config/fstab.f2fs:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/fstab.f2fs \ |
| device/google/cuttlefish/shared/config/fstab.f2fs:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.f2fs \ |
| device/google/cuttlefish/shared/config/fstab.f2fs:$(TARGET_COPY_OUT_RECOVERY)/root/first_stage_ramdisk/fstab.f2fs \ |
| device/google/cuttlefish/shared/config/fstab.ext4:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/fstab.ext4 \ |
| device/google/cuttlefish/shared/config/fstab.ext4:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ext4 \ |
| device/google/cuttlefish/shared/config/fstab.ext4:$(TARGET_COPY_OUT_RECOVERY)/root/first_stage_ramdisk/fstab.ext4 |
| else |
| PRODUCT_COPY_FILES += \ |
| device/google/cuttlefish/shared/config/fstab-$(TARGET_RO_FILE_SYSTEM_TYPE).f2fs:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/fstab.f2fs \ |
| device/google/cuttlefish/shared/config/fstab-$(TARGET_RO_FILE_SYSTEM_TYPE).f2fs:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.f2fs \ |
| device/google/cuttlefish/shared/config/fstab-$(TARGET_RO_FILE_SYSTEM_TYPE).f2fs:$(TARGET_COPY_OUT_RECOVERY)/root/first_stage_ramdisk/fstab.f2fs \ |
| device/google/cuttlefish/shared/config/fstab-$(TARGET_RO_FILE_SYSTEM_TYPE).ext4:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/fstab.ext4 \ |
| device/google/cuttlefish/shared/config/fstab-$(TARGET_RO_FILE_SYSTEM_TYPE).ext4:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ext4 \ |
| device/google/cuttlefish/shared/config/fstab-$(TARGET_RO_FILE_SYSTEM_TYPE).ext4:$(TARGET_COPY_OUT_RECOVERY)/root/first_stage_ramdisk/fstab.ext4 |
| endif |
| |
| ifeq ($(TARGET_VULKAN_SUPPORT),true) |
| PRODUCT_COPY_FILES += \ |
| frameworks/native/data/etc/android.hardware.vulkan.level-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level.xml \ |
| frameworks/native/data/etc/android.hardware.vulkan.version-1_0_3.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version.xml \ |
| frameworks/native/data/etc/android.software.vulkan.deqp.level-2021-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.vulkan.deqp.level.xml \ |
| frameworks/native/data/etc/android.software.opengles.deqp.level-2021-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.opengles.deqp.level.xml |
| endif |
| |
| # Packages for HAL implementations |
| |
| # |
| # Atrace HAL |
| # |
| PRODUCT_PACKAGES += \ |
| android.hardware.atrace@1.0-service |
| |
| # |
| # Weaver aidl HAL |
| # |
| PRODUCT_PACKAGES += \ |
| android.hardware.weaver-service.example |
| |
| # |
| # OemLock aidl HAL |
| # |
| PRODUCT_PACKAGES += \ |
| android.hardware.oemlock-service.example |
| |
| # |
| # Authsecret HAL |
| # |
| PRODUCT_PACKAGES += \ |
| android.hardware.authsecret@1.0-service |
| |
| # |
| # Authsecret AIDL HAL |
| # |
| PRODUCT_PACKAGES += \ |
| android.hardware.authsecret-service.example |
| # |
| # Hardware Composer HAL |
| # |
| PRODUCT_PACKAGES += \ |
| hwcomposer.drm_minigbm \ |
| hwcomposer.cutf \ |
| hwcomposer-stats \ |
| android.hardware.graphics.composer@2.2-impl \ |
| android.hardware.graphics.composer@2.2-service |
| |
| # |
| # Gralloc HAL |
| # |
| PRODUCT_PACKAGES += \ |
| android.hardware.graphics.allocator@4.0-service.minigbm \ |
| android.hardware.graphics.mapper@4.0-impl.minigbm |
| |
| # |
| # Bluetooth HAL and Compatibility Bluetooth library (for older revs). |
| # |
| |
| ifeq ($(TARGET_ENABLE_HOST_BLUETOOTH_EMULATION),true) |
| PRODUCT_PACKAGES += android.hardware.bluetooth@1.1-service.remote |
| else |
| PRODUCT_PACKAGES += android.hardware.bluetooth@1.1-service.sim |
| endif |
| PRODUCT_PACKAGES += android.hardware.bluetooth.audio@2.1-impl |
| |
| # |
| # Audio HAL |
| # |
| LOCAL_AUDIO_PRODUCT_PACKAGE ?= \ |
| audio.primary.cutf \ |
| audio.r_submix.default \ |
| android.hardware.audio@6.0-impl \ |
| android.hardware.audio.effect@6.0-impl \ |
| android.hardware.audio@2.0-service |
| |
| LOCAL_AUDIO_PRODUCT_COPY_FILES ?= \ |
| device/google/cuttlefish/shared/config/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \ |
| frameworks/av/services/audiopolicy/config/audio_policy_configuration_generic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ |
| frameworks/av/services/audiopolicy/config/primary_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/primary_audio_policy_configuration.xml |
| |
| LOCAL_AUDIO_DEVICE_PACKAGE_OVERLAYS ?= |
| |
| PRODUCT_PACKAGES += $(LOCAL_AUDIO_PRODUCT_PACKAGE) |
| PRODUCT_COPY_FILES += $(LOCAL_AUDIO_PRODUCT_COPY_FILES) |
| DEVICE_PACKAGE_OVERLAYS += $(LOCAL_AUDIO_DEVICE_PACKAGE_OVERLAYS) |
| |
| # |
| # BiometricsFace HAL |
| # |
| PRODUCT_PACKAGES += \ |
| android.hardware.biometrics.face@1.0-service.example |
| |
| # |
| # BiometricsFingerprint HAL |
| # |
| PRODUCT_PACKAGES += \ |
| android.hardware.biometrics.fingerprint@2.1-service |
| |
| # |
| # Contexthub HAL |
| # |
| PRODUCT_PACKAGES += \ |
| android.hardware.contexthub@1.1-service.mock |
| |
| # |
| # Drm HAL |
| # |
| PRODUCT_PACKAGES += \ |
| android.hardware.drm@1.3-service.clearkey \ |
| android.hardware.drm@1.3-service.widevine |
| |
| # |
| # Dumpstate HAL |
| # |
| ifeq ($(LOCAL_DUMPSTATE_PRODUCT_PACKAGE),) |
| LOCAL_DUMPSTATE_PRODUCT_PACKAGE := android.hardware.dumpstate@1.1-service.example |
| endif |
| PRODUCT_PACKAGES += $(LOCAL_DUMPSTATE_PRODUCT_PACKAGE) |
| |
| # |
| # Camera |
| # |
| PRODUCT_PACKAGES += \ |
| android.hardware.camera.provider@2.6-service-google \ |
| libgooglecamerahwl_impl \ |
| android.hardware.camera.provider@2.6-impl-google \ |
| |
| # |
| # Gatekeeper |
| # |
| ifeq ($(LOCAL_GATEKEEPER_PRODUCT_PACKAGE),) |
| LOCAL_GATEKEEPER_PRODUCT_PACKAGE := android.hardware.gatekeeper@1.0-service.remote |
| endif |
| PRODUCT_PACKAGES += \ |
| $(LOCAL_GATEKEEPER_PRODUCT_PACKAGE) |
| |
| # |
| # GPS |
| # |
| PRODUCT_PACKAGES += \ |
| android.hardware.gnss@2.1-service |
| |
| # Health |
| ifeq ($(LOCAL_HEALTH_PRODUCT_PACKAGE),) |
| LOCAL_HEALTH_PRODUCT_PACKAGE := \ |
| android.hardware.health@2.1-impl-cuttlefish \ |
| android.hardware.health@2.1-service |
| endif |
| PRODUCT_PACKAGES += $(LOCAL_HEALTH_PRODUCT_PACKAGE) |
| |
| # Health Storage |
| PRODUCT_PACKAGES += \ |
| android.hardware.health.storage-service.cuttlefish |
| |
| # Identity Credential |
| PRODUCT_PACKAGES += \ |
| android.hardware.identity-service.example |
| |
| # Input Classifier HAL |
| PRODUCT_PACKAGES += \ |
| android.hardware.input.classifier@1.0-service.default |
| |
| # |
| # Sensors |
| # |
| ifeq ($(LOCAL_SENSOR_PRODUCT_PACKAGE),) |
| LOCAL_SENSOR_PRODUCT_PACKAGE := android.hardware.sensors@2.1-service.mock |
| endif |
| PRODUCT_PACKAGES += \ |
| $(LOCAL_SENSOR_PRODUCT_PACKAGE) |
| # |
| # Thermal (mock) |
| # |
| PRODUCT_PACKAGES += \ |
| android.hardware.thermal@2.0-service.mock |
| |
| # |
| # Lights |
| # |
| PRODUCT_PACKAGES += \ |
| android.hardware.lights-service.example \ |
| |
| # |
| # Keymaster HAL |
| # |
| ifeq ($(LOCAL_KEYMASTER_PRODUCT_PACKAGE),) |
| LOCAL_KEYMASTER_PRODUCT_PACKAGE := android.hardware.keymaster@4.1-service.remote |
| endif |
| PRODUCT_PACKAGES += \ |
| $(LOCAL_KEYMASTER_PRODUCT_PACKAGE) |
| |
| # |
| # KeyMint HAL |
| # |
| ifeq ($(LOCAL_KEYMINT_PRODUCT_PACKAGE),) |
| LOCAL_KEYMINT_PRODUCT_PACKAGE := android.hardware.security.keymint-service |
| endif |
| PRODUCT_PACKAGES += \ |
| $(LOCAL_KEYMINT_PRODUCT_PACKAGE) |
| |
| # |
| # Power HAL |
| # |
| PRODUCT_PACKAGES += \ |
| android.hardware.power-service.example |
| |
| # |
| # PowerStats HAL |
| # |
| PRODUCT_PACKAGES += \ |
| android.hardware.power.stats-service.example |
| |
| # |
| # NeuralNetworks HAL |
| # |
| PRODUCT_PACKAGES += \ |
| android.hardware.neuralnetworks@1.3-service-sample-all \ |
| android.hardware.neuralnetworks@1.3-service-sample-float-fast \ |
| android.hardware.neuralnetworks@1.3-service-sample-float-slow \ |
| android.hardware.neuralnetworks@1.3-service-sample-minimal \ |
| android.hardware.neuralnetworks@1.3-service-sample-quant \ |
| android.hardware.neuralnetworks-service-sample-all \ |
| android.hardware.neuralnetworks-service-sample-float-fast \ |
| android.hardware.neuralnetworks-service-sample-float-slow \ |
| android.hardware.neuralnetworks-service-sample-minimal \ |
| android.hardware.neuralnetworks-service-sample-quant |
| |
| # |
| # USB |
| PRODUCT_PACKAGES += \ |
| android.hardware.usb@1.0-service |
| |
| # Vibrator HAL |
| PRODUCT_PACKAGES += \ |
| android.hardware.vibrator-service.example |
| |
| # BootControl HAL |
| PRODUCT_PACKAGES += \ |
| android.hardware.boot@1.2-impl \ |
| android.hardware.boot@1.2-impl.recovery \ |
| android.hardware.boot@1.2-service |
| |
| # RebootEscrow HAL |
| PRODUCT_PACKAGES += \ |
| android.hardware.rebootescrow-service.default |
| |
| # Memtrack HAL |
| PRODUCT_PACKAGES += \ |
| android.hardware.memtrack-service.example |
| |
| # GKI APEX |
| PRODUCT_PACKAGES += com.android.gki.kmi_5_10_android12_0 |
| |
| # Prevent GKI and boot image downgrades |
| PRODUCT_PRODUCT_PROPERTIES += \ |
| ro.build.ab_update.gki.prevent_downgrade_version=true \ |
| ro.build.ab_update.gki.prevent_downgrade_spl=true \ |
| |
| # WLAN driver configuration files |
| PRODUCT_COPY_FILES += \ |
| $(LOCAL_PATH)/config/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf |
| |
| # Fastboot HAL & fastbootd |
| PRODUCT_PACKAGES += \ |
| android.hardware.fastboot@1.1-impl-mock \ |
| fastbootd |
| |
| # Recovery mode |
| ifneq ($(TARGET_NO_RECOVERY),true) |
| |
| PRODUCT_COPY_FILES += \ |
| device/google/cuttlefish/shared/config/init.recovery.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.cutf_cvm.rc \ |
| device/google/cuttlefish/shared/config/cgroups.json:$(TARGET_COPY_OUT_RECOVERY)/root/vendor/etc/cgroups.json \ |
| device/google/cuttlefish/shared/config/ueventd.rc:$(TARGET_COPY_OUT_RECOVERY)/root/ueventd.cutf_cvm.rc \ |
| |
| PRODUCT_PACKAGES += \ |
| update_engine_sideload |
| |
| endif |
| |
| ifdef TARGET_DEDICATED_RECOVERY |
| PRODUCT_BUILD_RECOVERY_IMAGE := true |
| PRODUCT_PACKAGES += linker.vendor_ramdisk shell_and_utilities_vendor_ramdisk |
| else |
| PRODUCT_PACKAGES += linker.recovery shell_and_utilities_recovery |
| endif |
| |
| # |
| # Shell script Vendor Module Loading |
| # |
| PRODUCT_COPY_FILES += \ |
| $(LOCAL_PATH)/config/init.insmod.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.insmod.sh \ |
| |
| # Host packages to install |
| PRODUCT_HOST_PACKAGES += socket_vsock_proxy |
| |
| PRODUCT_EXTRA_VNDK_VERSIONS := 28 29 30 |
| |
| PRODUCT_SOONG_NAMESPACES += external/mesa3d |
| |
| # Need this so that the application's loop on reading input can be synchronized |
| # with HW VSYNC |
| PRODUCT_VENDOR_PROPERTIES += \ |
| ro.surface_flinger.running_without_sync_framework=true |