sdm845-common: Commonize BT stack and dependencies

There's no harm doing this and eases kernel 4.19 bringup.

Change-Id: Ie88f469be3f83c887dc2f993cb964bfa51091512
This commit is contained in:
duckyduckG committed 2026-04-04 10:17:33 +05:00
1 parent dcfb560be8
commit 4b7927a0aa
33 files changed
+168 -16

No files matched your search

+161 -14
View File
@@ -2635,12 +2635,12 @@ cc_prebuilt_library_shared {
"libcutils", "libcutils",
"libfmq", "libfmq",
"libhidlbase", "libhidlbase",
"libhidltransport",
"liblog", "liblog",
"libutils", "libutils",
"android.hardware.bluetooth.audio@2.0", "android.hardware.bluetooth.audio@2.0",
"libbluetooth_audio_session", "libbluetooth_audio_session",
"libbluetooth_audio_session_qti", "libbluetooth_audio_session_qti",
"libbluetooth_audio_session_qti_2_1",
"libc++", "libc++",
"libc", "libc",
"libm", "libm",
@@ -2744,9 +2744,44 @@ cc_prebuilt_library_shared {
"libcutils", "libcutils",
"libfmq", "libfmq",
"libhidlbase", "libhidlbase",
"liblog",
"libutils",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "32",
relative_install_path: "hw",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "vendor.qti.hardware.bluetooth_audio@2.1-impl",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm: {
srcs: [
"proprietary/vendor/lib/hw/vendor.qti.hardware.bluetooth_audio@2.1-impl.so",
],
shared_libs: [
"android.hardware.audio.common@5.0",
"libbluetooth_audio_session_qti_2_1",
"libbase",
"libcutils",
"libfmq",
"libhidlbase",
"libhidltransport", "libhidltransport",
"liblog", "liblog",
"libutils", "libutils",
"vendor.qti.hardware.bluetooth_audio@2.1",
"vendor.qti.hardware.bluetooth_audio@2.0",
"libc++", "libc++",
"libc", "libc",
"libm", "libm",
@@ -3205,6 +3240,39 @@ cc_prebuilt_library_shared {
"proprietary/vendor/lib/libbluetooth_audio_session_qti.so", "proprietary/vendor/lib/libbluetooth_audio_session_qti.so",
], ],
shared_libs: [ shared_libs: [
"vendor.qti.hardware.bluetooth_audio@2.0",
"libaudioutils",
"libbase",
"libcutils",
"libfmq",
"libhidlbase",
"liblog",
"libutils",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "32",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "libbluetooth_audio_session_qti_2_1",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm: {
srcs: [
"proprietary/vendor/lib/libbluetooth_audio_session_qti_2_1.so",
],
shared_libs: [
"vendor.qti.hardware.bluetooth_audio@2.1",
"vendor.qti.hardware.bluetooth_audio@2.0", "vendor.qti.hardware.bluetooth_audio@2.0",
"libaudioutils", "libaudioutils",
"libbase", "libbase",
@@ -4945,7 +5013,6 @@ cc_prebuilt_library_shared {
"libbase", "libbase",
"libcutils", "libcutils",
"libhidlbase", "libhidlbase",
"libhidltransport",
"liblog", "liblog",
"libutils", "libutils",
"libdiag", "libdiag",
@@ -4953,6 +5020,7 @@ cc_prebuilt_library_shared {
"libqmi_cci", "libqmi_cci",
"libbtnv", "libbtnv",
"android.hardware.bluetooth@1.0", "android.hardware.bluetooth@1.0",
"libsoc_helper",
"libc++", "libc++",
"libc", "libc",
"libm", "libm",
@@ -5065,7 +5133,7 @@ cc_prebuilt_library_shared {
} }
cc_prebuilt_library_shared { cc_prebuilt_library_shared {
name: "vendor.qti.hardware.bluetooth_sar@1.0-impl", name: "vendor.qti.hardware.bluetooth_sar@1.1-impl",
owner: "xiaomi", owner: "xiaomi",
strip: { strip: {
none: true, none: true,
@@ -5073,19 +5141,16 @@ cc_prebuilt_library_shared {
target: { target: {
android_arm64: { android_arm64: {
srcs: [ srcs: [
"proprietary/vendor/lib64/hw/vendor.qti.hardware.bluetooth_sar@1.0-impl.so", "proprietary/vendor/lib64/hw/vendor.qti.hardware.bluetooth_sar@1.1-impl.so",
], ],
shared_libs: [ shared_libs: [
"libhidlbase", "libhidlbase",
"libhidltransport",
"libutils", "libutils",
"liblog", "liblog",
"libhwbinder",
"libbase", "libbase",
"libcutils", "libcutils",
"libhardware",
"vendor.qti.hardware.bluetooth_sar@1.0", "vendor.qti.hardware.bluetooth_sar@1.0",
"android.hardware.bluetooth@1.0", "vendor.qti.hardware.bluetooth_sar@1.1",
"android.hardware.bluetooth@1.0-impl-qti", "android.hardware.bluetooth@1.0-impl-qti",
"libc++", "libc++",
"libc", "libc",
@@ -5115,9 +5180,7 @@ cc_prebuilt_library_shared {
"libbase", "libbase",
"libcutils", "libcutils",
"libhidlbase", "libhidlbase",
"libhidltransport",
"liblog", "liblog",
"libhwbinder",
"libutils", "libutils",
"vendor.qti.hardware.btconfigstore@1.0", "vendor.qti.hardware.btconfigstore@1.0",
"android.hardware.bluetooth@1.0-impl-qti", "android.hardware.bluetooth@1.0-impl-qti",
@@ -5134,6 +5197,38 @@ cc_prebuilt_library_shared {
soc_specific: true, soc_specific: true,
} }
cc_prebuilt_library_shared {
name: "vendor.qti.hardware.btconfigstore@2.0-impl",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/vendor/lib64/hw/vendor.qti.hardware.btconfigstore@2.0-impl.so",
],
shared_libs: [
"libbase",
"libcutils",
"libhidlbase",
"liblog",
"libutils",
"vendor.qti.hardware.btconfigstore@2.0",
"android.hardware.bluetooth@1.0-impl-qti",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
relative_install_path: "hw",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared { cc_prebuilt_library_shared {
name: "vendor.qti.hardware.capabilityconfigstore@1.0-impl", name: "vendor.qti.hardware.capabilityconfigstore@1.0-impl",
owner: "xiaomi", owner: "xiaomi",
@@ -8021,6 +8116,31 @@ cc_prebuilt_library_shared {
soc_specific: true, soc_specific: true,
} }
cc_prebuilt_library_shared {
name: "libsoc_helper",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/vendor/lib64/libsoc_helper.so",
],
shared_libs: [
"libcutils",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared { cc_prebuilt_library_shared {
name: "libspcom", name: "libspcom",
owner: "xiaomi", owner: "xiaomi",
@@ -9026,8 +9146,35 @@ cc_prebuilt_library_shared {
], ],
shared_libs: [ shared_libs: [
"libhidlbase", "libhidlbase",
"libhidltransport", "liblog",
"libhwbinder", "libutils",
"libcutils",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
prefer: true,
soc_specific: true,
}
cc_prebuilt_library_shared {
name: "vendor.qti.hardware.bluetooth_sar@1.1",
owner: "xiaomi",
strip: {
none: true,
},
target: {
android_arm64: {
srcs: [
"proprietary/vendor/lib64/vendor.qti.hardware.bluetooth_sar@1.1.so",
],
shared_libs: [
"vendor.qti.hardware.bluetooth_sar@1.0",
"libhidlbase",
"liblog", "liblog",
"libutils", "libutils",
"libcutils", "libcutils",
@@ -12996,13 +13143,13 @@ cc_prebuilt_binary {
"liblog", "liblog",
"libcutils", "libcutils",
"libutils", "libutils",
"libhwbinder",
"libhidlbase", "libhidlbase",
"libhidltransport",
"android.hardware.bluetooth@1.0", "android.hardware.bluetooth@1.0",
"vendor.qti.hardware.fm@1.0_vendor", "vendor.qti.hardware.fm@1.0_vendor",
"vendor.qti.hardware.bluetooth_sar@1.0", "vendor.qti.hardware.bluetooth_sar@1.0",
"vendor.qti.hardware.bluetooth_sar@1.1",
"vendor.qti.hardware.btconfigstore@1.0", "vendor.qti.hardware.btconfigstore@1.0",
"vendor.qti.hardware.btconfigstore@2.0",
"libqti_vndfwk_detect", "libqti_vndfwk_detect",
"libc++", "libc++",
"libc", "libc",
@@ -1,5 +1,5 @@
service vendor.bluetooth-1-0-qti /vendor/bin/hw/android.hardware.bluetooth@1.0-service-qti service vendor.bluetooth-1-0-qti /vendor/bin/hw/android.hardware.bluetooth@1.0-service-qti
class hal class hal
user bluetooth user bluetooth
group bluetooth system wakelock oem_2901 group bluetooth system wakelock oem_2901 net_raw
capabilities BLOCK_SUSPEND NET_ADMIN capabilities BLOCK_SUSPEND NET_ADMIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+6 -1
View File
@@ -190,6 +190,7 @@ PRODUCT_PACKAGES += \
audio.primary.sdm845 \ audio.primary.sdm845 \
sound_trigger.primary.sdm845 \ sound_trigger.primary.sdm845 \
vendor.qti.hardware.bluetooth_audio@2.0-impl \ vendor.qti.hardware.bluetooth_audio@2.0-impl \
vendor.qti.hardware.bluetooth_audio@2.1-impl \
libFileMux_proprietary \ libFileMux_proprietary \
libOmxVideoDSMode \ libOmxVideoDSMode \
libOmxVpp \ libOmxVpp \
@@ -206,6 +207,7 @@ PRODUCT_PACKAGES += \
libaudioroute_ext \ libaudioroute_ext \
libbatterylistener \ libbatterylistener \
libbluetooth_audio_session_qti \ libbluetooth_audio_session_qti \
libbluetooth_audio_session_qti_2_1 \
libcapiv2svacnn \ libcapiv2svacnn \
libcapiv2vop \ libcapiv2vop \
libcomprcapture \ libcomprcapture \
@@ -268,8 +270,9 @@ PRODUCT_PACKAGES += \
android.hardware.gatekeeper@1.0-impl-qti \ android.hardware.gatekeeper@1.0-impl-qti \
vendor.qti.esepowermanager@1.0-impl \ vendor.qti.esepowermanager@1.0-impl \
vendor.qti.hardware.alarm@1.0-impl \ vendor.qti.hardware.alarm@1.0-impl \
vendor.qti.hardware.bluetooth_sar@1.0-impl \ vendor.qti.hardware.bluetooth_sar@1.1-impl \
vendor.qti.hardware.btconfigstore@1.0-impl \ vendor.qti.hardware.btconfigstore@1.0-impl \
vendor.qti.hardware.btconfigstore@2.0-impl \
vendor.qti.hardware.capabilityconfigstore@1.0-impl \ vendor.qti.hardware.capabilityconfigstore@1.0-impl \
vendor.qti.hardware.fm@1.0-impl \ vendor.qti.hardware.fm@1.0-impl \
vendor.qti.hardware.qteeconnector@1.0-impl \ vendor.qti.hardware.qteeconnector@1.0-impl \
@@ -363,6 +366,7 @@ PRODUCT_PACKAGES += \
libsecureui_svcsock \ libsecureui_svcsock \
libsensorcal \ libsensorcal \
libsettings \ libsettings \
libsoc_helper \
libspcom \ libspcom \
libspl \ libspl \
libssd \ libssd \
@@ -396,6 +400,7 @@ PRODUCT_PACKAGES += \
vendor.qti.esepowermanager@1.0 \ vendor.qti.esepowermanager@1.0 \
vendor.qti.hardware.alarm@1.0 \ vendor.qti.hardware.alarm@1.0 \
vendor.qti.hardware.bluetooth_sar@1.0 \ vendor.qti.hardware.bluetooth_sar@1.0 \
vendor.qti.hardware.bluetooth_sar@1.1 \
vendor.qti.hardware.data.cne.internal.api@1.0 \ vendor.qti.hardware.data.cne.internal.api@1.0 \
vendor.qti.hardware.data.cne.internal.constants@1.0 \ vendor.qti.hardware.data.cne.internal.constants@1.0 \
vendor.qti.hardware.data.cne.internal.server@1.0 \ vendor.qti.hardware.data.cne.internal.server@1.0 \