From 08ccefecf0556b77a9efa20a72baeda3c1880b2c Mon Sep 17 00:00:00 2001 From: Albert Tang Date: Thu, 2 Jun 2022 13:58:13 -0500 Subject: [PATCH] dre: Ship FM2 This device is able to use FM Radio, so we might as well use it. Change-Id: I791e4ca732feabd543dadc885f4ab0940e1cf3f4 --- device.mk | 5 +++++ extract-files.py | 1 + proprietary-files.txt | 5 ++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/device.mk b/device.mk index 352d959..45e2dfe 100644 --- a/device.mk +++ b/device.mk @@ -196,6 +196,11 @@ PRODUCT_PACKAGES += \ PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml +# FM Radio +PRODUCT_PACKAGES += \ + FM2 \ + qcom.fmradio + # GPS PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/gps/gps.conf:$(TARGET_COPY_OUT_ODM)/etc/gps.conf diff --git a/extract-files.py b/extract-files.py index da3a87e..d17fade 100755 --- a/extract-files.py +++ b/extract-files.py @@ -45,6 +45,7 @@ lib_fixups: lib_fixups_user_type = { 'com.qualcomm.qti.dpm.api@1.0', 'libmmosal', 'vendor.qti.diaghal@1.0', + 'vendor.qti.hardware.fm@1.0', 'vendor.qti.hardware.wifidisplaysession@1.0', 'vendor.qti.imsrtpservice@3.0', ): lib_fixup_vendor_suffix, diff --git a/proprietary-files.txt b/proprietary-files.txt index 196e7f9..aaf57c6 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -976,8 +976,11 @@ odm/vendor/firmware/goodixfp.mdt vendor/lib64/vendor.oplus.hardware.commondcs@1.0.so:odm/lib64/vendor.oplus.hardware.commondcs@1.0.so # FM +system_ext/lib64/fm_helium.so +system_ext/lib64/libfm-hci.so +system_ext/lib64/vendor.qti.hardware.fm@1.0.so vendor/lib64/hw/vendor.qti.hardware.fm@1.0-impl.so -vendor/lib64/vendor.qti.hardware.fm@1.0.so +vendor/lib64/vendor.qti.hardware.fm@1.0.so;MODULE_SUFFIX=_vendor # Gatekeeper vendor/bin/hw/android.hardware.gatekeeper@1.0-service-qti