diff --git a/android/app/Android.bp b/android/app/Android.bp index 80b1450d510c809456fd06826b8db5c9199240ea..52f1a26aa8419571d8a105223ce082e28417f8f1 100644 --- a/android/app/Android.bp +++ b/android/app/Android.bp @@ -55,7 +55,12 @@ java_library { cc_library_shared { name: "libbluetooth_jni", - defaults: ["fluoride_defaults"], + defaults: [ + "fluoride_defaults", + "latest_android_hardware_audio_common_ndk_static", + "latest_android_hardware_bluetooth_audio_ndk_static", + "latest_android_media_audio_common_types_ndk_static", + ], srcs: ["jni/**/*.cpp"], version_script: "libbluetooth_jni.map", header_libs: [ @@ -77,16 +82,13 @@ cc_library_shared { // is required to maintain FIPS compliance. stl: "libc++_static", static_libs: [ - "android.hardware.audio.common-V2-ndk", "android.hardware.audio.common@5.0", - "android.hardware.bluetooth.audio-V3-ndk", "android.hardware.bluetooth.audio@2.0", "android.hardware.bluetooth.audio@2.1", "android.hardware.bluetooth@1.0", "android.hardware.bluetooth@1.1", "android.hardware.common-V2-ndk", "android.hardware.common.fmq-V1-ndk", - "android.media.audio.common.types-V2-ndk", "android.system.suspend-V1-ndk", "android.system.suspend.control-V1-ndk", "avrcp-target-service", diff --git a/system/audio_bluetooth_hw/Android.bp b/system/audio_bluetooth_hw/Android.bp index 67d286ec00be6485d920848a4c5ea02e6763e12a..01763dc2bdefa06b70255129d826d973e9c57e0e 100644 --- a/system/audio_bluetooth_hw/Android.bp +++ b/system/audio_bluetooth_hw/Android.bp @@ -20,7 +20,11 @@ cc_defaults { cc_library_shared { name: "audio.bluetooth.default", - defaults: ["audio_bluetooth_hw_defaults"], + defaults: [ + "audio_bluetooth_hw_defaults", + "latest_android_hardware_audio_common_ndk_shared", + "latest_android_hardware_bluetooth_audio_ndk_shared", + ], relative_install_path: "hw", proprietary: true, srcs: [ @@ -32,8 +36,6 @@ cc_library_shared { ], header_libs: ["libhardware_headers"], shared_libs: [ - "android.hardware.audio.common-V2-ndk", - "android.hardware.bluetooth.audio-V3-ndk", "libaudioutils", "libbase", "libbinder_ndk", diff --git a/system/audio_hal_interface/Android.bp b/system/audio_hal_interface/Android.bp index 47e7b4966ba177f3297ed03907fe784732ee1509..b44d635e47ec1a48e100ee30753be1f36bbd4960 100644 --- a/system/audio_hal_interface/Android.bp +++ b/system/audio_hal_interface/Android.bp @@ -33,7 +33,7 @@ cc_library_static { target: { android: { shared_libs: [ - "android.hardware.bluetooth.audio-V3-ndk", + "android.hardware.bluetooth.audio-V4-ndk", "libbinder_ndk", "libfmq", ], @@ -79,7 +79,10 @@ cc_library_static { // Bluetooth Audio client interface library unit tests for target and host cc_test { name: "bluetooth-test-audio-hal-interface", - defaults: ["fluoride_defaults"], + defaults: [ + "fluoride_defaults", + "latest_android_hardware_bluetooth_audio_ndk_shared", + ], include_dirs: [ "packages/modules/Bluetooth/system", "packages/modules/Bluetooth/system/gd", @@ -89,7 +92,6 @@ cc_test { "hidl/client_interface_hidl_unittest.cc", ], shared_libs: [ - "android.hardware.bluetooth.audio-V3-ndk", "android.hardware.bluetooth.audio@2.0", "android.hardware.bluetooth.audio@2.1", "libbinder_ndk", diff --git a/system/audio_hal_interface/fuzzer/Android.bp b/system/audio_hal_interface/fuzzer/Android.bp index 3b7449e40833c102a2d76b015d079da45c3059ff..a0b7b1d7276033bc31f4f2dad518c74af9b32ee8 100644 --- a/system/audio_hal_interface/fuzzer/Android.bp +++ b/system/audio_hal_interface/fuzzer/Android.bp @@ -29,9 +29,11 @@ cc_defaults { "avrcp_headers", "libbluetooth_headers", ], + defaults: [ + "latest_android_hardware_bluetooth_audio_ndk_shared", + ], shared_libs: [ "android.hardware.bluetooth.a2dp@1.0", - "android.hardware.bluetooth.audio-V3-ndk", "android.hardware.bluetooth.audio@2.0", "android.hardware.bluetooth.audio@2.1", "android.hardware.bluetooth@1.0", diff --git a/system/btif/Android.bp b/system/btif/Android.bp index 4aac9aa7d4e99b1864403634a837b6c10ab09ab3..56a8513af13f3f0b42d6697828d5a9df0cad5c8e 100644 --- a/system/btif/Android.bp +++ b/system/btif/Android.bp @@ -259,6 +259,9 @@ cc_test { defaults: [ "bluetooth_gtest_x86_asan_workaround", "fluoride_defaults", + "latest_android_hardware_audio_common_ndk_static", + "latest_android_hardware_bluetooth_audio_ndk_static", + "latest_android_media_audio_common_types_ndk_static", "mts_defaults", ], test_suites: ["general-tests"], @@ -282,14 +285,11 @@ cc_test { "server_configurable_flags", ], static_libs: [ - "android.hardware.audio.common-V2-ndk", "android.hardware.bluetooth.a2dp@1.0", - "android.hardware.bluetooth.audio-V3-ndk", "android.hardware.bluetooth@1.0", "android.hardware.bluetooth@1.1", "android.hardware.common-V2-ndk", "android.hardware.common.fmq-V1-ndk", - "android.media.audio.common.types-V2-ndk", "android.system.suspend.control-V1-ndk", "libFraunhoferAAC", "libbluetooth-types", @@ -541,6 +541,9 @@ cc_test { defaults: [ "bluetooth_gtest_x86_asan_workaround", "fluoride_defaults", + "latest_android_hardware_audio_common_ndk_static", + "latest_android_hardware_bluetooth_audio_ndk_static", + "latest_android_media_audio_common_types_ndk_static", "mts_defaults", ], test_suites: ["general-tests"], @@ -654,11 +657,8 @@ cc_test { target: { android: { static_libs: [ - "android.hardware.audio.common-V2-ndk", - "android.hardware.bluetooth.audio-V3-ndk", "android.hardware.common-V2-ndk", "android.hardware.common.fmq-V1-ndk", - "android.media.audio.common.types-V2-ndk", ], shared_libs: [ "libbinder_ndk", @@ -680,6 +680,9 @@ cc_test { defaults: [ "bluetooth_gtest_x86_asan_workaround", "fluoride_defaults", + "latest_android_hardware_audio_common_ndk_static", + "latest_android_hardware_bluetooth_audio_ndk_static", + "latest_android_media_audio_common_types_ndk_static", "mts_defaults", ], test_suites: ["general-tests"], @@ -792,11 +795,8 @@ cc_test { target: { android: { static_libs: [ - "android.hardware.audio.common-V2-ndk", - "android.hardware.bluetooth.audio-V3-ndk", "android.hardware.common-V2-ndk", "android.hardware.common.fmq-V1-ndk", - "android.media.audio.common.types-V2-ndk", ], shared_libs: [ "libbinder_ndk", diff --git a/system/stack/Android.bp b/system/stack/Android.bp index 16edd7398f596fd8fea9766f1b13e0e189c3e079..e9f5c0d5c31059d0a2f03ba65b3f1f54f389e0e6 100644 --- a/system/stack/Android.bp +++ b/system/stack/Android.bp @@ -672,6 +672,9 @@ cc_test { defaults: [ "bluetooth_gtest_x86_asan_workaround", "fluoride_defaults", + "latest_android_hardware_audio_common_ndk_static", + "latest_android_hardware_bluetooth_audio_ndk_shared", + "latest_android_media_audio_common_types_ndk_static", "mts_defaults", ], test_suites: ["general-tests"], @@ -706,14 +709,11 @@ cc_test { "server_configurable_flags", ], static_libs: [ - "android.hardware.audio.common-V2-ndk", "android.hardware.bluetooth.a2dp@1.0", - "android.hardware.bluetooth.audio-V3-ndk", "android.hardware.bluetooth@1.0", "android.hardware.bluetooth@1.1", "android.hardware.common-V2-ndk", "android.hardware.common.fmq-V1-ndk", - "android.media.audio.common.types-V2-ndk", "android.system.suspend.control-V1-ndk", "libFraunhoferAAC", "libbluetooth-dumpsys", diff --git a/system/stack/test/fuzzers/Android.bp b/system/stack/test/fuzzers/Android.bp index ae570c5d87e5d0daf168b81724ab6e2c9926ddb2..0ccc90faf42b1438a37ef7f57d8d18c773312302 100644 --- a/system/stack/test/fuzzers/Android.bp +++ b/system/stack/test/fuzzers/Android.bp @@ -9,7 +9,10 @@ package { cc_defaults { name: "libbt-stack_fuzz_defaults", - defaults: ["fluoride_defaults"], + defaults: [ + "fluoride_defaults", + "latest_android_hardware_bluetooth_audio_ndk_shared", + ], include_dirs: [ "packages/modules/Bluetooth/system/", "packages/modules/Bluetooth/system/gd/", @@ -50,7 +53,6 @@ cc_defaults { ], shared_libs: [ "android.hardware.bluetooth.a2dp@1.0", - "android.hardware.bluetooth.audio-V3-ndk", "android.hardware.bluetooth.audio@2.0", "android.hardware.bluetooth.audio@2.1", "android.hardware.bluetooth@1.0", diff --git a/system/test/headless/Android.bp b/system/test/headless/Android.bp index c56e047b455598c8e43ecc64d8cc9c52ba7e1bd4..3c67dd093a2d6bfd84231f91a80e20b1f8763c47 100644 --- a/system/test/headless/Android.bp +++ b/system/test/headless/Android.bp @@ -28,6 +28,7 @@ cc_binary { name: "bt_headless", defaults: [ "fluoride_defaults", + "latest_android_hardware_bluetooth_audio_ndk_shared", ], cflags: [ "-Wall", @@ -110,7 +111,6 @@ cc_binary { "libz", ], shared_libs: [ - "android.hardware.bluetooth.audio-V3-ndk", "android.hardware.bluetooth.audio@2.0", "android.hardware.bluetooth.audio@2.1", "android.hardware.bluetooth@1.0", diff --git a/system/test/suite/Android.bp b/system/test/suite/Android.bp index 695cee61e99de2ec9286596304736265de44e7f5..95bea9ff7560b68bd2a85f214981fb421ce3d8d1 100644 --- a/system/test/suite/Android.bp +++ b/system/test/suite/Android.bp @@ -107,6 +107,9 @@ cc_test { test_suites: ["general-tests"], defaults: [ "bluetooth_gtest_x86_asan_workaround", + "latest_android_hardware_audio_common_ndk_static", + "latest_android_hardware_bluetooth_audio_ndk_static", + "latest_android_media_audio_common_types_ndk_static", "mts_defaults", "net_test_defaults", ], @@ -116,13 +119,10 @@ cc_test { "gatt/gatt_unittest.cc", ], static_libs: [ - "android.hardware.audio.common-V2-ndk", - "android.hardware.bluetooth.audio-V3-ndk", "android.hardware.bluetooth@1.0", "android.hardware.bluetooth@1.1", "android.hardware.common-V2-ndk", "android.hardware.common.fmq-V1-ndk", - "android.media.audio.common.types-V2-ndk", "libbluetooth_gd", "libbt-btu-main-thread", "libbt-platform-protos-lite",