blob: 0ae4dc5c7d0e85b846243beb6749e0eb743efe55 [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
Aditya Choudharyb2eeb462024-01-31 11:07:15 +000019package {
20 default_team: "trendy_team_android_media_audio_framework",
21}
22
Akshata Kadam80b150b2023-07-04 10:58:29 +053023cc_defaults {
24 name: "audiopolicy_aidl_fuzzer_defaults",
25 shared_libs: [
Andy Hunge59246e2024-03-15 11:48:57 -070026 "libaudioflinger",
Akshata Kadam80b150b2023-07-04 10:58:29 +053027 "libaudiopolicyservice",
Akshata Kadam80b150b2023-07-04 10:58:29 +053028 "libaudioprocessing",
29 "libhidlbase",
Andy Hung7b188ed2024-07-31 17:07:24 -070030 "libmediaplayerservice",
Akshata Kadam80b150b2023-07-04 10:58:29 +053031 "libnbaio",
Andy Hunge59246e2024-03-15 11:48:57 -070032 "libnblog",
Akshata Kadam80b150b2023-07-04 10:58:29 +053033 "libpowermanager",
34 "libvibrator",
35 "packagemanager_aidl-cpp",
36 ],
37 static_libs: [
Shraddha Basantwanic4996b32024-01-30 06:31:38 +000038 "libaudiomockhal",
Akshata Kadam80b150b2023-07-04 10:58:29 +053039 "libfakeservicemanager",
Akshata Kadam80b150b2023-07-04 10:58:29 +053040 ],
41 header_libs: [
Akshata Kadam80b150b2023-07-04 10:58:29 +053042 "libmedia_headers",
43 ],
44 fuzz_config: {
45 cc: [
46 "android-media-fuzzing-reports@google.com",
47 ],
48 componentid: 155276,
49 hotlists: ["4593311"],
50 description: "The fuzzer targets the APIs of libaudiopolicy",
51 vector: "local_no_privileges_required",
52 service_privilege: "privileged",
53 users: "multi_user",
54 fuzzed_code_usage: "shipped",
55 },
56}
57
58cc_fuzz {
59 name: "audiopolicy_aidl_fuzzer",
60 srcs: ["audiopolicy_aidl_fuzzer.cpp"],
61 defaults: [
62 "audiopolicy_aidl_fuzzer_defaults",
Shraddha Basantwanic4996b32024-01-30 06:31:38 +000063 "latest_android_hardware_audio_core_ndk_shared",
64 "latest_android_hardware_audio_core_sounddose_ndk_shared",
65 "latest_android_hardware_audio_effect_ndk_shared",
Andy Hung7b188ed2024-07-31 17:07:24 -070066 "libaudiopolicyservice_dependencies",
Akshata Kadam80b150b2023-07-04 10:58:29 +053067 "service_fuzzer_defaults",
68 ],
69}