Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2022 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 | |
| 17 | cc_defaults { |
| 18 | name: "libaudioclient_aidl_fuzzer_defaults", |
| 19 | static_libs: [ |
| 20 | "android.hardware.audio.common@7.0-enums", |
Shraddha Basantwani | c4996b3 | 2024-01-30 06:31:38 +0000 | [diff] [blame] | 21 | "libaudiomockhal", |
Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 22 | "libcgrouprc", |
| 23 | "libcgrouprc_format", |
Akshata Kadam | c9ad3c8 | 2023-08-07 09:56:02 +0000 | [diff] [blame] | 24 | "libfakeservicemanager", |
Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 25 | "libjsoncpp", |
Akshata Kadam | c9ad3c8 | 2023-08-07 09:56:02 +0000 | [diff] [blame] | 26 | "liblog", |
Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 27 | "libmedia_helper", |
Andy Hung | e59246e | 2024-03-15 11:48:57 -0700 | [diff] [blame] | 28 | "libmediametricsservice", |
Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 29 | "libprocessgroup", |
| 30 | "shared-file-region-aidl-cpp", |
Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 31 | ], |
| 32 | shared_libs: [ |
Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 33 | "android.hardware.audio.common-util", |
| 34 | "audioclient-types-aidl-cpp", |
Andy Hung | e59246e | 2024-03-15 11:48:57 -0700 | [diff] [blame] | 35 | "audioflinger-aidl-cpp", |
Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 36 | "audiopolicy-aidl-cpp", |
| 37 | "audiopolicy-types-aidl-cpp", |
| 38 | "av-types-aidl-cpp", |
| 39 | "capture_state_listener-aidl-cpp", |
Andy Hung | e59246e | 2024-03-15 11:48:57 -0700 | [diff] [blame] | 40 | "effect-aidl-cpp", |
Akshata Kadam | c9ad3c8 | 2023-08-07 09:56:02 +0000 | [diff] [blame] | 41 | "framework-permission-aidl-cpp", |
Andy Hung | e59246e | 2024-03-15 11:48:57 -0700 | [diff] [blame] | 42 | "libactivitymanager_aidl", |
Akshata Kadam | c9ad3c8 | 2023-08-07 09:56:02 +0000 | [diff] [blame] | 43 | "libaudioclient", |
Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 44 | "libaudioclient_aidl_conversion", |
Andy Hung | e59246e | 2024-03-15 11:48:57 -0700 | [diff] [blame] | 45 | "libaudioflinger", |
Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 46 | "libaudiofoundation", |
Andy Hung | e59246e | 2024-03-15 11:48:57 -0700 | [diff] [blame] | 47 | "libaudiohal", |
Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 48 | "libaudiomanager", |
| 49 | "libaudiopolicy", |
Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 50 | "libaudiopolicymanagerdefault", |
Andy Hung | e59246e | 2024-03-15 11:48:57 -0700 | [diff] [blame] | 51 | "libaudiopolicyservice", |
Akshata Kadam | c9ad3c8 | 2023-08-07 09:56:02 +0000 | [diff] [blame] | 52 | "libaudioprocessing", |
Andy Hung | e59246e | 2024-03-15 11:48:57 -0700 | [diff] [blame] | 53 | "libaudioutils", |
Akshata Kadam | c9ad3c8 | 2023-08-07 09:56:02 +0000 | [diff] [blame] | 54 | "libdl", |
| 55 | "libheadtracking", |
Akshata Kadam | c9ad3c8 | 2023-08-07 09:56:02 +0000 | [diff] [blame] | 56 | "libmediametrics", |
Andy Hung | e59246e | 2024-03-15 11:48:57 -0700 | [diff] [blame] | 57 | "libmediautils", |
Akshata Kadam | c9ad3c8 | 2023-08-07 09:56:02 +0000 | [diff] [blame] | 58 | "libnbaio", |
Andy Hung | e59246e | 2024-03-15 11:48:57 -0700 | [diff] [blame] | 59 | "libnblog", |
Akshata Kadam | c9ad3c8 | 2023-08-07 09:56:02 +0000 | [diff] [blame] | 60 | "libpowermanager", |
| 61 | "libvibrator", |
| 62 | "libvndksupport", |
| 63 | "libxml2", |
| 64 | "mediametricsservice-aidl-cpp", |
| 65 | "packagemanager_aidl-cpp", |
Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 66 | ], |
| 67 | header_libs: [ |
Andy Hung | e59246e | 2024-03-15 11:48:57 -0700 | [diff] [blame] | 68 | "libaudioflinger_headers", |
Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 69 | "libaudiofoundation_headers", |
Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 70 | "libaudiohal_headers", |
Andy Hung | e59246e | 2024-03-15 11:48:57 -0700 | [diff] [blame] | 71 | "libaudiopolicymanager_interface_headers", |
Akshata Kadam | c9ad3c8 | 2023-08-07 09:56:02 +0000 | [diff] [blame] | 72 | "libbinder_headers", |
| 73 | "libmedia_headers", |
Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 74 | ], |
Harish Mahendrakar | d4a7f74 | 2024-03-18 16:46:08 +0000 | [diff] [blame] | 75 | fuzz_config: { |
Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 76 | cc: [ |
Akshata Kadam | 5e5bf36 | 2024-05-07 16:43:43 +0530 | [diff] [blame^] | 77 | "android-audio-fuzzing-reports@google.com", |
Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 78 | ], |
| 79 | componentid: 155276, |
| 80 | hotlists: ["4593311"], |
| 81 | description: "The fuzzer targets the APIs of libaudioflinger", |
| 82 | vector: "local_no_privileges_required", |
| 83 | service_privilege: "privileged", |
| 84 | users: "multi_user", |
| 85 | fuzzed_code_usage: "shipped", |
| 86 | }, |
| 87 | } |
| 88 | |
| 89 | cc_fuzz { |
| 90 | name: "audioflinger_aidl_fuzzer", |
| 91 | srcs: ["audioflinger_aidl_fuzzer.cpp"], |
Pawan Wagh | a0eeb39 | 2023-07-12 20:47:13 +0000 | [diff] [blame] | 92 | defaults: [ |
Shraddha Basantwani | c4996b3 | 2024-01-30 06:31:38 +0000 | [diff] [blame] | 93 | "latest_android_hardware_audio_core_ndk_shared", |
| 94 | "latest_android_hardware_audio_core_sounddose_ndk_shared", |
| 95 | "latest_android_hardware_audio_effect_ndk_shared", |
Andy Hung | e59246e | 2024-03-15 11:48:57 -0700 | [diff] [blame] | 96 | "libaudioclient_aidl_fuzzer_defaults", |
Harish Mahendrakar | d4a7f74 | 2024-03-18 16:46:08 +0000 | [diff] [blame] | 97 | "service_fuzzer_defaults", |
Pawan Wagh | a0eeb39 | 2023-07-12 20:47:13 +0000 | [diff] [blame] | 98 | ], |
Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 99 | } |