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", |
| 21 | "effect-aidl-cpp", |
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 | "libmediametricsservice", |
| 28 | "libmedia_helper", |
| 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", |
Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 35 | "audiopolicy-aidl-cpp", |
| 36 | "audiopolicy-types-aidl-cpp", |
| 37 | "av-types-aidl-cpp", |
| 38 | "capture_state_listener-aidl-cpp", |
Akshata Kadam | c9ad3c8 | 2023-08-07 09:56:02 +0000 | [diff] [blame^] | 39 | "framework-permission-aidl-cpp", |
| 40 | "libaudioclient", |
| 41 | "audioflinger-aidl-cpp", |
| 42 | "libaudioflinger", |
Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 43 | "libaudioclient_aidl_conversion", |
| 44 | "libaudiofoundation", |
| 45 | "libaudiomanager", |
| 46 | "libaudiopolicy", |
| 47 | "libaudioutils", |
Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 48 | "libaudiopolicyservice", |
Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 49 | "libaudiopolicymanagerdefault", |
| 50 | "libaudiohal", |
Akshata Kadam | c9ad3c8 | 2023-08-07 09:56:02 +0000 | [diff] [blame^] | 51 | "libaudioprocessing", |
| 52 | "libactivitymanager_aidl", |
| 53 | "libdl", |
| 54 | "libheadtracking", |
| 55 | "libmediautils", |
| 56 | "libmediametrics", |
| 57 | "libnblog", |
| 58 | "libnbaio", |
| 59 | "libpowermanager", |
| 60 | "libvibrator", |
| 61 | "libvndksupport", |
| 62 | "libxml2", |
| 63 | "mediametricsservice-aidl-cpp", |
| 64 | "packagemanager_aidl-cpp", |
Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 65 | ], |
| 66 | header_libs: [ |
| 67 | "libaudiopolicymanager_interface_headers", |
Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 68 | "libaudiofoundation_headers", |
Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 69 | "libaudiohal_headers", |
| 70 | "libaudioflinger_headers", |
Akshata Kadam | c9ad3c8 | 2023-08-07 09:56:02 +0000 | [diff] [blame^] | 71 | "libbinder_headers", |
| 72 | "libmedia_headers", |
Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 73 | ], |
| 74 | fuzz_config: { |
| 75 | cc: [ |
| 76 | "android-media-fuzzing-reports@google.com", |
| 77 | ], |
| 78 | componentid: 155276, |
| 79 | hotlists: ["4593311"], |
| 80 | description: "The fuzzer targets the APIs of libaudioflinger", |
| 81 | vector: "local_no_privileges_required", |
| 82 | service_privilege: "privileged", |
| 83 | users: "multi_user", |
| 84 | fuzzed_code_usage: "shipped", |
| 85 | }, |
| 86 | } |
| 87 | |
| 88 | cc_fuzz { |
| 89 | name: "audioflinger_aidl_fuzzer", |
| 90 | srcs: ["audioflinger_aidl_fuzzer.cpp"], |
Pawan Wagh | a0eeb39 | 2023-07-12 20:47:13 +0000 | [diff] [blame] | 91 | defaults: [ |
| 92 | "libaudioclient_aidl_fuzzer_defaults", |
| 93 | "service_fuzzer_defaults" |
| 94 | ], |
Ayushi Khopkar | 7ac0309 | 2023-05-24 12:00:29 +0000 | [diff] [blame] | 95 | } |