blob: 2c85955282425bb580dc6343c0f7883e21e35f40 [file] [log] [blame]
Akshata Kadam80b150b2023-07-04 10:58:29 +05301/******************************************************************************
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
Aditya Choudharyb2eeb462024-01-31 11:07:15 +000019package {
20 default_team: "trendy_team_android_media_audio_framework",
21}
22
Akshata Kadam80b150b2023-07-04 10:58:29 +053023cc_defaults {
24 name: "audiopolicy_aidl_fuzzer_defaults",
25 shared_libs: [
26 "audiopolicy-aidl-cpp",
27 "audiopolicy-types-aidl-cpp",
28 "framework-permission-aidl-cpp",
Andy Hunge59246e2024-03-15 11:48:57 -070029 "libactivitymanager_aidl",
30 "libaudioclient",
31 "libaudioflinger",
32 "libaudiohal",
Akshata Kadam80b150b2023-07-04 10:58:29 +053033 "libaudiopolicy",
34 "libaudiopolicymanagerdefault",
Akshata Kadam80b150b2023-07-04 10:58:29 +053035 "libaudiopolicyservice",
Akshata Kadam80b150b2023-07-04 10:58:29 +053036 "libaudioprocessing",
37 "libhidlbase",
38 "liblog",
39 "libmediautils",
Akshata Kadam80b150b2023-07-04 10:58:29 +053040 "libnbaio",
Andy Hunge59246e2024-03-15 11:48:57 -070041 "libnblog",
Akshata Kadam80b150b2023-07-04 10:58:29 +053042 "libpowermanager",
43 "libvibrator",
44 "packagemanager_aidl-cpp",
45 ],
46 static_libs: [
Shraddha Basantwanic4996b32024-01-30 06:31:38 +000047 "libaudiomockhal",
Akshata Kadam80b150b2023-07-04 10:58:29 +053048 "libfakeservicemanager",
49 "libmediaplayerservice",
50 ],
51 header_libs: [
Akshata Kadam80b150b2023-07-04 10:58:29 +053052 "libaudioflinger_headers",
Andy Hunge59246e2024-03-15 11:48:57 -070053 "libaudiohal_headers",
Akshata Kadam80b150b2023-07-04 10:58:29 +053054 "libaudiopolicymanager_interface_headers",
55 "libbinder_headers",
56 "libmedia_headers",
57 ],
58 fuzz_config: {
59 cc: [
60 "android-media-fuzzing-reports@google.com",
61 ],
62 componentid: 155276,
63 hotlists: ["4593311"],
64 description: "The fuzzer targets the APIs of libaudiopolicy",
65 vector: "local_no_privileges_required",
66 service_privilege: "privileged",
67 users: "multi_user",
68 fuzzed_code_usage: "shipped",
69 },
70}
71
72cc_fuzz {
73 name: "audiopolicy_aidl_fuzzer",
74 srcs: ["audiopolicy_aidl_fuzzer.cpp"],
75 defaults: [
76 "audiopolicy_aidl_fuzzer_defaults",
Shraddha Basantwanic4996b32024-01-30 06:31:38 +000077 "latest_android_hardware_audio_core_ndk_shared",
78 "latest_android_hardware_audio_core_sounddose_ndk_shared",
79 "latest_android_hardware_audio_effect_ndk_shared",
Akshata Kadam80b150b2023-07-04 10:58:29 +053080 "service_fuzzer_defaults",
81 ],
82}