blob: 6093933a79f52fc6e99f4f7376801d3f92e9ad36 [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",
Ayushi Khopkar7ac03092023-05-24 12:00:29 +000022 "libcgrouprc",
23 "libcgrouprc_format",
Akshata Kadamc9ad3c82023-08-07 09:56:02 +000024 "libfakeservicemanager",
Ayushi Khopkar7ac03092023-05-24 12:00:29 +000025 "libjsoncpp",
Akshata Kadamc9ad3c82023-08-07 09:56:02 +000026 "liblog",
Ayushi Khopkar7ac03092023-05-24 12:00:29 +000027 "libmediametricsservice",
28 "libmedia_helper",
29 "libprocessgroup",
30 "shared-file-region-aidl-cpp",
Ayushi Khopkar7ac03092023-05-24 12:00:29 +000031 ],
32 shared_libs: [
Ayushi Khopkar7ac03092023-05-24 12:00:29 +000033 "android.hardware.audio.common-util",
34 "audioclient-types-aidl-cpp",
Ayushi Khopkar7ac03092023-05-24 12:00:29 +000035 "audiopolicy-aidl-cpp",
36 "audiopolicy-types-aidl-cpp",
37 "av-types-aidl-cpp",
38 "capture_state_listener-aidl-cpp",
Akshata Kadamc9ad3c82023-08-07 09:56:02 +000039 "framework-permission-aidl-cpp",
40 "libaudioclient",
41 "audioflinger-aidl-cpp",
42 "libaudioflinger",
Ayushi Khopkar7ac03092023-05-24 12:00:29 +000043 "libaudioclient_aidl_conversion",
44 "libaudiofoundation",
45 "libaudiomanager",
46 "libaudiopolicy",
47 "libaudioutils",
Ayushi Khopkar7ac03092023-05-24 12:00:29 +000048 "libaudiopolicyservice",
Ayushi Khopkar7ac03092023-05-24 12:00:29 +000049 "libaudiopolicymanagerdefault",
50 "libaudiohal",
Akshata Kadamc9ad3c82023-08-07 09:56:02 +000051 "libaudioprocessing",
52 "libactivitymanager_aidl",
53 "libdl",
54 "libheadtracking",
55 "libmediautils",
56 "libmediametrics",
57 "libnblog",
58 "libnbaio",
59 "libpowermanager",
60 "libvibrator",
61 "libvndksupport",
62 "libxml2",
63 "mediametricsservice-aidl-cpp",
64 "packagemanager_aidl-cpp",
Ayushi Khopkar7ac03092023-05-24 12:00:29 +000065 ],
66 header_libs: [
67 "libaudiopolicymanager_interface_headers",
Ayushi Khopkar7ac03092023-05-24 12:00:29 +000068 "libaudiofoundation_headers",
Ayushi Khopkar7ac03092023-05-24 12:00:29 +000069 "libaudiohal_headers",
70 "libaudioflinger_headers",
Akshata Kadamc9ad3c82023-08-07 09:56:02 +000071 "libbinder_headers",
72 "libmedia_headers",
Ayushi Khopkar7ac03092023-05-24 12:00:29 +000073 ],
74 fuzz_config: {
75 cc: [
76 "android-media-fuzzing-reports@google.com",
77 ],
78 componentid: 155276,
79 hotlists: ["4593311"],
80 description: "The fuzzer targets the APIs of libaudioflinger",
81 vector: "local_no_privileges_required",
82 service_privilege: "privileged",
83 users: "multi_user",
84 fuzzed_code_usage: "shipped",
85 },
86}
87
88cc_fuzz {
89 name: "audioflinger_aidl_fuzzer",
90 srcs: ["audioflinger_aidl_fuzzer.cpp"],
Pawan Wagha0eeb392023-07-12 20:47:13 +000091 defaults: [
92 "libaudioclient_aidl_fuzzer_defaults",
93 "service_fuzzer_defaults"
94 ],
Ayushi Khopkar7ac03092023-05-24 12:00:29 +000095}