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
15
16package {
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
25apex {
26    name: "com.android.resolv",
27    updatable: true,
28    manifest: "manifest.json",
29    multilib: {
30        first: {
31             native_shared_libs: ["libnetd_resolv"],
32        },
33    },
34    key: "com.android.resolv.key",
35    certificate: ":com.android.resolv.certificate",
36
37    // Use a custom AndroidManifest.xml used for API targeting.
38    androidManifest: "AndroidManifest.xml",
39
40    // Indicates that pre-installed version of this apex can be compressed.
41    // Whether it actually will be compressed is controlled on per-device basis.
42    compressible: true,
43
44    // IMPORTANT: For the APEX to be installed on Android 10,
45    // min_sdk_version should be 29. This enables the build system to make
46    // sure the package compatible to Android 10 in two ways:
47    // - build the APEX package compatible to Android 10
48    //   so that the package can be installed.
49    // - build artifacts (lib/javalib/bin) against Android 10 SDK
50    //   so that the artifacts can run.
51    min_sdk_version: "29",
52}
53
54apex_key {
55    name: "com.android.resolv.key",
56    public_key: "com.android.resolv.avbpubkey",
57    private_key: "com.android.resolv.pem",
58}
59
60android_app_certificate {
61     name: "com.android.resolv.certificate",
62     // will use cert.pk8 and cert.x509.pem
63     certificate: "testcert",
64}
65