1/*
2 * Copyright (C) 2021 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
17package {
18    default_team: "trendy_team_media_framework_audio",
19    // See: http://go/android-license-faq
20    // A large-scale-change added 'default_applicable_licenses' to import
21    // all of the 'license_kinds' from "frameworks_av_license"
22    // to get the below license kinds:
23    //   SPDX-license-identifier-Apache-2.0
24    default_applicable_licenses: ["frameworks_av_license"],
25}
26
27cc_fuzz {
28    name: "libaaudio_fuzzer",
29    defaults: [
30        "latest_android_media_audio_common_types_cpp_static",
31    ],
32    srcs: [
33        "libaaudio_fuzzer.cpp",
34    ],
35    header_libs: [
36        "libaaudio_headers",
37    ],
38    shared_libs: [
39        "com.android.media.aaudio-aconfig-cc",
40        "libaudio_aidl_conversion_common_cpp",
41        "libaudioclient_aidl_conversion",
42        "libaudiomanager",
43        "libaudiopolicy",
44        "libbinder",
45        "libutils",
46    ],
47    static_libs: [
48        "aaudio-aidl-cpp",
49        "audioclient-types-aidl-cpp",
50        "audioflinger-aidl-cpp",
51        "audio-permission-aidl-cpp",
52        "audiopolicy-aidl-cpp",
53        "audiopolicy-types-aidl-cpp",
54        "av-types-aidl-cpp",
55        "framework-permission-aidl-cpp",
56        "libaaudio",
57        "libaaudio_internal",
58        "libaudioclient",
59        "libaudioutils",
60        "libbase_ndk",
61        "libcgrouprc",
62        "libcgrouprc_format",
63        "libcutils",
64        "libjsoncpp",
65        "liblog",
66        "libmedia_helper",
67        "libmediametrics",
68        "libprocessgroup",
69        "mediametricsservice-aidl-cpp",
70        "shared-file-region-aidl-cpp",
71    ],
72    fuzz_config: {
73        cc: [
74            "android-audio-fuzzing-reports@google.com",
75        ],
76        componentid: 155276,
77        hotlists: [
78            "4593311",
79        ],
80        description: "The fuzzer targets the APIs of libaaudio",
81        vector: "local_no_privileges_required",
82        service_privilege: "privileged",
83        users: "multi_user",
84        fuzzed_code_usage: "shipped",
85    },
86}
87