blob: 67258d997100882e962b998e0eafe6f7a51ba617 [file] [log] [blame]
Ayushi Khopkar818d9b62023-05-24 12:00:29 +00001/*
2 * Copyright (C) 2022 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
17cc_defaults {
18 name: "libaudioclient_aidl_fuzzer_defaults",
19 static_libs: [
20 "android.hardware.audio.common@7.0-enums",
21 "effect-aidl-cpp",
22 "liblog",
Ayushi Khopkar818d9b62023-05-24 12:00:29 +000023 "libcgrouprc",
24 "libcgrouprc_format",
Ayushi Khopkar818d9b62023-05-24 12:00:29 +000025 "libjsoncpp",
26 "libmediametricsservice",
27 "libmedia_helper",
28 "libprocessgroup",
29 "shared-file-region-aidl-cpp",
30 "libfakeservicemanager"
31 ],
32 shared_libs: [
33 "libaudioclient",
34 "libaudioflinger",
35 "libmediautils",
36 "libnblog",
37 "libaudioprocessing",
38 "libnbaio",
39 "libpowermanager",
40 "libvibrator",
41 "packagemanager_aidl-cpp",
42 "android.hardware.audio.common-util",
43 "audioclient-types-aidl-cpp",
44 "audioflinger-aidl-cpp",
45 "audiopolicy-aidl-cpp",
46 "audiopolicy-types-aidl-cpp",
47 "av-types-aidl-cpp",
48 "capture_state_listener-aidl-cpp",
49 "libaudioclient_aidl_conversion",
50 "libaudiofoundation",
51 "libaudiomanager",
52 "libaudiopolicy",
53 "libaudioutils",
54 "libdl",
Ayushi Khopkar818d9b62023-05-24 12:00:29 +000055 "libxml2",
56 "mediametricsservice-aidl-cpp",
57 "framework-permission-aidl-cpp",
58 "libvndksupport",
59 "libmediametrics",
Ayushi Khopkar818d9b62023-05-24 12:00:29 +000060 "libfakeservicemanager",
61 "libactivitymanager_aidl",
62 "libheadtracking",
63 "libaudiopolicyservice",
64 "libsensorprivacy",
65 "libaudiopolicymanagerdefault",
66 "libaudiohal",
67 "libhidlbase",
68 "libpermission",
69 "libaudiohal@7.0",
70 ],
71 header_libs: [
72 "libaudiopolicymanager_interface_headers",
73 "libbinder_headers",
74 "libaudiofoundation_headers",
75 "libmedia_headers",
76 "libaudiohal_headers",
77 "libaudioflinger_headers",
78 "mediautils_headers",
79 ],
80 fuzz_config: {
81 cc: [
82 "android-media-fuzzing-reports@google.com",
83 ],
84 componentid: 155276,
85 hotlists: ["4593311"],
86 description: "The fuzzer targets the APIs of libaudioflinger",
87 vector: "local_no_privileges_required",
88 service_privilege: "privileged",
89 users: "multi_user",
90 fuzzed_code_usage: "shipped",
91 },
92}
93
94cc_fuzz {
95 name: "audioflinger_aidl_fuzzer",
96 srcs: ["audioflinger_aidl_fuzzer.cpp"],
Pawan Waghed062942023-07-12 20:47:13 +000097 defaults: [
98 "libaudioclient_aidl_fuzzer_defaults",
99 "service_fuzzer_defaults"
100 ],
Ayushi Khopkar818d9b62023-05-24 12:00:29 +0000101}