1/* 2 * Copyright (C) 2021 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at: 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17package { 18 // See: http://go/android-license-faq 19 // A large-scale-change added 'default_applicable_licenses' to import 20 // all of the 'license_kinds' from "system_bt_license" 21 // to get the below license kinds: 22 // SPDX-license-identifier-Apache-2.0 23 default_applicable_licenses: ["system_bt_license"], 24} 25 26cc_defaults { 27 name: "libbt_audio_hal_interface_fuzz_defaults", 28 header_libs: [ 29 "avrcp_headers", 30 "libbluetooth_headers", 31 ], 32 shared_libs: [ 33 "libz", 34 "libfmq", 35 "libaaudio", 36 "libcrypto", 37 "libstatslog", 38 "libbinder_ndk", 39 "libstatssocket", 40 "android.hardware.bluetooth.audio-V2-ndk", 41 "android.hardware.bluetooth@1.0", 42 "android.hardware.bluetooth@1.1", 43 "android.hardware.bluetooth.a2dp@1.0", 44 "android.hardware.bluetooth.audio@2.0", 45 "android.hardware.bluetooth.audio@2.1", 46 "android.system.suspend.control-V1-ndk", 47 "android.system.suspend-V1-ndk", 48 ], 49 static_libs: [ 50 "libbte", 51 "liblog", 52 "libosi", 53 "libbtif", 54 "libbase", 55 "libutils", 56 "libevent", 57 "libcutils", 58 "libchrome", 59 "libbtcore", 60 "libbt-bta", 61 "libbt-hci", 62 "libbt_shim_bridge", 63 "libbt_shim_ffi", 64 "libjsoncpp", 65 "libbt-utils", 66 "libbtdevice", 67 "libcgrouprc", 68 "libflatbuffers-cpp", 69 "libhidlbase", 70 "libbt-stack", 71 "libg722codec", 72 "libudrv-uipc", 73 "libbt-common", 74 "liblc3", 75 "libopus", 76 "libstatslog_bt", 77 "libvndksupport", 78 "libprocessgroup", 79 "libbluetooth_gd", 80 "libFraunhoferAAC", 81 "libbt-sbc-decoder", 82 "libbt-sbc-encoder", 83 "libcgrouprc_format", 84 "libbluetooth-types", 85 "libbluetooth-protos", 86 "libbluetooth-dumpsys", 87 "libprotobuf-cpp-lite", 88 "libbt-audio-hal-interface", 89 "libbluetooth_rust_interop", 90 "libaudio-a2dp-hw-utils", 91 ], 92 include_dirs: [ 93 "packages/modules/Bluetooth/system", 94 "packages/modules/Bluetooth/system/gd", 95 "packages/modules/Bluetooth/system/btif", 96 "packages/modules/Bluetooth/system/gd/rust/shim", 97 "packages/modules/Bluetooth/system/stack/include", 98 "packages/modules/Bluetooth/system/bta/include", 99 ], 100 cflags: [ 101 "-DHAS_NO_BDROID_BUILDCFG", 102 ], 103 fuzz_config: { 104 cc: [ 105 "android-media-fuzzing-reports@google.com", 106 ], 107 componentid: 155276, 108 }, 109} 110 111cc_fuzz { 112 name: "libbt_audio_hal_a2dp_encoding_fuzzer", 113 defaults: [ 114 "libbt_audio_hal_interface_fuzz_defaults", 115 ], 116 srcs: [ 117 "libbt_audio_hal_a2dp_encoding_fuzzer.cpp", 118 ], 119} 120 121cc_fuzz { 122 name: "libbt_audio_hal_le_audio_software_fuzzer", 123 defaults: [ 124 "libbt_audio_hal_interface_fuzz_defaults", 125 ], 126 srcs: [ 127 "libbt_audio_hal_le_audio_software_fuzzer.cpp", 128 ], 129} 130 131cc_fuzz { 132 name: "libbt_audio_hal_hearing_aid_software_encoding_fuzzer", 133 defaults: [ 134 "libbt_audio_hal_interface_fuzz_defaults", 135 ], 136 srcs: [ 137 "libbt_audio_hal_hearing_aid_software_encoding_fuzzer.cpp", 138 ], 139} 140 141cc_fuzz { 142 name: "libbt_audio_hal_client_interface_fuzzer", 143 defaults: [ 144 "libbt_audio_hal_interface_fuzz_defaults", 145 ], 146 srcs: [ 147 "libbt_audio_hal_client_interface_fuzzer.cpp", 148 ], 149} 150