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
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19prebuilt_etc {
20    name: "com.google.cf.wifi.rc",
21    src: "com.google.cf.wifi.rc",
22    installable: false,
23}
24
25apex {
26    name: "com.google.cf.wifi",
27    manifest: "apex_manifest.json",
28    key: "com.google.cf.apex.key",
29    certificate: ":com.google.cf.apex.certificate",
30    file_contexts: "file_contexts",
31    updatable: false,
32    // Install the apex in /vendor/apex
33    soc_specific: true,
34    binaries: [
35        "rename_netiface",
36        "setup_wifi",
37        "//device/generic/goldfish:mac80211_create_radios",
38    ],
39    sh_binaries: ["init.wifi_apex"],
40    prebuilts: [
41        "android.hardware.wifi.direct.prebuilt.xml",
42        "android.hardware.wifi.passpoint.prebuilt.xml",
43        "android.hardware.wifi.prebuilt.xml",
44        "com.google.cf.wifi.rc",
45    ],
46}
47