1/******************************************************************************
2 *
3 * Copyright (C) 2021 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
19package {
20    default_team: "trendy_team_android_media_audio_framework",
21    // See: http://go/android-license-faq
22    // A large-scale-change added 'default_applicable_licenses' to import
23    // all of the 'license_kinds' from "frameworks_av_license"
24    // to get the below license kinds:
25    //   SPDX-license-identifier-Apache-2.0
26    default_applicable_licenses: ["frameworks_av_license"],
27}
28
29cc_fuzz {
30    name: "audiopolicy_fuzzer",
31    srcs: [
32        "audiopolicy_fuzzer.cpp",
33    ],
34    include_dirs: [
35        "frameworks/av/services/audiopolicy",
36    ],
37    shared_libs: [
38        "android.hardware.audio.common-util",
39        "capture_state_listener-aidl-cpp",
40        "framework-permission-aidl-cpp",
41        "libaudioclient",
42        "libaudiofoundation",
43        "libaudiopolicy",
44        "libaudiopolicycomponents",
45        "libaudiopolicymanagerdefault",
46        "libbase",
47        "libbinder",
48        "libcutils",
49        "libdl",
50        "libhidlbase",
51        "liblog",
52        "libmedia_helper",
53        "libmediametrics",
54        "libutils",
55        "libxml2",
56    ],
57    static_libs: [
58        "android.hardware.audio.common@7.0-enums",
59    ],
60    header_libs: [
61        "libaudiopolicycommon",
62        "libaudiopolicyengine_interface_headers",
63        "libaudiopolicymanager_interface_headers",
64    ],
65    data: [":audiopolicyfuzzer_configuration_files"],
66    fuzz_config: {
67        cc: ["android-audio-fuzzing-reports@google.com"],
68        componentid: 155276,
69        hotlists: [
70            "4593311",
71        ],
72        description: "The fuzzer targets the APIs of libaudiopolicy",
73        vector: "local_no_privileges_required",
74        service_privilege: "privileged",
75        users: "multi_user",
76        fuzzed_code_usage: "shipped",
77    },
78}
79