blob: 1ca30420b512a1314c6867943b92127516c92f9f [file] [log] [blame]
Ayushi Khopkar7ac03092023-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",
23 "libbinder_random_parcel",
24 "libbase",
25 "libcgrouprc",
26 "libcgrouprc_format",
27 "libcutils",
28 "libjsoncpp",
29 "libmediametricsservice",
30 "libmedia_helper",
31 "libprocessgroup",
32 "shared-file-region-aidl-cpp",
33 "libfakeservicemanager"
34 ],
35 shared_libs: [
36 "libaudioclient",
37 "libaudioflinger",
38 "libmediautils",
39 "libnblog",
40 "libaudioprocessing",
41 "libnbaio",
42 "libpowermanager",
43 "libvibrator",
44 "packagemanager_aidl-cpp",
45 "android.hardware.audio.common-util",
46 "audioclient-types-aidl-cpp",
47 "audioflinger-aidl-cpp",
48 "audiopolicy-aidl-cpp",
49 "audiopolicy-types-aidl-cpp",
50 "av-types-aidl-cpp",
51 "capture_state_listener-aidl-cpp",
52 "libaudioclient_aidl_conversion",
53 "libaudiofoundation",
54 "libaudiomanager",
55 "libaudiopolicy",
56 "libaudioutils",
57 "libdl",
58 "libutils",
59 "libxml2",
60 "mediametricsservice-aidl-cpp",
61 "framework-permission-aidl-cpp",
62 "libvndksupport",
63 "libmediametrics",
64 "libbinder_ndk",
65 "libbinder",
66 "libfakeservicemanager",
67 "libactivitymanager_aidl",
68 "libheadtracking",
69 "libaudiopolicyservice",
70 "libsensorprivacy",
71 "libaudiopolicymanagerdefault",
72 "libaudiohal",
73 "libhidlbase",
74 "libpermission",
75 "libaudiohal@7.0",
76 ],
77 header_libs: [
78 "libaudiopolicymanager_interface_headers",
79 "libbinder_headers",
80 "libaudiofoundation_headers",
81 "libmedia_headers",
82 "libaudiohal_headers",
83 "libaudioflinger_headers",
84 "mediautils_headers",
85 ],
86 fuzz_config: {
87 cc: [
88 "android-media-fuzzing-reports@google.com",
89 ],
90 componentid: 155276,
91 hotlists: ["4593311"],
92 description: "The fuzzer targets the APIs of libaudioflinger",
93 vector: "local_no_privileges_required",
94 service_privilege: "privileged",
95 users: "multi_user",
96 fuzzed_code_usage: "shipped",
97 },
98}
99
100cc_fuzz {
101 name: "audioflinger_aidl_fuzzer",
102 srcs: ["audioflinger_aidl_fuzzer.cpp"],
103 defaults: ["libaudioclient_aidl_fuzzer_defaults"],
104}