Paul Duffin | 1128114 | 2021-01-25 18:31:26 +0000 | [diff] [blame] | 1 | // 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 Badour | 051ef78 | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 15 | package { |
| 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 Duffin | 3e4ec3b | 2021-04-01 11:53:32 +0100 | [diff] [blame] | 26 | // 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. |
| 44 | platform_bootclasspath { |
| 45 | name: "platform-bootclasspath", |
Paul Duffin | 81af1f5 | 2021-04-08 19:22:50 +0100 | [diff] [blame] | 46 | |
Paul Duffin | b2d391d | 2021-04-08 09:05:39 +0100 | [diff] [blame] | 47 | // The bootclasspath_fragments that contribute to the platform |
| 48 | // bootclasspath. |
| 49 | fragments: [ |
| 50 | { |
Neha Pattan | fa46dd2 | 2022-02-18 19:46:09 +0000 | [diff] [blame] | 51 | apex: "com.android.adservices", |
| 52 | module: "com.android.adservices-bootclasspath-fragment", |
| 53 | }, |
| 54 | { |
Artur Satayev | e19115d | 2021-05-25 16:46:33 +0000 | [diff] [blame] | 55 | apex: "com.android.appsearch", |
| 56 | module: "com.android.appsearch-bootclasspath-fragment", |
| 57 | }, |
| 58 | { |
Paul Duffin | b2d391d | 2021-04-08 09:05:39 +0100 | [diff] [blame] | 59 | apex: "com.android.art", |
| 60 | module: "art-bootclasspath-fragment", |
| 61 | }, |
Paul Duffin | fc8fd10 | 2021-04-14 19:17:52 +0100 | [diff] [blame] | 62 | { |
William Escande | 7b012e9 | 2022-06-22 13:19:14 -0700 | [diff] [blame] | 63 | apex: "com.android.btservices", |
| 64 | module: "com.android.btservices-bootclasspath-fragment", |
Roopa Sattiraju | 293ed88 | 2022-02-03 09:07:17 -0800 | [diff] [blame] | 65 | }, |
| 66 | { |
Artur Satayev | e19115d | 2021-05-25 16:46:33 +0000 | [diff] [blame] | 67 | apex: "com.android.conscrypt", |
| 68 | module: "com.android.conscrypt-bootclasspath-fragment", |
| 69 | }, |
| 70 | { |
Paul Duffin | fc8fd10 | 2021-04-14 19:17:52 +0100 | [diff] [blame] | 71 | apex: "com.android.i18n", |
| 72 | module: "i18n-bootclasspath-fragment", |
| 73 | }, |
Artur Satayev | e19115d | 2021-05-25 16:46:33 +0000 | [diff] [blame] | 74 | { |
| 75 | apex: "com.android.ipsec", |
| 76 | module: "com.android.ipsec-bootclasspath-fragment", |
| 77 | }, |
| 78 | { |
| 79 | apex: "com.android.media", |
| 80 | module: "com.android.media-bootclasspath-fragment", |
| 81 | }, |
| 82 | { |
| 83 | apex: "com.android.mediaprovider", |
| 84 | module: "com.android.mediaprovider-bootclasspath-fragment", |
| 85 | }, |
| 86 | { |
Frank Wang | e97ff9e | 2022-02-13 07:06:31 +0000 | [diff] [blame] | 87 | apex: "com.android.ondevicepersonalization", |
| 88 | module: "com.android.ondevicepersonalization-bootclasspath-fragment", |
| 89 | }, |
| 90 | { |
Artur Satayev | e19115d | 2021-05-25 16:46:33 +0000 | [diff] [blame] | 91 | apex: "com.android.os.statsd", |
| 92 | module: "com.android.os.statsd-bootclasspath-fragment", |
| 93 | }, |
| 94 | { |
| 95 | apex: "com.android.permission", |
| 96 | module: "com.android.permission-bootclasspath-fragment", |
| 97 | }, |
| 98 | { |
| 99 | apex: "com.android.scheduling", |
| 100 | module: "com.android.scheduling-bootclasspath-fragment", |
| 101 | }, |
| 102 | { |
| 103 | apex: "com.android.sdkext", |
| 104 | module: "com.android.sdkext-bootclasspath-fragment", |
| 105 | }, |
| 106 | { |
| 107 | apex: "com.android.tethering", |
| 108 | module: "com.android.tethering-bootclasspath-fragment", |
| 109 | }, |
| 110 | { |
Roshan Pius | 6c580dd | 2021-07-29 21:31:23 -0700 | [diff] [blame] | 111 | apex: "com.android.uwb", |
| 112 | module: "com.android.uwb-bootclasspath-fragment", |
| 113 | }, |
| 114 | { |
Artur Satayev | e19115d | 2021-05-25 16:46:33 +0000 | [diff] [blame] | 115 | apex: "com.android.wifi", |
| 116 | module: "com.android.wifi-bootclasspath-fragment", |
| 117 | }, |
Keun young Park | aab251f | 2021-10-05 16:21:12 -0700 | [diff] [blame] | 118 | // only used for auto |
| 119 | { |
| 120 | apex: "com.android.car.framework", |
| 121 | module: "com.android.car.framework-bootclasspath-fragment", |
| 122 | }, |
Paul Duffin | b2d391d | 2021-04-08 09:05:39 +0100 | [diff] [blame] | 123 | ], |
| 124 | |
Paul Duffin | 81af1f5 | 2021-04-08 19:22:50 +0100 | [diff] [blame] | 125 | // Additional information needed by hidden api processing. |
| 126 | hidden_api: { |
| 127 | unsupported: [ |
| 128 | "hiddenapi/hiddenapi-unsupported.txt", |
| 129 | ], |
| 130 | removed: [ |
| 131 | ":combined-removed-dex", |
| 132 | ], |
| 133 | max_target_r_low_priority: [ |
| 134 | "hiddenapi/hiddenapi-max-target-r-loprio.txt", |
| 135 | ], |
| 136 | max_target_q: [ |
| 137 | "hiddenapi/hiddenapi-max-target-q.txt", |
| 138 | ], |
| 139 | max_target_p: [ |
| 140 | "hiddenapi/hiddenapi-max-target-p.txt", |
| 141 | ], |
| 142 | max_target_o_low_priority: [ |
| 143 | "hiddenapi/hiddenapi-max-target-o.txt", |
| 144 | ], |
Paul Duffin | 81af1f5 | 2021-04-08 19:22:50 +0100 | [diff] [blame] | 145 | unsupported_packages: [ |
| 146 | "hiddenapi/hiddenapi-unsupported-packages.txt", |
| 147 | ], |
| 148 | }, |
Paul Duffin | 3969fad | 2021-04-12 12:57:06 +0100 | [diff] [blame] | 149 | |
| 150 | dists: [ |
| 151 | { |
| 152 | targets: ["droidcore"], |
| 153 | tag: "hiddenapi-flags.csv", |
| 154 | }, |
| 155 | { |
| 156 | targets: ["droidcore"], |
| 157 | tag: "hiddenapi-index.csv", |
| 158 | }, |
| 159 | { |
| 160 | targets: ["droidcore"], |
| 161 | tag: "hiddenapi-metadata.csv", |
| 162 | // Legacy name |
| 163 | dest: "hiddenapi-unsupported.csv", |
| 164 | }, |
| 165 | ], |
satayev | 8e93d88 | 2021-04-29 11:54:02 +0100 | [diff] [blame] | 166 | |
| 167 | required: [ |
| 168 | "platform-systemserverclasspath", |
| 169 | ], |
| 170 | } |
| 171 | |
| 172 | platform_systemserverclasspath { |
| 173 | name: "platform-systemserverclasspath", |
Paul Duffin | 1128114 | 2021-01-25 18:31:26 +0000 | [diff] [blame] | 174 | } |