123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411 |
- #
- # Copyright (C) 2024 The LineageOS Project
- #
- # SPDX-License-Identifier: Apache-2.0
- #
- # Add common symlinks definitions for Qualcomm Samsung
- $(call inherit-product, hardware/samsung/symlinks/qcom-common.mk)
- # Enable project quotas and casefolding for emulated storage without sdcardfs
- $(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
- # Enforce generic ramdisk allow list
- $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_ramdisk.mk)
- # Dalvik
- $(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk)
- # Enable updating of APEXes
- $(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
- # Add common definitions for Qualcomm
- $(call inherit-product, hardware/qcom-caf/common/common.mk)
- # AAPT
- PRODUCT_AAPT_CONFIG := normal
- PRODUCT_AAPT_PREF_CONFIG := xxxhdpi
- # API levels
- BOARD_SHIPPING_API_LEVEL := 34
- PRODUCT_SHIPPING_API_LEVEL := $(BOARD_SHIPPING_API_LEVEL)
- # Audio
- PRODUCT_PACKAGES += \
- [email protected] \
- [email protected] \
- android.hardware.audio.service \
- android.hardware.bluetooth.audio-impl \
- [email protected] \
- audioadsprpcd \
- audio.bluetooth.default \
- audio.r_submix.default \
- audio.usb.default \
- libagm_compress_plugin \
- libagm_mixer_plugin \
- libagm_pcm_plugin \
- libaudiochargerlistener \
- libbatterylistener \
- libfmpal \
- libhfp_pal \
- libqcompostprocbundle \
- libqcomvisualizer \
- libqcomvoiceprocessing \
- libsndcardparser \
- libtinycompress \
- libvolumelistener \
- sound_trigger.primary.pineapple
- AUDIO_HAL_DIR := hardware/qcom-caf/sm8650/audio/primary-hal
- AUDIO_PAL_DIR := hardware/qcom-caf/sm8650/audio/pal
- PRODUCT_COPY_FILES += \
- $(AUDIO_HAL_DIR)/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
- $(AUDIO_HAL_DIR)/configs/pineapple/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_pineapple/audio_effects.conf \
- $(AUDIO_HAL_DIR)/configs/pineapple/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_pineapple/audio_effects.xml \
- $(AUDIO_HAL_DIR)/configs/pineapple/microphone_characteristics.xml:$(TARGET_COPY_OUT_VENDOR)/etc/microphone_characteristics.xml \
- $(AUDIO_PAL_DIR)/configs/pineapple/card-defs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/card-defs.xml \
- $(LOCAL_PATH)/configs/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
- $(LOCAL_PATH)/configs/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_pineapple_qssi/audio_policy_configuration.xml \
- $(LOCAL_PATH)/configs/audio/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.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/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
- frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.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.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \
- frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml
- # Bluetooth
- PRODUCT_COPY_FILES += \
- 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
- # Boot animation
- TARGET_SCREEN_HEIGHT := 2340
- TARGET_SCREEN_WIDTH := 1080
- # Camera
- PRODUCT_PACKAGES += \
- android.hardware.graphics.common-V4-ndk.vendor \
- libjpeg.vendor \
- libyuv.vendor
- PRODUCT_COPY_FILES += \
- 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 \
- $(LOCAL_PATH)/configs/permissions/platform-samsung.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/platform-samsung.xml
- # DebugFS
- PRODUCT_SET_DEBUGFS_RESTRICTIONS := true
- # Default ADB shell prompt
- PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
- persist.sys.adb.shell=/system_ext/bin/bash
- # Display
- PRODUCT_PACKAGES += \
- [email protected] \
- init.qti.display_boot.rc \
- init.qti.display_boot.sh \
- vendor.qti.hardware.display.allocator-service \
- vendor.qti.hardware.display.composer-service \
- vendor.qti.hardware.display.composer-service.rc \
- vendor.qti.hardware.display.composer-service.xml \
- vendor.qti.hardware.display.config-V2-ndk.vendor \
- vendor.qti.hardware.display.demura-service
- PRODUCT_COPY_FILES += \
- frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml
- # Doze
- PRODUCT_PACKAGES += \
- SamsungDoze
- # DRM
- PRODUCT_PACKAGES += \
- android.hardware.drm-service.clearkey
- # fastbootd
- PRODUCT_PACKAGES += \
- [email protected] \
- fastbootd
- # Fingerprint
- PRODUCT_PACKAGES += \
- android.hardware.biometrics.fingerprint-service.samsung
- PRODUCT_COPY_FILES += \
- frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
- # Graphics
- PRODUCT_COPY_FILES += \
- 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.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
- frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level-1.xml \
- frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version-1_1.xml \
- frameworks/native/data/etc/android.hardware.vulkan.version-1_3.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version-1_3.xml \
- frameworks/native/data/etc/android.software.opengles.deqp.level-2022-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.opengles.deqp.level.xml \
- frameworks/native/data/etc/android.software.vulkan.deqp.level-2022-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.vulkan.deqp.level.xml
- # GPS
- PRODUCT_COPY_FILES += \
- frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml
- # Health
- PRODUCT_PACKAGES += \
- android.hardware.health-service.qti \
- android.hardware.health-service.qti_recovery
- # HIDL
- PRODUCT_PACKAGES += \
- libhidltransport.vendor \
- libhwbinder.vendor
- # IPACM
- PRODUCT_PACKAGES += \
- ipacm \
- IPACM_cfg.xml \
- IPACM_Filter_cfg.xml
- # Media
- PRODUCT_PACKAGES += \
- libavservices_minijail \
- libpalclient
- PRODUCT_COPY_FILES += \
- $(AUDIO_HAL_DIR)/configs/common/codec2/media_codecs_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_c2_audio.xml \
- $(AUDIO_HAL_DIR)/configs/common/codec2/service/1.0/c2audio.vendor.base-arm64.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/c2audio.vendor.base-arm64.policy \
- $(AUDIO_HAL_DIR)/configs/common/codec2/service/1.0/c2audio.vendor.ext-arm64.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/c2audio.vendor.ext-arm64.policy
- # Memtrack
- PRODUCT_PACKAGES += \
- vendor.qti.hardware.memtrack-service
- # NFC
- PRODUCT_PACKAGES += \
- android.hardware.nfc-service.nxp \
- nqnfcinfo \
- Tag
- PRODUCT_COPY_FILES += \
- 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.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \
- frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \
- frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
- frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml
- # Overlay
- PRODUCT_PACKAGES += \
- CarrierConfigResCommon \
- FrameworksResE1q \
- FrameworksResUdfpsSensor \
- SettingsResCommon \
- SystemUIResE1q \
- WifiResTargetE1q
- # Power
- PRODUCT_PACKAGES += \
- android.hardware.power-service-qti
- # Partitions
- PRODUCT_USE_DYNAMIC_PARTITIONS := true
- # Product characteristics
- PRODUCT_CHARACTERISTICS := phone
- # Protobuf
- PRODUCT_PACKAGES += \
- libprotobuf-cpp-full-3.9.1-vendorcompat
- # QMI
- PRODUCT_PACKAGES += \
- libcurl.vendor \
- libjsoncpp.vendor \
- libqti_vndfwk_detect_vendor \
- libsqlite.vendor
- # QTI
- PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/configs/permissions/privapp-permissions-qti.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-qti.xml \
- $(LOCAL_PATH)/configs/permissions/qti_whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/qti_whitelist.xml
- # RIL
- PRODUCT_PACKAGES += \
- librilutils \
- libnetutils.vendor \
- libsecril-client \
- secril_config_svc \
- sehradiomanager
- # Rootdir
- PRODUCT_PACKAGES += \
- dcc_extension.sh \
- hdm_status.sh \
- init.class_main.sh \
- init.crda.sh \
- init.kernel.post_boot-cliffs.sh \
- init.kernel.post_boot-pineapple.sh \
- init.kernel.post_boot.sh \
- init.mdm.sh \
- init.qcom.class_core.sh \
- init.qcom.coex.sh \
- init.qcom.early_boot.sh \
- init.qcom.efs.sync.sh \
- init.qcom.post_boot.sh \
- init.qcom.sdio.sh \
- init.qcom.sensors.sh \
- init.qcom.sh \
- init.qti.qcv.rc \
- init.qti.qcv.sh \
- init.qti.kernel.debug-cliffs.sh \
- init.qti.kernel.debug-pineapple.sh \
- init.qti.kernel.debug.sh \
- init.qti.kernel.early_debug-pineapple.sh \
- init.qti.kernel.early_debug.sh \
- init.qti.kernel.sh \
- init.qti.media.sh \
- init.qti.time.daemon.sh \
- init.qti.write.sh \
- init.vendor.sensordebug.sh \
- init.vendor.sensordebug.ssr_dump.sh \
- qca6234-service.sh \
- system_dlkm_modprobe.sh \
- ueventd.qcom.rc \
- vendor_modprobe.sh \
- PRODUCT_PACKAGES += \
- fstab.qcom \
- init.e1q.rc \
- init.qcom.factory.rc \
- init.qcom.rc \
- init.qti.kernel.rc \
- init.qti.ss-ramdump.sh \
- init.qti.ufs.rc \
- init.samsung.bsp.rc \
- init.samsung.display.rc \
- init.samsung.dp.rc \
- init.samsung.factory.rc \
- init.samsung.power.rc \
- init.samsung.rc \
- init.samsung.user.rc \
- init.target.rc \
- init.recovery.qcom.rc \
- init.recovery.samsung.rc \
- PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/fstab.qcom
- # Sensors
- #PRODUCT_PACKAGES += \
- # android.hardware.sensors-service.samsung-multihal \
- # sensors.dynamic_sensor_hal
- PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/configs/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
- PRODUCT_COPY_FILES += \
- 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.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.barometer.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
- # Soong namespaces
- PRODUCT_SOONG_NAMESPACES += \
- $(LOCAL_PATH) \
- hardware/samsung \
- kernel/samsung/sm8650 \
- kernel/samsung/sm8650-modules
- # Telephony
- PRODUCT_PACKAGES += \
- qti-telephony-hidl-wrapper \
- qti_telephony_hidl_wrapper.xml \
- qti-telephony-utils \
- qti_telephony_utils.xml \
- telephony-ext
- PRODUCT_BOOT_JARS += \
- telephony-ext
- PRODUCT_COPY_FILES += \
- frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/vendor.samsung.hardware.telephony.gsm.xml \
- frameworks/native/data/etc/android.hardware.telephony.mbms.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.mbms.xml \
- frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml
- # Thermal
- PRODUCT_PACKAGES += \
- [email protected]
- # Trusted UI
- PRODUCT_PACKAGES += \
- [email protected] \
- [email protected]
- # USB
- PRODUCT_PACKAGES += \
- android.hardware.usb-service.qti \
- android.hardware.usb.gadget-service.qti \
- init.qcom.usb.rc \
- init.qcom.usb.sh
- PRODUCT_SOONG_NAMESPACES += \
- vendor/qcom/opensource/usb/etc
- PRODUCT_COPY_FILES += \
- 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
- # Vendor service manager
- PRODUCT_PACKAGES += \
- vndservicemanager
- # Verified Boot
- PRODUCT_COPY_FILES += \
- frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.verified_boot.xml
- # Vibrator
- #PRODUCT_PACKAGES += \
- #android.hardware.vibrator-service.samsung
- # VNDK
- PRODUCT_PACKAGES += \
- libcrypto-v33
- # Wi-Fi
- PRODUCT_PACKAGES += \
- android.hardware.wifi-service \
- hostapd \
- libwpa_client \
- libwifi-hal-ctrl \
- libwifi-hal-qcom \
- wpa_supplicant \
- wpa_supplicant.conf \
- firmware_wlanmdsp.otaupdate_symlink \
- firmware_wlan_mac.bin_symlink \
- firmware_WCNSS_qcom_cfg.ini_symlink
- PRODUCT_COPY_FILES += \
- frameworks/native/data/etc/android.hardware.wifi.aware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.aware.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.rtt.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.rtt.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
- # Inherit the proprietary files
- $(call inherit-product, vendor/samsung/e1q/e1q-vendor.mk)
|