# # Copyright (C) 2024 The LineageOS Project # # SPDX-License-Identifier: Apache-2.0 # # Installs gsi keys into ramdisk, to boot a developer GSI with verified boot. $(call inherit-product, $(SRC_TARGET_DIR)/product/developer_gsi_keys.mk) # Enable updating of APEXes $(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk) # Audio PRODUCT_PACKAGES += \ android.hardware.audio@2.0-impl \ android.hardware.audio@7.0-util.vendor \ android.hardware.audio.effect@2.0-impl \ android.hardware.audio.effect@6.0-impl \ android.hardware.audio.effect@7.0-impl \ libaudioclient_aidl_conversion \ libaudiofoundation.vendor \ libbluetooth_audio_session \ spatializer-aidl-cpp.vendor PRODUCT_PACKAGES += \ audio.bluetooth.default \ audio.primary.default \ audio.r_submix.default \ audio.usb.default \ audio_policy.stub PRODUCT_PACKAGES += \ libalsautils \ libaudiopreprocessing \ libdynproc \ libhapticgenerator \ libtinycompress \ libnbaio_mono PRODUCT_PACKAGES += \ libstagefright_bufferpool@2.0.1.vendor PRODUCT_PACKAGES += \ android.hardware.soundtrigger@2.0-impl \ android.hardware.soundtrigger@2.3.vendor PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/audio/a2dpsink_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dpsink_audio_policy_configuration.xml \ $(LOCAL_PATH)/configs/audio/audio_device.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_device.xml \ $(LOCAL_PATH)/configs/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ $(LOCAL_PATH)/configs/audio/audio_em.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_em.xml \ $(LOCAL_PATH)/configs/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ $(LOCAL_PATH)/configs/audio/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ $(LOCAL_PATH)/configs/audio/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \ $(LOCAL_PATH)/configs/audio/tms_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/tms_audio_policy_configuration.xml \ $(LOCAL_PATH)/configs/audio/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml PRODUCT_COPY_FILES += \ frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \ frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ frameworks/av/services/audiopolicy/config/hearing_aid_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/hearing_aid_audio_policy_configuration.xml \ frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml # Bluetooth PRODUCT_PACKAGES += \ android.hardware.bluetooth.audio-impl \ android.hardware.bluetooth@1.1.vendor # Camera PRODUCT_PACKAGES += \ libgui_vendor # CAS PRODUCT_PACKAGES += \ android.hardware.cas@1.2-service-lazy # Display PRODUCT_PACKAGES += \ android.hardware.graphics.allocator@2.0.vendor \ android.hardware.graphics.allocator@4.0.vendor \ android.hardware.graphics.common@1.2.vendor \ android.hardware.graphics.composer@2.1-service \ android.hardware.graphics.mapper@2.1.vendor \ android.hardware.graphics.mapper@3.0.vendor \ android.hardware.graphics.mapper@4.0.vendor PRODUCT_PACKAGES += \ android.hardware.memtrack@1.0-impl \ android.hardware.memtrack@1.0-service PRODUCT_PACKAGES += \ gralloc.default \ libgrallocusage.vendor # DRM PRODUCT_PACKAGES += \ android.hardware.drm@1.4-service.clearkey \ android.hardware.drm@1.4.vendor \ libdrm.vendor\ libdrmclearkeyplugin \ libmockdrmcryptoplugin \ libz_stable.vendor # Dumpstate PRODUCT_PACKAGES += \ android.hardware.dumpstate@1.1.vendor:64 # Dynamic partitions PRODUCT_USE_DYNAMIC_PARTITIONS := true # fastbootd PRODUCT_PACKAGES += \ fastbootd # Fingerprint PRODUCT_PACKAGES += \ android.hardware.biometrics.fingerprint@2.1.vendor # Gatekeeper PRODUCT_PACKAGES += \ android.hardware.gatekeeper@1.0-impl \ android.hardware.gatekeeper@1.0-service # GPS PRODUCT_PACKAGES += \ android.hardware.gnss@1.1.vendor \ android.hardware.gnss@2.1.vendor \ android.hardware.gnss.measurement_corrections@1.1.vendor \ android.hardware.gnss.visibility_control@1.0.vendor # Health PRODUCT_PACKAGES += \ android.hardware.health@2.1-impl \ android.hardware.health@2.1-impl.recovery \ android.hardware.health@2.1-service # HIDL PRODUCT_PACKAGES += \ libhidltransport \ libhidltransport.vendor \ libhwbinder \ libhwbinder.vendor # Keymaster PRODUCT_PACKAGES += \ android.hardware.keymaster@4.0-service \ libkeymaster4_1support.vendor \ libpuresoftkeymasterdevice.vendor PRODUCT_PACKAGES += \ libkeystore-wifi-hidl \ libkeystore-engine-wifi-hidl # Lights PRODUCT_PACKAGES += \ android.hardware.light-service.a32 # Media PRODUCT_PACKAGES += \ android.hardware.media.c2@1.2.vendor \ libavservices_minijail \ libavservices_minijail_vendor \ libcodec2_hidl@1.2.vendor \ libcodec2_simple_component \ libcodec2_soft_common.vendor \ libsfplugin_ccodec_utils.vendor \ libstagefright_softomx_plugin.vendor PRODUCT_COPY_FILES += \ $(call find-copy-subdir-files,*,$(LOCAL_PATH)/configs/media,$(TARGET_COPY_OUT_VENDOR)/etc) PRODUCT_COPY_FILES += \ 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_video_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml # Neural Networks PRODUCT_PACKAGES += \ android.hardware.neuralnetworks@1.3.vendor \ libtextclassifier_hash.vendor # NFC PRODUCT_PACKAGES += \ android.hardware.nfc@1.2.vendor PRODUCT_COPY_FILES += \ $(call find-copy-subdir-files,*,$(LOCAL_PATH)/configs/nfc,$(TARGET_COPY_OUT_VENDOR)/etc) # Network tools PRODUCT_PACKAGES += \ libpcap # Overlays DEVICE_PACKAGE_OVERLAYS += \ $(LOCAL_PATH)/overlay-lineage PRODUCT_ENFORCE_RRO_TARGETS := * PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS += \ $(LOCAL_PATH)/overlay-lineage PRODUCT_PACKAGES += \ CarrierConfigOverlayA32 \ FrameworksResOverlayA32 \ SettingsOverlayA32 \ SettingsProviderOverlayA32 \ SystemUIOverlayA32 \ TetheringConfigOverlayA32 \ WifiOverlayA32 # Permissions PRODUCT_COPY_FILES += \ 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.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.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.faketouch.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.faketouch.xml \ frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.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.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \ frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \ frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \ frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \ frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \ frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \ frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \ frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.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.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.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \ frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml \ frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \ frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \ frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \ frameworks/native/data/etc/android.hardware.touchscreen.multitouch.distinct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.distinct.xml \ frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ frameworks/native/data/etc/android.hardware.touchscreen.multitouch.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.xml \ frameworks/native/data/etc/android.hardware.touchscreen.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.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.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute.xml \ frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level.xml \ frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version.xml \ frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \ frameworks/native/data/etc/android.hardware.wifi.passpoint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.passpoint.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.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \ frameworks/native/data/etc/android.software.opengles.deqp.level-2020-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.opengles.deqp.level.xml \ frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.verified_boot.xml \ frameworks/native/data/etc/android.software.vulkan.deqp.level-2020-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.vulkan.deqp.level.xml \ frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \ frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml # Power PRODUCT_PACKAGES += \ android.hardware.power@1.2.vendor \ power.default # Public Libraries PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt # Radio PRODUCT_PACKAGES += \ android.hardware.radio.config@1.2.vendor \ android.hardware.radio.deprecated@1.0.vendor \ android.hardware.radio@1.6.vendor # RenderScript PRODUCT_PACKAGES += \ android.hardware.renderscript@1.0-impl # Rootdir PRODUCT_PACKAGES += \ factory_init.connectivity.common.rc \ factory_init.connectivity.rc \ factory_init.project.rc \ factory_init.rc \ fstab.mt6768 \ fstab.mt6769t \ init.aee.rc \ init.ago.rc \ init.cgroup.rc \ init.connectivity.common.rc \ init.connectivity.rc \ init.modem.rc \ init.mt6768.rc \ init.mt6768.usb.rc \ init.mt6769t.rc \ init.project.rc \ init_connectivity.rc \ init.recovery.mt6768.rc \ init.recovery.mt6769t.rc \ init.recovery.samsung.rc \ init.target.rc \ meta_init.connectivity.common.rc \ meta_init.connectivity.rc \ meta_init.modem.rc \ meta_init.project.rc \ meta_init.rc \ meta_init.vendor.rc \ multi_init.rc \ ueventd.mtk.rc PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/rootdir/etc/fstab.mt6768:$(TARGET_COPY_OUT_RAMDISK)/fstab.mt6768 \ $(LOCAL_PATH)/rootdir/etc/fstab.mt6769t:$(TARGET_COPY_OUT_RAMDISK)/fstab.mt6769t \ $(LOCAL_PATH)/rootdir/etc/fstab.mt6769t:$(TARGET_COPY_OUT_RECOVERY)/root/first_stage_ramdisk/fstab.mt6769t # Seccomp policy PRODUCT_COPY_FILES += \ $(call find-copy-subdir-files,*,$(LOCAL_PATH)/configs/seccomp_policy,$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy) # Sensors PRODUCT_PACKAGES += \ android.frameworks.sensorservice@1.0.vendor \ android.hardware.sensors@1.0.vendor \ android.hardware.sensors@2.0-ScopedWakelock.vendor \ android.hardware.sensors@2.1.vendor PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/sensors/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf # Shipping API level PRODUCT_SHIPPING_API_LEVEL := 30 # Soong namespaces PRODUCT_SOONG_NAMESPACES += \ $(LOCAL_PATH) # Thermal PRODUCT_PACKAGES += \ android.hardware.thermal@1.0-impl \ android.hardware.thermal@2.0.vendor # USB PRODUCT_PACKAGES += \ android.hardware.usb@1.3.vendor # Vibrator PRODUCT_PACKAGES += \ vibrator.default # Wi-Fi PRODUCT_PACKAGES += \ android.hardware.tetheroffload.config@1.0.vendor \ android.hardware.tetheroffload.control@1.1.vendor \ android.hardware.wifi.hostapd@1.3.vendor \ android.hardware.wifi.supplicant@1.4.vendor \ android.hardware.wifi@1.5.vendor PRODUCT_COPY_FILES += \ $(call find-copy-subdir-files,*,$(LOCAL_PATH)/configs/wifi,$(TARGET_COPY_OUT_VENDOR)/etc/wifi) # Inherit the proprietary files $(call inherit-product, vendor/samsung/a32/a32-vendor.mk)