summaryrefslogtreecommitdiff
path: root/wifi/apex/Android.bp
blob: f8ba5c472b537167088a5230811f99db82e54384 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package {
    default_applicable_licenses: ["hardware_interfaces_license"],
}

apex_key {
    name: "com.android.hardware.wifi.key",
    public_key: "com.android.hardware.wifi.avbpubkey",
    private_key: "com.android.hardware.wifi.pem",
}

android_app_certificate {
    name: "com.android.hardware.wifi.certificate",
    certificate: "com.android.hardware.wifi",
}

genrule {
    name: "gen-android.hardware.wifi.rc",
    srcs: [":default-android.hardware.wifi-service.rc"],
    out: ["com.android.hardware.wifi-service.rc"],
    cmd: "sed -e 's@/vendor/bin/@/apex/com.android.hardware.wifi/bin/@' $(in) > $(out)",
}

prebuilt_etc {
    name: "com.android.hardware.wifi.rc",
    src: ":gen-android.hardware.wifi.rc",
    installable: false,
}

prebuilt_etc {
    name: "com.android.hardware.wifi.xml",
    src: ":default-android.hardware.wifi-service.xml",
    installable: false,
    sub_dir: "vintf",
}

apex {
    name: "com.android.hardware.wifi",
    manifest: "apex_manifest.json",
    key: "com.android.hardware.wifi.key",
    certificate: ":com.android.hardware.wifi.certificate",
    file_contexts: "file_contexts",
    use_vndk_as_stable: true,
    updatable: false,
    soc_specific: true,
    binaries: [
        "android.hardware.wifi-service",
    ],
    prebuilts: [
        "com.android.hardware.wifi.rc",
        "com.android.hardware.wifi.xml",
    ],
    overrides: [
        "android.hardware.wifi-service",
    ],
}