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"], |
Jiakai Zhang | c13f2db | 2021-11-17 12:00:53 +0000 | [diff] [blame] | 25 | systemserverclasspath_fragments: ["com.android.wifi-systemserverclasspath-fragment"], |
Les Lee | d0c76e4 | 2022-01-24 22:19:05 +0800 | [diff] [blame] | 26 | compat_configs: ["wifi-compat-config"], |
David Su | 7f8f5b9 | 2020-01-22 14:05:28 -0800 | [diff] [blame] | 27 | // from build rule `cacerts_wfa` |
| 28 | prebuilts: [ |
ThiƩbaud Weksteen | c7e0736 | 2024-03-20 09:17:37 +1100 | [diff] [blame] | 29 | "cacerts_wfa", |
Gabriel Biren | a5a9cdc | 2024-10-29 21:48:01 +0000 | [diff] [blame] | 30 | "mainline_supplicant_conf", |
| 31 | "mainline_supplicant_rc", |
David Su | 7f8f5b9 | 2020-01-22 14:05:28 -0800 | [diff] [blame] | 32 | ], |
Roshan Pius | 455f2e2 | 2019-12-12 13:44:39 -0800 | [diff] [blame] | 33 | key: "com.android.wifi.key", |
| 34 | certificate: ":com.android.wifi.certificate", |
David Su | 16a2819 | 2020-02-12 17:38:06 -0800 | [diff] [blame] | 35 | apps: [ |
David Su | 16a2819 | 2020-02-12 17:38:06 -0800 | [diff] [blame] | 36 | "OsuLogin", |
David Su | a72d9e3 | 2020-03-24 19:11:35 -0700 | [diff] [blame] | 37 | "ServiceWifiResources", |
Quang Luong | 79a07cf | 2021-12-13 12:11:39 -0800 | [diff] [blame] | 38 | "WifiDialog", |
David Su | 16a2819 | 2020-02-12 17:38:06 -0800 | [diff] [blame] | 39 | ], |
Gabriel Biren | 0b8cabd | 2024-10-10 00:26:13 +0000 | [diff] [blame] | 40 | binaries: select(release_flag("RELEASE_WIFI_MAINLINE_SUPPLICANT_BINARY"), { |
Gabriel Biren | d1e4865 | 2024-11-13 16:45:36 +0000 | [diff] [blame] | 41 | true: ["wpa_supplicant_mainline"], |
Gabriel Biren | 0b8cabd | 2024-10-10 00:26:13 +0000 | [diff] [blame] | 42 | default: [], |
| 43 | }), |
Gabriel Biren | d0d2305 | 2024-10-08 21:42:03 +0000 | [diff] [blame] | 44 | jni_libs: [ |
| 45 | "libservice-wifi-jni", |
| 46 | ], |
Gurpreet Singh | 157827b | 2022-03-04 16:05:10 +0000 | [diff] [blame] | 47 | defaults: ["r-launched-apex-module"], |
Samiul Islam | be3a641 | 2021-06-30 14:08:27 +0100 | [diff] [blame] | 48 | // Indicates that pre-installed version of this apex can be compressed. |
| 49 | // Whether it actually will be compressed is controlled on per-device basis. |
| 50 | compressible: true, |
Roshan Pius | 455f2e2 | 2019-12-12 13:44:39 -0800 | [diff] [blame] | 51 | } |
| 52 | |
| 53 | filegroup { |
| 54 | name: "com.android.wifi-androidManifest", |
| 55 | srcs: ["AndroidManifest.xml"], |
| 56 | } |
| 57 | |
Roshan Pius | a1385b5 | 2019-11-25 14:06:54 -0800 | [diff] [blame] | 58 | // Mainline wifi apex module. |
| 59 | apex { |
| 60 | name: "com.android.wifi", |
Roshan Pius | 455f2e2 | 2019-12-12 13:44:39 -0800 | [diff] [blame] | 61 | defaults: ["com.android.wifi-defaults"], |
Roshan Pius | a1385b5 | 2019-11-25 14:06:54 -0800 | [diff] [blame] | 62 | manifest: "apex_manifest.json", |
Roshan Pius | a1385b5 | 2019-11-25 14:06:54 -0800 | [diff] [blame] | 63 | } |
| 64 | |
| 65 | apex_key { |
| 66 | name: "com.android.wifi.key", |
| 67 | public_key: "com.android.wifi.avbpubkey", |
| 68 | private_key: "com.android.wifi.pem", |
| 69 | } |
| 70 | |
| 71 | android_app_certificate { |
| 72 | name: "com.android.wifi.certificate", |
| 73 | certificate: "com.android.wifi", |
| 74 | } |
Hai Zhang | a171fa2 | 2021-02-13 22:30:48 -0800 | [diff] [blame] | 75 | |
| 76 | sdk { |
| 77 | name: "wifi-module-sdk", |
Paul Duffin | d854abf | 2022-07-13 11:18:51 +0000 | [diff] [blame] | 78 | apexes: [ |
| 79 | // Adds exportable dependencies of the APEX to the sdk, |
| 80 | // e.g. *classpath_fragments. |
| 81 | "com.android.wifi", |
| 82 | ], |
Hai Zhang | a171fa2 | 2021-02-13 22:30:48 -0800 | [diff] [blame] | 83 | } |
satayev | fdbab0c | 2021-05-11 19:25:32 +0100 | [diff] [blame] | 84 | |
| 85 | // Encapsulate the contributions made by the com.android.wifi to the bootclasspath. |
| 86 | bootclasspath_fragment { |
| 87 | name: "com.android.wifi-bootclasspath-fragment", |
| 88 | contents: ["framework-wifi"], |
| 89 | apex_available: ["com.android.wifi"], |
Paul Duffin | ed9350c | 2021-06-28 18:28:30 +0100 | [diff] [blame] | 90 | |
| 91 | // The bootclasspath_fragments that provide APIs on which this depends. |
| 92 | fragments: [ |
| 93 | { |
| 94 | apex: "com.android.art", |
| 95 | module: "art-bootclasspath-fragment", |
| 96 | }, |
| 97 | ], |
| 98 | |
| 99 | // Additional stubs libraries that this fragment's contents use which are |
| 100 | // not provided by another bootclasspath_fragment. |
| 101 | additional_stubs: [ |
| 102 | "android-non-updatable", |
| 103 | ], |
| 104 | |
| 105 | // Additional hidden API flag files to override the defaults. This must only be |
| 106 | // modified by the Soong or platform compat team. |
| 107 | hidden_api: { |
| 108 | max_target_o_low_priority: ["hiddenapi/hiddenapi-max-target-o-low-priority.txt"], |
| 109 | max_target_r_low_priority: ["hiddenapi/hiddenapi-max-target-r-low-priority.txt"], |
| 110 | unsupported: ["hiddenapi/hiddenapi-unsupported.txt"], |
Paul Duffin | 66cccbf | 2022-03-31 13:44:19 +0000 | [diff] [blame] | 111 | |
| 112 | // The following packages contain classes from other modules on the |
| 113 | // bootclasspath. That means that the hidden API flags for this module |
| 114 | // has to explicitly list every single class this module provides in |
| 115 | // that package to differentiate them from the classes provided by other |
| 116 | // modules. That can include private classes that are not part of the |
| 117 | // API. |
| 118 | split_packages: [ |
| 119 | "android.net.wifi", |
| 120 | ], |
| 121 | |
| 122 | // The following packages and all their subpackages currently only |
| 123 | // contain classes from this bootclasspath_fragment. Listing a package |
| 124 | // here won't prevent other bootclasspath modules from adding classes in |
| 125 | // any of those packages but it will prevent them from adding those |
| 126 | // classes into an API surface, e.g. public, system, etc.. Doing so will |
| 127 | // result in a build failure due to inconsistent flags. |
| 128 | package_prefixes: [ |
| 129 | "android.net.wifi.aware", |
| 130 | "android.net.wifi.hotspot2", |
| 131 | "android.net.wifi.p2p", |
| 132 | "android.net.wifi.rtt", |
Mahesh KKV | cce7375 | 2024-01-31 21:33:57 -0800 | [diff] [blame] | 133 | "android.net.wifi.twt", |
maheshkkv | a73fdb6 | 2024-10-25 20:33:46 -0700 | [diff] [blame] | 134 | "android.net.wifi.usd", |
Paul Duffin | 66cccbf | 2022-03-31 13:44:19 +0000 | [diff] [blame] | 135 | "android.net.wifi.util", |
| 136 | "com.android.wifi", |
| 137 | ], |
Paul Duffin | ed9350c | 2021-06-28 18:28:30 +0100 | [diff] [blame] | 138 | }, |
satayev | fdbab0c | 2021-05-11 19:25:32 +0100 | [diff] [blame] | 139 | } |
Jiakai Zhang | c13f2db | 2021-11-17 12:00:53 +0000 | [diff] [blame] | 140 | |
| 141 | systemserverclasspath_fragment { |
| 142 | name: "com.android.wifi-systemserverclasspath-fragment", |
| 143 | standalone_contents: ["service-wifi"], |
| 144 | apex_available: ["com.android.wifi"], |
| 145 | } |