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: "libaaudio_fuzzer", 29 defaults: [ 30 "latest_android_media_audio_common_types_cpp_static", 31 ], 32 srcs: [ 33 "libaaudio_fuzzer.cpp", 34 ], 35 header_libs: [ 36 "libaaudio_headers", 37 ], 38 shared_libs: [ 39 "com.android.media.aaudio-aconfig-cc", 40 "libaconfig_storage_read_api_cc", 41 "libaudio_aidl_conversion_common_cpp", 42 "libaudioclient_aidl_conversion", 43 "libaudiomanager", 44 "libaudiopolicy", 45 "libbinder", 46 "libbinder_ndk", 47 "libmediautils", 48 "libutils", 49 "server_configurable_flags", 50 ], 51 static_libs: [ 52 "aaudio-aidl-cpp", 53 "audio-permission-aidl-cpp", 54 "audioclient-types-aidl-cpp", 55 "audioflinger-aidl-cpp", 56 "audiopolicy-aidl-cpp", 57 "audiopolicy-types-aidl-cpp", 58 "av-types-aidl-cpp", 59 "framework-permission-aidl-cpp", 60 "libaaudio", 61 "libaaudio_internal", 62 "libaudioclient", 63 "libaudiofoundation", 64 "libaudioutils", 65 "libbase_ndk", 66 "libcutils", 67 "libjsoncpp", 68 "liblog", 69 "libmedia_helper", 70 "libmediametrics", 71 "libprocessgroup", 72 "libprocessgroup_util", 73 "mediametricsservice-aidl-cpp", 74 "shared-file-region-aidl-cpp", 75 ], 76 fuzz_config: { 77 cc: [ 78 "[email protected]", 79 ], 80 componentid: 155276, 81 hotlists: [ 82 "4593311", 83 ], 84 description: "The fuzzer targets the APIs of libaaudio", 85 vector: "local_no_privileges_required", 86 service_privilege: "privileged", 87 users: "multi_user", 88 fuzzed_code_usage: "shipped", 89 }, 90} 91