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.rild.rc",
21    src: "com.google.cf.rild.rc",
22    installable: false,
23}
24
25prebuilt_etc {
26    name: "com.google.cf.rild.xml",
27    src: ":libril-modem-lib-manifests",
28    sub_dir: "vintf",
29    installable: false,
30}
31
32apex {
33    name: "com.google.cf.rild",
34    manifest: "apex_manifest.json",
35    key: "com.google.cf.apex.key",
36    certificate: ":com.google.cf.apex.certificate",
37    file_contexts: "file_contexts",
38    updatable: false,
39    soc_specific: true,
40
41    binaries: [
42        "libcuttlefish-rild",
43    ],
44    native_shared_libs: [
45        "libcuttlefish-ril-2",
46    ],
47    prebuilts: [
48        "android.hardware.telephony.carrierlock.prebuilt.xml",
49        "android.hardware.telephony.gsm.prebuilt.xml",
50        "android.hardware.telephony.ims.prebuilt.xml",
51        "android.hardware.telephony.ims.singlereg.prebuilt.xml",
52        "com.google.cf.rild.rc",
53        "com.google.cf.rild.xml",
54    ],
55    overrides: [
56        "libril",
57        "libreference-ril",
58        "rild",
59    ],
60}
61