sm8550-common: Refactor proprietary files

* Add missing blobs
* Reorder proprietary-files.txt
* Build some libraries from source as seen in stock

Change-Id: I9f777283407dc6749592463bcdb082728b291ade
This commit is contained in:
chaptsand
2024-03-20 04:20:14 +08:00
parent de6aab45d0
commit 05cc5c130c
4 changed files with 403 additions and 213 deletions

View File

@@ -51,7 +51,8 @@ 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/kalama/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_kalama/audio_effects.conf \
$(AUDIO_HAL_DIR)/configs/kalama/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_kalama/audio_effects.xml \
$(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_kalama_qssi/audio_policy_configuration.xml \
$(AUDIO_HAL_DIR)/configs/kalama/microphone_characteristics.xml:$(TARGET_COPY_OUT_VENDOR)/etc/microphone_characteristics.xml \
$(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml \
$(LOCAL_PATH)/audio/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
$(LOCAL_PATH)/audio/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml
@@ -73,6 +74,7 @@ PRODUCT_PACKAGES += \
# Bluetooth
PRODUCT_PACKAGES += \
android.hardware.bluetooth@1.1.vendor \
android.hardware.bluetooth.audio-V1-ndk.vendor \
android.hardware.bluetooth.audio-V2-ndk.vendor \
vendor.qti.hardware.bluetooth.audio-V1-ndk.vendor \
vendor.qti.hardware.bluetooth_audio@2.1.vendor \
@@ -95,6 +97,8 @@ PRODUCT_PACKAGES += \
android.hardware.camera.metadata-V1-ndk.vendor \
android.hardware.camera.provider-V1-ndk.vendor \
libcamera2ndk_vendor \
libgrallocusage.vendor \
libgui_vendor \
vendor.qti.hardware.camera.aon@1.3.vendor \
vendor.qti.hardware.camera.postproc@1.0.vendor
@@ -151,7 +155,8 @@ PRODUCT_PACKAGES += \
# Gatekeeper
PRODUCT_PACKAGES += \
android.hardware.gatekeeper@1.0.vendor
android.hardware.gatekeeper@1.0-impl \
android.hardware.gatekeeper@1.0-service
# Graphics
PRODUCT_COPY_FILES += \
@@ -217,7 +222,8 @@ PRODUCT_PACKAGES += \
# Keymaster
PRODUCT_PACKAGES += \
android.hardware.keymaster@4.1.vendor \
libkeymaster_messages.vendor
libkeymaster_messages.vendor \
libkeymaster4_1support.vendor
# Keymint
PRODUCT_PACKAGES += \
@@ -229,13 +235,14 @@ PRODUCT_PACKAGES += \
android.hardware.security.sharedsecret-V1-ndk.vendor
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.keystore.app_attest_key.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.keystore.app_attest_key.xml
frameworks/native/data/etc/android.hardware.keystore.app_attest_key.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.keystore.app_attest_key.xml \
frameworks/native/data/etc/android.software.device_id_attestation.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_id_attestation.xml
# Media
PRODUCT_PACKAGES += \
libavservices_minijail \
libavservices_minijail.vendor \
libcodec2_hidl@1.0.vendor \
libcodec2_hidl@1.2.vendor \
libcodec2_vndk.vendor \
libpalclient
@@ -274,6 +281,7 @@ PRODUCT_PACKAGES += \
# OMX
PRODUCT_PACKAGES += \
libOmxCore \
libmm-omxcore \
libstagefrighthw
# Overlays
@@ -345,6 +353,7 @@ PRODUCT_COPY_FILES += \
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.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.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.hifi_sensors.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.hifi_sensors.xml \
@@ -361,6 +370,7 @@ PRODUCT_SHIPPING_API_LEVEL := $(BOARD_API_LEVEL)
# Thermal
PRODUCT_PACKAGES += \
android.frameworks.cameraservice.service@2.2.vendor \
android.hardware.thermal@2.0 \
android.hardware.thermal@2.0.vendor
@@ -389,6 +399,10 @@ PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.verified_boot.xml
# Weaver
PRODUCT_PACKAGES += \
android.hardware.weaver@1.0.vendor
# Vibrator
PRODUCT_PACKAGES += \
android.hardware.vibrator-service.samsung

File diff suppressed because it is too large Load Diff

View File

@@ -101,4 +101,18 @@
<instance>default</instance>
</interface>
</hal>
<hal format="aidl" optional="true">
<name>vendor.samsung.hardware.frcmc</name>
<interface>
<name>ISehFrcMc</name>
<instance>default</instance>
</interface>
</hal>
<hal format="aidl" optional="true">
<name>vendor.samsung.hardware.security.fkeymaster</name>
<interface>
<name>ISehFkeymaster</name>
<instance>default</instance>
</interface>
</hal>
</compatibility-matrix>

View File

@@ -23,20 +23,6 @@
</interface>
<fqname>@4.0::IKeymasterDevice/strongbox</fqname>
</hal>
<hal format="aidl" override="true">
<name>android.hardware.security.keymint</name>
<version>2</version>
<interface>
<name>IKeyMintDevice</name>
<instance>default</instance>
</interface>
<interface>
<name>IRemotelyProvisionedComponent</name>
<instance>default</instance>
</interface>
<fqname>IKeyMintDevice/default</fqname>
<fqname>IRemotelyProvisionedComponent/default</fqname>
</hal>
<hal format="hidl">
<name>vendor.samsung.hardware.bluetooth</name>
<transport>hwbinder</transport>