• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2018 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_team: "trendy_team_fwk_core_networking",
17    // See: http://go/android-license-faq
18    // A large-scale-change added 'default_applicable_licenses' to import
19    // all of the 'license_kinds' from "packages_modules_DnsResolver_license"
20    // to get the below license kinds:
21    //   SPDX-license-identifier-Apache-2.0
22    default_applicable_licenses: ["packages_modules_DnsResolver_license"],
23}
24
25prebuilt_root {
26    name: "NetBpfLoad-S.flag",
27    src: "NetBpfLoad-S.flag",
28    filename: "NetBpfLoad-S.flag",
29    install_in_root: true,  // ie. in root of apex, not under 'root'
30    installable: false,
31}
32
33apex {
34    name: "com.android.resolv",
35    manifest: "manifest.json",
36    multilib: {
37        first: {
38            native_shared_libs: ["libnetd_resolv"],
39        },
40    },
41    key: "com.android.resolv.key",
42    certificate: ":com.android.resolv.certificate",
43
44    // Use a custom AndroidManifest.xml used for API targeting.
45    androidManifest: "AndroidManifest.xml",
46
47    // Indicates that pre-installed version of this apex can be compressed.
48    // Whether it actually will be compressed is controlled on per-device basis.
49    compressible: true,
50
51    prebuilts: [
52        "NetBpfLoad-S.flag",
53    ],
54
55    // IMPORTANT:  q-launched-apex-module enables the build system to make
56    // sure the package compatible to Android 10 in two ways:
57    // - build the APEX package compatible to Android 10
58    //   so that the package can be installed.
59    // - build artifacts (lib/javalib/bin) against Android 10 SDK
60    //   so that the artifacts can run.
61    defaults: ["q-launched-dcla-enabled-apex-module"],
62}
63
64apex_key {
65    name: "com.android.resolv.key",
66    public_key: "com.android.resolv.avbpubkey",
67    private_key: "com.android.resolv.pem",
68}
69
70android_app_certificate {
71    name: "com.android.resolv.certificate",
72    // will use cert.pk8 and cert.x509.pem
73    certificate: "testcert",
74}
75