blob: 1227db9ca697a1dbc50ca8dfb5bda178be7614dd [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
19cc_defaults {
20 name: "audiopolicy_aidl_fuzzer_defaults",
21 shared_libs: [
22 "audiopolicy-aidl-cpp",
23 "audiopolicy-types-aidl-cpp",
24 "framework-permission-aidl-cpp",
Andy Hunge59246e2024-03-15 11:48:57 -070025 "libactivitymanager_aidl",
26 "libaudioclient",
27 "libaudioflinger",
28 "libaudiohal",
Akshata Kadam80b150b2023-07-04 10:58:29 +053029 "libaudiopolicy",
30 "libaudiopolicymanagerdefault",
Akshata Kadam80b150b2023-07-04 10:58:29 +053031 "libaudiopolicyservice",
Akshata Kadam80b150b2023-07-04 10:58:29 +053032 "libaudioprocessing",
33 "libhidlbase",
34 "liblog",
35 "libmediautils",
Akshata Kadam80b150b2023-07-04 10:58:29 +053036 "libnbaio",
Andy Hunge59246e2024-03-15 11:48:57 -070037 "libnblog",
Akshata Kadam80b150b2023-07-04 10:58:29 +053038 "libpowermanager",
39 "libvibrator",
40 "packagemanager_aidl-cpp",
41 ],
42 static_libs: [
Shraddha Basantwanic4996b32024-01-30 06:31:38 +000043 "libaudiomockhal",
Akshata Kadam80b150b2023-07-04 10:58:29 +053044 "libfakeservicemanager",
45 "libmediaplayerservice",
46 ],
47 header_libs: [
Akshata Kadam80b150b2023-07-04 10:58:29 +053048 "libaudioflinger_headers",
Andy Hunge59246e2024-03-15 11:48:57 -070049 "libaudiohal_headers",
Akshata Kadam80b150b2023-07-04 10:58:29 +053050 "libaudiopolicymanager_interface_headers",
51 "libbinder_headers",
52 "libmedia_headers",
53 ],
54 fuzz_config: {
55 cc: [
56 "android-media-fuzzing-reports@google.com",
57 ],
58 componentid: 155276,
59 hotlists: ["4593311"],
60 description: "The fuzzer targets the APIs of libaudiopolicy",
61 vector: "local_no_privileges_required",
62 service_privilege: "privileged",
63 users: "multi_user",
64 fuzzed_code_usage: "shipped",
65 },
66}
67
68cc_fuzz {
69 name: "audiopolicy_aidl_fuzzer",
70 srcs: ["audiopolicy_aidl_fuzzer.cpp"],
71 defaults: [
72 "audiopolicy_aidl_fuzzer_defaults",
Shraddha Basantwanic4996b32024-01-30 06:31:38 +000073 "latest_android_hardware_audio_core_ndk_shared",
74 "latest_android_hardware_audio_core_sounddose_ndk_shared",
75 "latest_android_hardware_audio_effect_ndk_shared",
Akshata Kadam80b150b2023-07-04 10:58:29 +053076 "service_fuzzer_defaults",
77 ],
78}