blob: 7e55b3bfed6a862abe88adecffa862bbd50c2c61 [file] [log] [blame]
Paul Duffin11281142021-01-25 18:31:26 +00001// Copyright (C) 2021 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
Bob Badour051ef782021-02-12 17:07:05 -080015package {
16 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "frameworks_base_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 // SPDX-license-identifier-MIT
22 // SPDX-license-identifier-Unicode-DFS
23 default_applicable_licenses: ["frameworks_base_license"],
24}
25
Paul Duffin3e4ec3b2021-04-01 11:53:32 +010026// This module provides access to information Soong has related to the
27// whole platform bootclasspath. Currently, that information is provided solely
28// through configuration but additional information will be added here.
29//
30// This will provide support for the following:
31// * Hidden API processing for those parts of the bootclasspath that are not
32// part of an APEX.
33// * Compatibility checking to ensure that the hidden API bits encoded into the
34// dex files by the modularized hidden API processing is compatible with the
35// runtimes of earlier releases which expect the bits to have been computed
36// over the entirety of the bootclasspath in one go not separately.
37// * Dexpreopting apps and other libraries not on the platform bootclasspath.
38// * Generating and installing the appropriate files to the device which will
39// allow it to generate the bootclasspath related environment variables
40// dynamically.
41//
42// This module needs to be present in the build for the above processing to be
43// done correctly.
44platform_bootclasspath {
45 name: "platform-bootclasspath",
Paul Duffin81af1f52021-04-08 19:22:50 +010046
Paul Duffinb2d391d2021-04-08 09:05:39 +010047 // The bootclasspath_fragments that contribute to the platform
48 // bootclasspath.
49 fragments: [
50 {
Neha Pattanfa46dd22022-02-18 19:46:09 +000051 apex: "com.android.adservices",
52 module: "com.android.adservices-bootclasspath-fragment",
53 },
54 {
Artur Satayeve19115d2021-05-25 16:46:33 +000055 apex: "com.android.appsearch",
56 module: "com.android.appsearch-bootclasspath-fragment",
57 },
58 {
Paul Duffinb2d391d2021-04-08 09:05:39 +010059 apex: "com.android.art",
60 module: "art-bootclasspath-fragment",
61 },
Paul Duffinfc8fd102021-04-14 19:17:52 +010062 {
William Escande7b012e92022-06-22 13:19:14 -070063 apex: "com.android.btservices",
64 module: "com.android.btservices-bootclasspath-fragment",
Roopa Sattiraju293ed882022-02-03 09:07:17 -080065 },
66 {
Artur Satayeve19115d2021-05-25 16:46:33 +000067 apex: "com.android.conscrypt",
68 module: "com.android.conscrypt-bootclasspath-fragment",
69 },
70 {
qiaoli8d1d87d2022-09-28 16:21:05 +000071 apex: "com.android.federatedcompute",
72 module: "com.android.federatedcompute-bootclasspath-fragment",
73 },
74 {
Anna Zhuravlevabdc7f992022-09-06 10:47:37 +000075 apex: "com.android.healthconnect",
76 module: "com.android.healthconnect-bootclasspath-fragment",
77 },
78 {
Paul Duffinfc8fd102021-04-14 19:17:52 +010079 apex: "com.android.i18n",
80 module: "i18n-bootclasspath-fragment",
81 },
Artur Satayeve19115d2021-05-25 16:46:33 +000082 {
83 apex: "com.android.ipsec",
84 module: "com.android.ipsec-bootclasspath-fragment",
85 },
86 {
87 apex: "com.android.media",
88 module: "com.android.media-bootclasspath-fragment",
89 },
90 {
91 apex: "com.android.mediaprovider",
92 module: "com.android.mediaprovider-bootclasspath-fragment",
93 },
94 {
Frank Wange97ff9e2022-02-13 07:06:31 +000095 apex: "com.android.ondevicepersonalization",
96 module: "com.android.ondevicepersonalization-bootclasspath-fragment",
97 },
98 {
Artur Satayeve19115d2021-05-25 16:46:33 +000099 apex: "com.android.os.statsd",
100 module: "com.android.os.statsd-bootclasspath-fragment",
101 },
102 {
103 apex: "com.android.permission",
104 module: "com.android.permission-bootclasspath-fragment",
105 },
106 {
107 apex: "com.android.scheduling",
108 module: "com.android.scheduling-bootclasspath-fragment",
109 },
110 {
111 apex: "com.android.sdkext",
112 module: "com.android.sdkext-bootclasspath-fragment",
113 },
114 {
115 apex: "com.android.tethering",
116 module: "com.android.tethering-bootclasspath-fragment",
117 },
118 {
Roshan Pius6c580dd2021-07-29 21:31:23 -0700119 apex: "com.android.uwb",
120 module: "com.android.uwb-bootclasspath-fragment",
121 },
122 {
Artur Satayeve19115d2021-05-25 16:46:33 +0000123 apex: "com.android.wifi",
124 module: "com.android.wifi-bootclasspath-fragment",
125 },
Keun young Parkaab251f2021-10-05 16:21:12 -0700126 // only used for auto
127 {
128 apex: "com.android.car.framework",
129 module: "com.android.car.framework-bootclasspath-fragment",
130 },
Paul Duffinb2d391d2021-04-08 09:05:39 +0100131 ],
132
Paul Duffin81af1f52021-04-08 19:22:50 +0100133 // Additional information needed by hidden api processing.
134 hidden_api: {
135 unsupported: [
136 "hiddenapi/hiddenapi-unsupported.txt",
137 ],
138 removed: [
139 ":combined-removed-dex",
140 ],
141 max_target_r_low_priority: [
142 "hiddenapi/hiddenapi-max-target-r-loprio.txt",
143 ],
144 max_target_q: [
145 "hiddenapi/hiddenapi-max-target-q.txt",
146 ],
147 max_target_p: [
148 "hiddenapi/hiddenapi-max-target-p.txt",
149 ],
150 max_target_o_low_priority: [
151 "hiddenapi/hiddenapi-max-target-o.txt",
152 ],
Paul Duffin81af1f52021-04-08 19:22:50 +0100153 unsupported_packages: [
154 "hiddenapi/hiddenapi-unsupported-packages.txt",
155 ],
156 },
Paul Duffin3969fad2021-04-12 12:57:06 +0100157
158 dists: [
159 {
160 targets: ["droidcore"],
161 tag: "hiddenapi-flags.csv",
162 },
163 {
164 targets: ["droidcore"],
165 tag: "hiddenapi-index.csv",
166 },
167 {
168 targets: ["droidcore"],
169 tag: "hiddenapi-metadata.csv",
170 // Legacy name
171 dest: "hiddenapi-unsupported.csv",
172 },
173 ],
satayev8e93d882021-04-29 11:54:02 +0100174
175 required: [
176 "platform-systemserverclasspath",
177 ],
178}
179
180platform_systemserverclasspath {
181 name: "platform-systemserverclasspath",
Paul Duffin11281142021-01-25 18:31:26 +0000182}