blob: 38a2cded3a5f9768ab4e9b02d22c96929e7ebfde [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",
25 "libaudiopolicy",
26 "libaudiopolicymanagerdefault",
27 "libactivitymanager_aidl",
28 "libaudiohal",
29 "libaudiopolicyservice",
30 "libaudioflinger",
31 "libaudioclient",
32 "libaudioprocessing",
33 "libhidlbase",
34 "liblog",
35 "libmediautils",
36 "libnblog",
37 "libnbaio",
38 "libpowermanager",
39 "libvibrator",
40 "packagemanager_aidl-cpp",
41 ],
42 static_libs: [
43 "libfakeservicemanager",
44 "libmediaplayerservice",
45 ],
46 header_libs: [
47 "libaudiohal_headers",
48 "libaudioflinger_headers",
49 "libaudiopolicymanager_interface_headers",
50 "libbinder_headers",
51 "libmedia_headers",
52 ],
53 fuzz_config: {
54 cc: [
55 "android-media-fuzzing-reports@google.com",
56 ],
57 componentid: 155276,
58 hotlists: ["4593311"],
59 description: "The fuzzer targets the APIs of libaudiopolicy",
60 vector: "local_no_privileges_required",
61 service_privilege: "privileged",
62 users: "multi_user",
63 fuzzed_code_usage: "shipped",
64 },
65}
66
67cc_fuzz {
68 name: "audiopolicy_aidl_fuzzer",
69 srcs: ["audiopolicy_aidl_fuzzer.cpp"],
70 defaults: [
71 "audiopolicy_aidl_fuzzer_defaults",
72 "service_fuzzer_defaults",
73 ],
74}