1/****************************************************************************** 2 * 3 * Copyright (C) 2020 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 * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore 19 */ 20 21package { 22 // See: http://go/android-license-faq 23 // A large-scale-change added 'default_applicable_licenses' to import 24 // all of the 'license_kinds' from "frameworks_av_license" 25 // to get the below license kinds: 26 // SPDX-license-identifier-Apache-2.0 27 default_applicable_licenses: ["frameworks_av_license"], 28} 29 30cc_defaults { 31 name: "mediametrics_service_fuzzer_defaults", 32 static_libs: [ 33 "libmediametrics", 34 "libmediametricsservice", 35 "libplatformprotos", 36 ], 37 38 shared_libs: [ 39 "libaudioutils", 40 "libbase", 41 "libbinder", 42 "libcutils", 43 "liblog", 44 "libmedia_helper", 45 "libmediautils", 46 "libmemunreachable", 47 "libprotobuf-cpp-lite", 48 "libstagefright", 49 "libstagefright_foundation", 50 "libstats_media_metrics", 51 "libstatspull", 52 "libstatssocket", 53 "libutils", 54 "mediametricsservice-aidl-cpp", 55 "packagemanager_aidl-cpp", 56 ], 57 58 header_libs: [ 59 "libaudioutils_headers", 60 ], 61 62 fuzz_config: { 63 cc: [ 64 "[email protected]", 65 ], 66 componentid: 155276, 67 hotlists: [ 68 "4593311", 69 ], 70 description: "The fuzzer targets the APIs of libmediametricsservice", 71 vector: "local_no_privileges_required", 72 service_privilege: "constrained", 73 users: "multi_user", 74 fuzzed_code_usage: "shipped", 75 }, 76} 77 78cc_fuzz { 79 name: "mediametrics_service_fuzzer", 80 81 srcs: [ 82 "mediametrics_service_fuzzer.cpp", 83 ], 84 defaults: [ 85 "mediametrics_service_fuzzer_defaults", 86 ], 87} 88 89cc_fuzz { 90 name: "mediametrics_aidl_fuzzer", 91 srcs: [ 92 "mediametrics_aidl_fuzzer.cpp", 93 ], 94 defaults: [ 95 "service_fuzzer_defaults", 96 "fuzzer_disable_leaks", 97 "mediametrics_service_fuzzer_defaults", 98 ], 99} 100