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 "frameworks_av_license" 21 // to get the below license kinds: 22 // SPDX-license-identifier-Apache-2.0 23 default_applicable_licenses: ["frameworks_av_license"], 24} 25 26cc_fuzz { 27 name: "audioflinger_fuzzer", 28 defaults: [ 29 "latest_android_media_audio_common_types_cpp_shared", 30 ], 31 srcs: [ 32 "audioflinger_fuzzer.cpp", 33 ], 34 static_libs: [ 35 "android.hardware.audio.common@7.0-enums", 36 "effect-aidl-cpp", 37 "libaudioclient", 38 "libbase", 39 "libcgrouprc", 40 "libcgrouprc_format", 41 "libcutils", 42 "libjsoncpp", 43 "liblog", 44 "libmediametrics", 45 "libmediametricsservice", 46 "libmedia_helper", 47 "libprocessgroup", 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 "libaudioclient_aidl_conversion", 59 "libaudio_aidl_conversion_common_cpp", 60 "libaudioflinger", 61 "libaudiofoundation", 62 "libaudiomanager", 63 "libaudiopolicy", 64 "libaudioutils", 65 "libbinder", 66 "libdl", 67 "libmediautils", 68 "libnblog", 69 "libutils", 70 "libxml2", 71 "mediametricsservice-aidl-cpp", 72 "framework-permission-aidl-cpp", 73 ], 74 header_libs: [ 75 "libaudiofoundation_headers", 76 "libmedia_headers", 77 ], 78 fuzz_config: { 79 cc: [ 80 "android-media-fuzzing-reports@google.com", 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