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.bt.rc",
21    src: "com.google.cf.bt.rc",
22    installable: false,
23}
24
25prebuilt_etc {
26    name: "android.hardware.bluetooth-service.default.xml",
27    src: ":manifest_android.hardware.bluetooth-service.default.xml",
28    sub_dir: "vintf",
29    installable: false,
30}
31
32prebuilt_etc {
33    name: "android.hardware.bluetooth.finder-service.default.xml",
34    src: ":manifest_android.hardware.bluetooth.finder-service.default.xml",
35    sub_dir: "vintf",
36    installable: false,
37}
38
39prebuilt_etc {
40    name: "android.hardware.bluetooth.ranging-service.default.xml",
41    src: ":manifest_android.hardware.bluetooth.ranging-service.default.xml",
42    sub_dir: "vintf",
43    installable: false,
44}
45
46prebuilt_etc {
47    name: "android.hardware.bluetooth.lmp_event-service.default.xml",
48    src: ":manifest_android.hardware.bluetooth.lmp_event-service.default.xml",
49    sub_dir: "vintf",
50    installable: false,
51}
52
53prebuilt_etc {
54    name: "android.hardware.bluetooth.socket-service.default.xml",
55    src: ":manifest_android.hardware.bluetooth.socket-service.default.xml",
56    sub_dir: "vintf",
57    installable: false,
58}
59
60apex {
61    name: "com.google.cf.bt",
62    manifest: "manifest.json",
63    file_contexts: "file_contexts",
64    key: "com.google.cf.apex.key",
65    certificate: ":com.google.cf.apex.certificate",
66    updatable: false,
67    soc_specific: true,
68
69    binaries: [
70        "android.hardware.bluetooth-service.default",
71        "android.hardware.bluetooth.finder-service.default",
72        "android.hardware.bluetooth.lmp_event-service.default",
73        "android.hardware.bluetooth.ranging-service.default",
74        "android.hardware.bluetooth.socket-service.default",
75        "bt_vhci_forwarder",
76    ],
77    prebuilts: [
78        // permissions
79        "android.hardware.bluetooth.prebuilt.xml",
80        "android.hardware.bluetooth_le.prebuilt.xml",
81        // vintf
82        "android.hardware.bluetooth-service.default.xml",
83        "android.hardware.bluetooth.finder-service.default.xml",
84        "android.hardware.bluetooth.lmp_event-service.default.xml",
85        "android.hardware.bluetooth.ranging-service.default.xml",
86        "android.hardware.bluetooth.socket-service.default.xml",
87        // init rc
88        "com.google.cf.bt.rc",
89    ],
90}
91