blob: be0767bc3ed53369c00fc2fe595c8eb689ddefef [file] [log] [blame]
Roshan Piusa1385b52019-11-25 14:06:54 -08001//
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 Badourc446a522021-02-04 00:08:31 -080017package {
18 default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
Roshan Pius455f2e22019-12-12 13:44:39 -080021apex_defaults {
22 name: "com.android.wifi-defaults",
23 androidManifest: ":com.android.wifi-androidManifest",
satayevfdbab0c2021-05-11 19:25:32 +010024 bootclasspath_fragments: ["com.android.wifi-bootclasspath-fragment"],
David Su0f55b972019-12-12 15:32:45 -080025 java_libs: [
Roshan Piusb8d7fab2020-03-23 10:02:09 -070026 "service-wifi",
David Su0f55b972019-12-12 15:32:45 -080027 ],
David Su7f8f5b92020-01-22 14:05:28 -080028 // 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 Pius455f2e22019-12-12 13:44:39 -080034 key: "com.android.wifi.key",
35 certificate: ":com.android.wifi.certificate",
David Su16a28192020-02-12 17:38:06 -080036 apps: [
David Su16a28192020-02-12 17:38:06 -080037 "OsuLogin",
David Sua72d9e32020-03-24 19:11:35 -070038 "ServiceWifiResources",
David Su16a28192020-02-12 17:38:06 -080039 ],
David Sue387b922020-11-12 22:38:09 +000040 min_sdk_version: "30",
David Su4c6d57d2021-01-28 09:43:37 -080041 updatable: true,
Samiul Islambe3a6412021-06-30 14:08:27 +010042 // 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 Pius455f2e22019-12-12 13:44:39 -080045}
46
47filegroup {
48 name: "com.android.wifi-androidManifest",
49 srcs: ["AndroidManifest.xml"],
50}
51
Roshan Piusa1385b52019-11-25 14:06:54 -080052// Mainline wifi apex module.
53apex {
54 name: "com.android.wifi",
Roshan Pius455f2e22019-12-12 13:44:39 -080055 defaults: ["com.android.wifi-defaults"],
Roshan Piusa1385b52019-11-25 14:06:54 -080056 manifest: "apex_manifest.json",
Roshan Piusa1385b52019-11-25 14:06:54 -080057}
58
59apex_key {
60 name: "com.android.wifi.key",
61 public_key: "com.android.wifi.avbpubkey",
62 private_key: "com.android.wifi.pem",
63}
64
65android_app_certificate {
66 name: "com.android.wifi.certificate",
67 certificate: "com.android.wifi",
68}
Hai Zhanga171fa22021-02-13 22:30:48 -080069
70sdk {
71 name: "wifi-module-sdk",
Anton Hansson368f6792021-06-07 15:47:29 +010072 bootclasspath_fragments: ["com.android.wifi-bootclasspath-fragment"],
Hai Zhanga171fa22021-02-13 22:30:48 -080073}
satayevfdbab0c2021-05-11 19:25:32 +010074
75// Encapsulate the contributions made by the com.android.wifi to the bootclasspath.
76bootclasspath_fragment {
77 name: "com.android.wifi-bootclasspath-fragment",
78 contents: ["framework-wifi"],
79 apex_available: ["com.android.wifi"],
Paul Duffined9350c2021-06-28 18:28:30 +010080
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 },
satayevfdbab0c2021-05-11 19:25:32 +0100102}