// Copyright (C) 2021 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package {
    default_applicable_licenses: ["Android-Apache-2.0"],
}

prebuilt_etc {
    name: "com.google.cf.wifi.rc",
    src: "com.google.cf.wifi.rc",
    installable: false,
}

prebuilt_etc {
    name: "wpa_supplicant.conf.cf",
    src: ":wpa_supplicant_template.conf",
    filename: "wpa_supplicant.conf",
    relative_install_path: "wifi",
    installable: false,
}

apex_defaults {
    name: "com.google.cf.wifi.defaults",
    // Name expected by wpa_supplicant when it looks for config files.
    apex_name: "com.android.wifi.hal",
    manifest: "apex_manifest.json",
    key: "com.google.cf.apex.key",
    certificate: ":com.google.cf.apex.certificate",
    file_contexts: "file_contexts",
    use_vndk_as_stable: true,
    updatable: false,
    // Install the apex in /vendor/apex
    soc_specific: true,
    binaries: [
        "rename_netiface",
        "setup_wifi",
        "wpa_supplicant_cf",
    ],
    prebuilts: [
        "android.hardware.wifi.prebuilt.xml",
        "com.google.cf.wifi.rc",
        "wpa_supplicant.conf.cf",
        "wpa_supplicant_overlay.conf.cf",
    ],
    // TODO(b/202992812): Use the vintf_fragment from the wpa_supplicant project.
    vintf_fragments: ["com.google.cf.wifi.xml"],
}

apex {
    name: "com.google.cf.wifi",
    defaults: ["com.google.cf.wifi.defaults"],
    prebuilts: [
        "android.hardware.wifi.passpoint.prebuilt.xml",
    ],
    multi_install_skip_symbol_files: true,
}

apex {
    name: "com.google.cf.wifi.no-passpoint",
    defaults: ["com.google.cf.wifi.defaults"],
    multi_install_skip_symbol_files: true,
}
