Siarhei Vishniakou | f9cb2a7 | 2021-07-09 03:22:42 +0000 | [diff] [blame] | 1 | // Copyright (C) 2021 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | package { |
| 16 | // See: http://go/android-license-faq |
| 17 | // A large-scale-change added 'default_applicable_licenses' to import |
| 18 | // all of the 'license_kinds' from "frameworks_native_license" |
| 19 | // to get the below license kinds: |
| 20 | // SPDX-license-identifier-Apache-2.0 |
| 21 | default_applicable_licenses: ["frameworks_native_license"], |
| 22 | } |
| 23 | |
Michael Ensing | b8d9326 | 2020-05-12 00:41:30 -0700 | [diff] [blame] | 24 | cc_defaults { |
| 25 | name: "inputflinger_fuzz_defaults", |
| 26 | defaults: [ |
| 27 | "inputflinger_defaults", |
Siarhei Vishniakou | 8bea9db | 2023-06-15 19:51:24 -0700 | [diff] [blame] | 28 | "libinputflinger_defaults", |
Michael Ensing | b8d9326 | 2020-05-12 00:41:30 -0700 | [diff] [blame] | 29 | ], |
Siarhei Vishniakou | 8bea9db | 2023-06-15 19:51:24 -0700 | [diff] [blame] | 30 | host_supported: true, |
Michael Ensing | b8d9326 | 2020-05-12 00:41:30 -0700 | [diff] [blame] | 31 | include_dirs: [ |
| 32 | "frameworks/native/services/inputflinger", |
| 33 | ], |
| 34 | shared_libs: [ |
Michael Ensing | b8d9326 | 2020-05-12 00:41:30 -0700 | [diff] [blame] | 35 | "libinputreader", |
| 36 | "libinputflinger_base", |
Michael Ensing | b8d9326 | 2020-05-12 00:41:30 -0700 | [diff] [blame] | 37 | ], |
Siarhei Vishniakou | 8bea9db | 2023-06-15 19:51:24 -0700 | [diff] [blame] | 38 | sanitize: { |
| 39 | hwaddress: true, |
| 40 | undefined: true, |
| 41 | all_undefined: true, |
| 42 | diag: { |
| 43 | undefined: true, |
| 44 | }, |
| 45 | }, |
| 46 | target: { |
| 47 | host: { |
| 48 | sanitize: { |
| 49 | address: true, |
| 50 | }, |
| 51 | }, |
| 52 | }, |
Michael Ensing | b8d9326 | 2020-05-12 00:41:30 -0700 | [diff] [blame] | 53 | header_libs: [ |
| 54 | "libbatteryservice_headers", |
| 55 | "libinputreader_headers", |
| 56 | ], |
| 57 | fuzz_config: { |
Siarhei Vishniakou | 862ae21 | 2022-09-28 15:17:28 -0700 | [diff] [blame] | 58 | cc: ["android-framework-input@google.com"], |
Ayushi Khopkar | 4cb1d53 | 2023-03-20 18:52:31 +0530 | [diff] [blame] | 59 | componentid: 155276, |
| 60 | hotlists: [ |
| 61 | "4593311", |
| 62 | ], |
| 63 | description: "The fuzzer targets the APIs of libinputflinger library", |
| 64 | vector: "local_no_privileges_required", |
| 65 | service_privilege: "privileged", |
| 66 | users: "multi_user", |
| 67 | fuzzed_code_usage: "shipped", |
Michael Ensing | b8d9326 | 2020-05-12 00:41:30 -0700 | [diff] [blame] | 68 | }, |
| 69 | } |
| 70 | |
| 71 | cc_fuzz { |
| 72 | name: "inputflinger_cursor_input_fuzzer", |
| 73 | defaults: [ |
| 74 | "inputflinger_fuzz_defaults", |
| 75 | ], |
| 76 | srcs: [ |
| 77 | "CursorInputFuzzer.cpp", |
| 78 | ], |
| 79 | } |
| 80 | |
| 81 | cc_fuzz { |
| 82 | name: "inputflinger_keyboard_input_fuzzer", |
| 83 | defaults: [ |
| 84 | "inputflinger_fuzz_defaults", |
| 85 | ], |
| 86 | srcs: [ |
| 87 | "KeyboardInputFuzzer.cpp", |
| 88 | ], |
| 89 | } |
| 90 | |
| 91 | cc_fuzz { |
| 92 | name: "inputflinger_multitouch_input_fuzzer", |
| 93 | defaults: [ |
| 94 | "inputflinger_fuzz_defaults", |
| 95 | ], |
| 96 | srcs: [ |
| 97 | "MultiTouchInputFuzzer.cpp", |
| 98 | ], |
| 99 | } |
| 100 | |
| 101 | cc_fuzz { |
| 102 | name: "inputflinger_switch_input_fuzzer", |
| 103 | defaults: [ |
| 104 | "inputflinger_fuzz_defaults", |
| 105 | ], |
| 106 | srcs: [ |
| 107 | "SwitchInputFuzzer.cpp", |
| 108 | ], |
| 109 | } |
Michael Ensing | 910968d | 2020-07-19 17:19:31 -0700 | [diff] [blame] | 110 | |
| 111 | cc_fuzz { |
Harry Cutts | ccb75e8 | 2023-06-23 14:08:06 +0000 | [diff] [blame] | 112 | name: "inputflinger_touchpad_input_fuzzer", |
| 113 | defaults: [ |
| 114 | "inputflinger_fuzz_defaults", |
| 115 | ], |
| 116 | srcs: [ |
| 117 | "TouchpadInputFuzzer.cpp", |
| 118 | ], |
| 119 | static_libs: [ |
| 120 | "libchrome-gestures", |
| 121 | ], |
| 122 | header_libs: [ |
| 123 | "libchrome-gestures_headers", |
| 124 | ], |
| 125 | } |
| 126 | |
| 127 | cc_fuzz { |
Michael Ensing | 0f0ca6e | 2021-01-12 16:13:20 -0800 | [diff] [blame] | 128 | name: "inputflinger_input_reader_fuzzer", |
| 129 | defaults: [ |
| 130 | "inputflinger_fuzz_defaults", |
| 131 | ], |
| 132 | srcs: [ |
| 133 | "InputReaderFuzzer.cpp", |
| 134 | ], |
| 135 | } |
| 136 | |
| 137 | cc_fuzz { |
Michael Ensing | 910968d | 2020-07-19 17:19:31 -0700 | [diff] [blame] | 138 | name: "inputflinger_blocking_queue_fuzzer", |
| 139 | defaults: [ |
| 140 | "inputflinger_fuzz_defaults", |
| 141 | ], |
| 142 | srcs: [ |
| 143 | "BlockingQueueFuzzer.cpp", |
| 144 | ], |
| 145 | } |
| 146 | |
| 147 | cc_fuzz { |
| 148 | name: "inputflinger_input_classifier_fuzzer", |
| 149 | defaults: [ |
| 150 | "inputflinger_fuzz_defaults", |
| 151 | ], |
| 152 | srcs: [ |
| 153 | "InputClassifierFuzzer.cpp", |
| 154 | ], |
| 155 | } |
Siarhei Vishniakou | 8bea9db | 2023-06-15 19:51:24 -0700 | [diff] [blame] | 156 | |
| 157 | cc_fuzz { |
| 158 | name: "inputflinger_latencytracker_fuzzer", |
| 159 | defaults: [ |
| 160 | "inputflinger_fuzz_defaults", |
| 161 | "libinputdispatcher_defaults", |
| 162 | ], |
| 163 | shared_libs: [ |
| 164 | "libinputreporter", |
| 165 | ], |
| 166 | srcs: [ |
| 167 | "LatencyTrackerFuzzer.cpp", |
| 168 | ], |
| 169 | } |