xref: /aosp_15_r20/frameworks/base/libs/androidfw/fuzz/resourcefile_fuzzer/Android.bp (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1// Copyright (C) 2020 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
15package {
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_base_libs_androidfw_license"
19    // to get the below license kinds:
20    //   SPDX-license-identifier-Apache-2.0
21    default_applicable_licenses: ["frameworks_base_libs_androidfw_license"],
22    default_team: "trendy_team_android_resources",
23}
24
25cc_fuzz {
26    name: "resourcefile_fuzzer",
27    srcs: [
28        "resourcefile_fuzzer.cpp",
29    ],
30    host_supported: true,
31    corpus: ["corpus/*"],
32    static_libs: ["libgmock"],
33    target: {
34        android: {
35            shared_libs: [
36                "libandroidfw",
37                "libbase",
38                "libcutils",
39                "libutils",
40                "libziparchive",
41                "libui",
42            ],
43        },
44        host: {
45            static_libs: [
46                "libandroidfw",
47                "libbase",
48                "libcutils",
49                "libutils",
50                "libziparchive",
51                "liblog",
52                "libz",
53            ],
54        },
55    },
56    fuzz_config: {
57        cc: [
58            "[email protected]",
59        ],
60        componentid: 568761,
61        description: "The fuzzer targets the APIs of libandroidfw",
62        vector: "local_no_privileges_required",
63        service_privilege: "privileged",
64        users: "multi_user",
65        fuzzed_code_usage: "shipped",
66    },
67}
68