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 "audiopolicy-aidl-cpp", 27 "audiopolicy-types-aidl-cpp", 28 "framework-permission-aidl-cpp", 29 "libactivitymanager_aidl", 30 "libaudioclient", 31 "libaudioflinger", 32 "libaudiohal", 33 "libaudiopolicy", 34 "libaudiopolicymanagerdefault", 35 "libaudiopolicyservice", 36 "libaudioprocessing", 37 "libhidlbase", 38 "liblog", 39 "libmediautils", 40 "libnbaio", 41 "libnblog", 42 "libpowermanager", 43 "libvibrator", 44 "packagemanager_aidl-cpp", 45 ], 46 static_libs: [ 47 "audiopermissioncontroller", 48 "libaudiomockhal", 49 "libfakeservicemanager", 50 "libmediaplayerservice", 51 ], 52 header_libs: [ 53 "libaudioflinger_headers", 54 "libaudiohal_headers", 55 "libaudiopolicymanager_interface_headers", 56 "libbinder_headers", 57 "libmedia_headers", 58 ], 59 fuzz_config: { 60 cc: [ 61 "android-media-fuzzing-reports@google.com", 62 ], 63 componentid: 155276, 64 hotlists: ["4593311"], 65 description: "The fuzzer targets the APIs of libaudiopolicy", 66 vector: "local_no_privileges_required", 67 service_privilege: "privileged", 68 users: "multi_user", 69 fuzzed_code_usage: "shipped", 70 }, 71} 72 73cc_fuzz { 74 name: "audiopolicy_aidl_fuzzer", 75 srcs: ["audiopolicy_aidl_fuzzer.cpp"], 76 defaults: [ 77 "audiopolicy_aidl_fuzzer_defaults", 78 "latest_android_hardware_audio_core_ndk_shared", 79 "latest_android_hardware_audio_core_sounddose_ndk_shared", 80 "latest_android_hardware_audio_effect_ndk_shared", 81 "service_fuzzer_defaults", 82 ], 83} 84