Roshan Pius | a1385b5 | 2019-11-25 14:06:54 -0800 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2019 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | // |
| 16 | |
Bob Badour | c446a52 | 2021-02-04 00:08:31 -0800 | [diff] [blame] | 17 | package { |
| 18 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 19 | } |
| 20 | |
Roshan Pius | 455f2e2 | 2019-12-12 13:44:39 -0800 | [diff] [blame] | 21 | apex_defaults { |
| 22 | name: "com.android.wifi-defaults", |
| 23 | androidManifest: ":com.android.wifi-androidManifest", |
satayev | fdbab0c | 2021-05-11 19:25:32 +0100 | [diff] [blame] | 24 | bootclasspath_fragments: ["com.android.wifi-bootclasspath-fragment"], |
David Su | 0f55b97 | 2019-12-12 15:32:45 -0800 | [diff] [blame] | 25 | java_libs: [ |
Roshan Pius | b8d7fab | 2020-03-23 10:02:09 -0700 | [diff] [blame] | 26 | "service-wifi", |
David Su | 0f55b97 | 2019-12-12 15:32:45 -0800 | [diff] [blame] | 27 | ], |
David Su | 7f8f5b9 | 2020-01-22 14:05:28 -0800 | [diff] [blame] | 28 | // from build rule `cacerts_wfa` |
| 29 | prebuilts: [ |
| 30 | "target-cacert-wifi-674b5f5b.0", |
| 31 | "target-cacert-wifi-21125ccd.0", |
| 32 | "target-cacert-wifi-ea93cb5b.0", |
| 33 | ], |
Roshan Pius | 455f2e2 | 2019-12-12 13:44:39 -0800 | [diff] [blame] | 34 | key: "com.android.wifi.key", |
| 35 | certificate: ":com.android.wifi.certificate", |
David Su | 16a2819 | 2020-02-12 17:38:06 -0800 | [diff] [blame] | 36 | apps: [ |
David Su | 16a2819 | 2020-02-12 17:38:06 -0800 | [diff] [blame] | 37 | "OsuLogin", |
David Su | a72d9e3 | 2020-03-24 19:11:35 -0700 | [diff] [blame] | 38 | "ServiceWifiResources", |
David Su | 16a2819 | 2020-02-12 17:38:06 -0800 | [diff] [blame] | 39 | ], |
David Su | e387b92 | 2020-11-12 22:38:09 +0000 | [diff] [blame] | 40 | min_sdk_version: "30", |
David Su | 4c6d57d | 2021-01-28 09:43:37 -0800 | [diff] [blame] | 41 | updatable: true, |
Samiul Islam | be3a641 | 2021-06-30 14:08:27 +0100 | [diff] [blame] | 42 | // Indicates that pre-installed version of this apex can be compressed. |
| 43 | // Whether it actually will be compressed is controlled on per-device basis. |
| 44 | compressible: true, |
Roshan Pius | 455f2e2 | 2019-12-12 13:44:39 -0800 | [diff] [blame] | 45 | } |
| 46 | |
| 47 | filegroup { |
| 48 | name: "com.android.wifi-androidManifest", |
| 49 | srcs: ["AndroidManifest.xml"], |
| 50 | } |
| 51 | |
Roshan Pius | a1385b5 | 2019-11-25 14:06:54 -0800 | [diff] [blame] | 52 | // Mainline wifi apex module. |
| 53 | apex { |
| 54 | name: "com.android.wifi", |
Roshan Pius | 455f2e2 | 2019-12-12 13:44:39 -0800 | [diff] [blame] | 55 | defaults: ["com.android.wifi-defaults"], |
Roshan Pius | a1385b5 | 2019-11-25 14:06:54 -0800 | [diff] [blame] | 56 | manifest: "apex_manifest.json", |
Roshan Pius | a1385b5 | 2019-11-25 14:06:54 -0800 | [diff] [blame] | 57 | } |
| 58 | |
| 59 | apex_key { |
| 60 | name: "com.android.wifi.key", |
| 61 | public_key: "com.android.wifi.avbpubkey", |
| 62 | private_key: "com.android.wifi.pem", |
| 63 | } |
| 64 | |
| 65 | android_app_certificate { |
| 66 | name: "com.android.wifi.certificate", |
| 67 | certificate: "com.android.wifi", |
| 68 | } |
Hai Zhang | a171fa2 | 2021-02-13 22:30:48 -0800 | [diff] [blame] | 69 | |
| 70 | sdk { |
| 71 | name: "wifi-module-sdk", |
Anton Hansson | 368f679 | 2021-06-07 15:47:29 +0100 | [diff] [blame] | 72 | bootclasspath_fragments: ["com.android.wifi-bootclasspath-fragment"], |
Hai Zhang | a171fa2 | 2021-02-13 22:30:48 -0800 | [diff] [blame] | 73 | } |
satayev | fdbab0c | 2021-05-11 19:25:32 +0100 | [diff] [blame] | 74 | |
| 75 | // Encapsulate the contributions made by the com.android.wifi to the bootclasspath. |
| 76 | bootclasspath_fragment { |
| 77 | name: "com.android.wifi-bootclasspath-fragment", |
| 78 | contents: ["framework-wifi"], |
| 79 | apex_available: ["com.android.wifi"], |
Paul Duffin | ed9350c | 2021-06-28 18:28:30 +0100 | [diff] [blame] | 80 | |
| 81 | // The bootclasspath_fragments that provide APIs on which this depends. |
| 82 | fragments: [ |
| 83 | { |
| 84 | apex: "com.android.art", |
| 85 | module: "art-bootclasspath-fragment", |
| 86 | }, |
| 87 | ], |
| 88 | |
| 89 | // Additional stubs libraries that this fragment's contents use which are |
| 90 | // not provided by another bootclasspath_fragment. |
| 91 | additional_stubs: [ |
| 92 | "android-non-updatable", |
| 93 | ], |
| 94 | |
| 95 | // Additional hidden API flag files to override the defaults. This must only be |
| 96 | // modified by the Soong or platform compat team. |
| 97 | hidden_api: { |
| 98 | max_target_o_low_priority: ["hiddenapi/hiddenapi-max-target-o-low-priority.txt"], |
| 99 | max_target_r_low_priority: ["hiddenapi/hiddenapi-max-target-r-low-priority.txt"], |
| 100 | unsupported: ["hiddenapi/hiddenapi-unsupported.txt"], |
| 101 | }, |
satayev | fdbab0c | 2021-05-11 19:25:32 +0100 | [diff] [blame] | 102 | } |