1/****************************************************************************** 2 * 3 * Copyright (C) 2023 The Android Open Source Project 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at: 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 * 17 ******************************************************************************/ 18 19package { 20 default_team: "trendy_team_android_media_audio_framework", 21} 22 23cc_defaults { 24 name: "audiopolicy_aidl_fuzzer_defaults", 25 shared_libs: [ 26 "libaudioflinger", 27 "libaudiopolicyservice", 28 "libmediaplayerservice", 29 ], 30 static_libs: [ 31 "libaudiomockhal", 32 "libfakeservicemanager", 33 ], 34 header_libs: [ 35 "libmedia_headers", 36 ], 37 fuzz_config: { 38 cc: [ 39 "[email protected]", 40 ], 41 componentid: 155276, 42 hotlists: ["4593311"], 43 description: "The fuzzer targets the APIs of libaudiopolicy", 44 vector: "local_no_privileges_required", 45 service_privilege: "privileged", 46 users: "multi_user", 47 fuzzed_code_usage: "shipped", 48 }, 49} 50 51cc_fuzz { 52 name: "audiopolicy_aidl_fuzzer", 53 srcs: ["audiopolicy_aidl_fuzzer.cpp"], 54 defaults: [ 55 "audiopolicy_aidl_fuzzer_defaults", 56 "latest_android_hardware_audio_core_ndk_shared", 57 "latest_android_hardware_audio_core_sounddose_ndk_shared", 58 "latest_android_hardware_audio_effect_ndk_shared", 59 "libaudioflinger_dependencies", 60 "libaudiopolicyservice_dependencies", 61 "service_fuzzer_defaults", 62 ], 63} 64