chenbruce | 5c6acbb | 2019-08-04 19:56:07 +0800 | [diff] [blame] | 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 | |
Bob Badour | 07160d8 | 2021-02-22 16:09:08 -0800 | [diff] [blame] | 16 | package { |
| 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 | |
chenbruce | 5c6acbb | 2019-08-04 19:56:07 +0800 | [diff] [blame] | 25 | apex { |
| 26 | name: "com.android.resolv", |
Jiyong Park | e900a99 | 2020-02-24 18:39:01 +0900 | [diff] [blame] | 27 | updatable: true, |
chenbruce | 5c6acbb | 2019-08-04 19:56:07 +0800 | [diff] [blame] | 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", |
Jooyung Han | 57e24b0 | 2019-11-12 13:03:50 +0900 | [diff] [blame] | 39 | |
Samiul Islam | 2ecaa2e | 2021-06-24 13:08:01 +0100 | [diff] [blame] | 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 | |
Jooyung Han | 9fa0ab9 | 2020-03-12 18:22:33 +0900 | [diff] [blame] | 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. |
Jooyung Han | 9818f29 | 2020-02-27 18:29:58 +0900 | [diff] [blame] | 51 | min_sdk_version: "29", |
chenbruce | 5c6acbb | 2019-08-04 19:56:07 +0800 | [diff] [blame] | 52 | } |
| 53 | |
| 54 | apex_key { |
| 55 | name: "com.android.resolv.key", |
| 56 | public_key: "com.android.resolv.avbpubkey", |
| 57 | private_key: "com.android.resolv.pem", |
| 58 | } |
| 59 | |
| 60 | android_app_certificate { |
| 61 | name: "com.android.resolv.certificate", |
| 62 | // will use cert.pk8 and cert.x509.pem |
| 63 | certificate: "testcert", |
| 64 | } |