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: "btcore_fuzz_defaults", 28 shared_libs: [ 29 "libcrypto", 30 "libstatslog_bt", 31 ], 32 static_libs: [ 33 "libbase", 34 "libbluetooth-protos", 35 "libbluetooth-types", 36 "libbluetooth_crypto_toolbox", 37 "libbluetooth_log", 38 "libbt-common", 39 "libbtcore", 40 "libchrome", 41 "libcom.android.sysprop.bluetooth.wrapped", 42 "libevent", 43 "liblog", 44 "libmodpb64", 45 "libosi", 46 "libprotobuf-cpp-lite", 47 ], 48 include_dirs: [ 49 "packages/modules/Bluetooth/system", 50 ], 51 header_libs: [ 52 "libbluetooth_headers", 53 ], 54 fuzz_config: { 55 cc: ["[email protected]"], 56 componentid: 27441, 57 hotlists: [ 58 "4593311", 59 ], 60 description: "The fuzzer targets the APIs of libbtcore", 61 vector: "local_no_privileges_required", 62 service_privilege: "privileged", 63 users: "multi_user", 64 fuzzed_code_usage: "shipped", 65 }, 66} 67 68cc_fuzz { 69 name: "btcore_device_class_fuzzer", 70 defaults: [ 71 "btcore_fuzz_defaults", 72 ], 73 srcs: [ 74 "btcore_device_class_fuzzer.cpp", 75 ], 76} 77 78cc_fuzz { 79 name: "btcore_property_fuzzer", 80 defaults: [ 81 "btcore_fuzz_defaults", 82 ], 83 srcs: [ 84 "btcore_property_fuzzer.cpp", 85 ], 86 87} 88 89cc_fuzz { 90 name: "btcore_module_fuzzer", 91 enabled: false, 92 defaults: [ 93 "btcore_fuzz_defaults", 94 ], 95 srcs: [ 96 "btcore_module_fuzzer.cpp", 97 ], 98} 99