xref: /aosp_15_r20/frameworks/av/media/libaudioclient/aidl/fuzzer/Android.bp (revision ec779b8e0859a360c3d303172224686826e6e0e1)
1/*
2package {
3    default_team: "trendy_team_media_framework_audio",
4}
5
6 * Copyright (C) 2022 The Android Open Source Project
7 *
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 *      http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20
21cc_defaults {
22    name: "libaudioclient_aidl_fuzzer_defaults",
23    static_libs: [
24        "[email protected]",
25        "libaudiopermission",
26        "libaudiomockhal",
27        "libfakeservicemanager",
28        "libjsoncpp",
29        "libmediametricsservice",
30        "libprocessgroup",
31        "libprocessgroup_util",
32        "shared-file-region-aidl-cpp",
33    ],
34    shared_libs: [
35        "android.hardware.audio.common-util",
36        "libaudioflinger",
37        "libaudiopolicyservice",
38        "libdl",
39        "libvndksupport",
40        "mediametricsservice-aidl-cpp",
41    ],
42    header_libs: [
43        "libaudiopolicymanager_interface_headers",
44        "libmedia_headers",
45    ],
46    fuzz_config: {
47        cc: [
48            "[email protected]",
49        ],
50        componentid: 155276,
51        hotlists: ["4593311"],
52        description: "The fuzzer targets the APIs of libaudioflinger",
53        vector: "local_no_privileges_required",
54        service_privilege: "privileged",
55        users: "multi_user",
56        fuzzed_code_usage: "shipped",
57    },
58}
59
60cc_fuzz {
61    name: "audioflinger_aidl_fuzzer",
62    srcs: ["audioflinger_aidl_fuzzer.cpp"],
63    defaults: [
64        "latest_android_hardware_audio_core_ndk_shared",
65        "latest_android_hardware_audio_core_sounddose_ndk_shared",
66        "latest_android_hardware_audio_effect_ndk_shared",
67        "libaudioclient_aidl_fuzzer_defaults",
68        "libaudioflinger_dependencies",
69        "libaudiopolicyservice_dependencies",
70        "service_fuzzer_defaults",
71    ],
72}
73