blob: 5b3e02636c0b69ff2d2342bea0fda827af6aa3fc [file] [log] [blame]
chenbruce5c6acbb2019-08-04 19:56:07 +08001// 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
Bob Badour07160d82021-02-22 16:09:08 -080016package {
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
chenbruce5c6acbb2019-08-04 19:56:07 +080025apex {
26 name: "com.android.resolv",
Jiyong Parke900a992020-02-24 18:39:01 +090027 updatable: true,
chenbruce5c6acbb2019-08-04 19:56:07 +080028 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",
Jooyung Han57e24b02019-11-12 13:03:50 +090039
Samiul Islam2ecaa2e2021-06-24 13:08:01 +010040 // 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
Jooyung Han9fa0ab92020-03-12 18:22:33 +090044 // 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.
Jooyung Han9818f292020-02-27 18:29:58 +090051 min_sdk_version: "29",
chenbruce5c6acbb2019-08-04 19:56:07 +080052}
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}