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 default_team: "trendy_team_media_framework_audio", 19 // See: http://go/android-license-faq 20 // A large-scale-change added 'default_applicable_licenses' to import 21 // all of the 'license_kinds' from "frameworks_av_license" 22 // to get the below license kinds: 23 // SPDX-license-identifier-Apache-2.0 24 default_applicable_licenses: ["frameworks_av_license"], 25} 26 27cc_fuzz { 28 name: "audioflinger_fuzzer", 29 defaults: [ 30 "latest_android_media_audio_common_types_cpp_shared", 31 ], 32 srcs: [ 33 "audioflinger_fuzzer.cpp", 34 ], 35 static_libs: [ 36 "[email protected]", 37 "effect-aidl-cpp", 38 "libaudioclient", 39 "libbase", 40 "libcutils", 41 "libjsoncpp", 42 "liblog", 43 "libmedia_helper", 44 "libmediametrics", 45 "libmediametricsservice", 46 "libprocessgroup", 47 "libprocessgroup_util", 48 "shared-file-region-aidl-cpp", 49 ], 50 shared_libs: [ 51 "android.hardware.audio.common-util", 52 "audioclient-types-aidl-cpp", 53 "audioflinger-aidl-cpp", 54 "audiopolicy-aidl-cpp", 55 "audiopolicy-types-aidl-cpp", 56 "av-types-aidl-cpp", 57 "capture_state_listener-aidl-cpp", 58 "framework-permission-aidl-cpp", 59 "libaudio_aidl_conversion_common_cpp", 60 "libaudioclient_aidl_conversion", 61 "libaudioflinger", 62 "libaudiofoundation", 63 "libaudiomanager", 64 "libaudiopolicy", 65 "libaudioutils", 66 "libbinder", 67 "libdl", 68 "libmediautils", 69 "libnblog", 70 "libutils", 71 "libxml2", 72 "mediametricsservice-aidl-cpp", 73 ], 74 header_libs: [ 75 "libaudiofoundation_headers", 76 "libmedia_headers", 77 ], 78 fuzz_config: { 79 cc: [ 80 "[email protected]", 81 ], 82 componentid: 155276, 83 hotlists: [ 84 "4593311", 85 ], 86 description: "The fuzzer targets the APIs of libaudioflinger", 87 vector: "local_no_privileges_required", 88 service_privilege: "privileged", 89 users: "multi_user", 90 fuzzed_code_usage: "shipped", 91 }, 92} 93