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 | c67e1df | 2023-01-09 12:03:59 +0000 | [diff] [blame] | 26 | soong_config_module_type { |
| 27 | name: "custom_platform_bootclasspath", |
| 28 | module_type: "platform_bootclasspath", |
| 29 | config_namespace: "AUTO", |
| 30 | bool_variables: [ |
| 31 | "car_bootclasspath_fragment", |
| 32 | ], |
| 33 | properties: [ |
| 34 | "fragments", |
| 35 | ], |
| 36 | } |
| 37 | |
Paul Duffin | 3e4ec3b | 2021-04-01 11:53:32 +0100 | [diff] [blame] | 38 | // This module provides access to information Soong has related to the |
| 39 | // whole platform bootclasspath. Currently, that information is provided solely |
| 40 | // through configuration but additional information will be added here. |
| 41 | // |
| 42 | // This will provide support for the following: |
| 43 | // * Hidden API processing for those parts of the bootclasspath that are not |
| 44 | // part of an APEX. |
| 45 | // * Compatibility checking to ensure that the hidden API bits encoded into the |
| 46 | // dex files by the modularized hidden API processing is compatible with the |
| 47 | // runtimes of earlier releases which expect the bits to have been computed |
| 48 | // over the entirety of the bootclasspath in one go not separately. |
| 49 | // * Dexpreopting apps and other libraries not on the platform bootclasspath. |
| 50 | // * Generating and installing the appropriate files to the device which will |
| 51 | // allow it to generate the bootclasspath related environment variables |
| 52 | // dynamically. |
| 53 | // |
| 54 | // This module needs to be present in the build for the above processing to be |
| 55 | // done correctly. |
Paul Duffin | c67e1df | 2023-01-09 12:03:59 +0000 | [diff] [blame] | 56 | custom_platform_bootclasspath { |
Paul Duffin | 3e4ec3b | 2021-04-01 11:53:32 +0100 | [diff] [blame] | 57 | name: "platform-bootclasspath", |
Paul Duffin | 81af1f5 | 2021-04-08 19:22:50 +0100 | [diff] [blame] | 58 | |
Paul Duffin | b2d391d | 2021-04-08 09:05:39 +0100 | [diff] [blame] | 59 | // The bootclasspath_fragments that contribute to the platform |
| 60 | // bootclasspath. |
| 61 | fragments: [ |
| 62 | { |
Neha Pattan | fa46dd2 | 2022-02-18 19:46:09 +0000 | [diff] [blame] | 63 | apex: "com.android.adservices", |
| 64 | module: "com.android.adservices-bootclasspath-fragment", |
| 65 | }, |
| 66 | { |
Artur Satayev | e19115d | 2021-05-25 16:46:33 +0000 | [diff] [blame] | 67 | apex: "com.android.appsearch", |
| 68 | module: "com.android.appsearch-bootclasspath-fragment", |
| 69 | }, |
| 70 | { |
Paul Duffin | b2d391d | 2021-04-08 09:05:39 +0100 | [diff] [blame] | 71 | apex: "com.android.art", |
| 72 | module: "art-bootclasspath-fragment", |
| 73 | }, |
Paul Duffin | fc8fd10 | 2021-04-14 19:17:52 +0100 | [diff] [blame] | 74 | { |
William Escande | 7b012e9 | 2022-06-22 13:19:14 -0700 | [diff] [blame] | 75 | apex: "com.android.btservices", |
| 76 | module: "com.android.btservices-bootclasspath-fragment", |
Roopa Sattiraju | 293ed88 | 2022-02-03 09:07:17 -0800 | [diff] [blame] | 77 | }, |
| 78 | { |
Artur Satayev | e19115d | 2021-05-25 16:46:33 +0000 | [diff] [blame] | 79 | apex: "com.android.conscrypt", |
| 80 | module: "com.android.conscrypt-bootclasspath-fragment", |
| 81 | }, |
| 82 | { |
Paul Duffin | fc8fd10 | 2021-04-14 19:17:52 +0100 | [diff] [blame] | 83 | apex: "com.android.i18n", |
| 84 | module: "i18n-bootclasspath-fragment", |
| 85 | }, |
Artur Satayev | e19115d | 2021-05-25 16:46:33 +0000 | [diff] [blame] | 86 | { |
| 87 | apex: "com.android.ipsec", |
| 88 | module: "com.android.ipsec-bootclasspath-fragment", |
| 89 | }, |
| 90 | { |
| 91 | apex: "com.android.media", |
| 92 | module: "com.android.media-bootclasspath-fragment", |
| 93 | }, |
| 94 | { |
| 95 | apex: "com.android.mediaprovider", |
| 96 | module: "com.android.mediaprovider-bootclasspath-fragment", |
| 97 | }, |
| 98 | { |
Frank Wang | e97ff9e | 2022-02-13 07:06:31 +0000 | [diff] [blame] | 99 | apex: "com.android.ondevicepersonalization", |
| 100 | module: "com.android.ondevicepersonalization-bootclasspath-fragment", |
| 101 | }, |
| 102 | { |
Artur Satayev | e19115d | 2021-05-25 16:46:33 +0000 | [diff] [blame] | 103 | apex: "com.android.os.statsd", |
| 104 | module: "com.android.os.statsd-bootclasspath-fragment", |
| 105 | }, |
| 106 | { |
| 107 | apex: "com.android.permission", |
| 108 | module: "com.android.permission-bootclasspath-fragment", |
| 109 | }, |
| 110 | { |
| 111 | apex: "com.android.scheduling", |
| 112 | module: "com.android.scheduling-bootclasspath-fragment", |
| 113 | }, |
| 114 | { |
| 115 | apex: "com.android.sdkext", |
| 116 | module: "com.android.sdkext-bootclasspath-fragment", |
| 117 | }, |
| 118 | { |
| 119 | apex: "com.android.tethering", |
| 120 | module: "com.android.tethering-bootclasspath-fragment", |
| 121 | }, |
| 122 | { |
Roshan Pius | 6c580dd | 2021-07-29 21:31:23 -0700 | [diff] [blame] | 123 | apex: "com.android.uwb", |
| 124 | module: "com.android.uwb-bootclasspath-fragment", |
| 125 | }, |
| 126 | { |
Artur Satayev | e19115d | 2021-05-25 16:46:33 +0000 | [diff] [blame] | 127 | apex: "com.android.wifi", |
| 128 | module: "com.android.wifi-bootclasspath-fragment", |
| 129 | }, |
Nikita Ioffe | ceff6b8 | 2022-10-18 23:14:22 +0100 | [diff] [blame] | 130 | { |
| 131 | apex: "com.android.virt", |
| 132 | module: "com.android.virt-bootclasspath-fragment", |
| 133 | }, |
Paul Duffin | b2d391d | 2021-04-08 09:05:39 +0100 | [diff] [blame] | 134 | ], |
| 135 | |
Paul Duffin | c67e1df | 2023-01-09 12:03:59 +0000 | [diff] [blame] | 136 | soong_config_variables: { |
| 137 | car_bootclasspath_fragment: { |
| 138 | fragments: [ |
| 139 | // only used for auto |
| 140 | { |
| 141 | apex: "com.android.car.framework", |
| 142 | module: "com.android.car.framework-bootclasspath-fragment", |
| 143 | }, |
| 144 | ], |
| 145 | }, |
| 146 | }, |
| 147 | |
Paul Duffin | 81af1f5 | 2021-04-08 19:22:50 +0100 | [diff] [blame] | 148 | // Additional information needed by hidden api processing. |
| 149 | hidden_api: { |
| 150 | unsupported: [ |
| 151 | "hiddenapi/hiddenapi-unsupported.txt", |
| 152 | ], |
| 153 | removed: [ |
| 154 | ":combined-removed-dex", |
| 155 | ], |
| 156 | max_target_r_low_priority: [ |
| 157 | "hiddenapi/hiddenapi-max-target-r-loprio.txt", |
| 158 | ], |
| 159 | max_target_q: [ |
| 160 | "hiddenapi/hiddenapi-max-target-q.txt", |
| 161 | ], |
| 162 | max_target_p: [ |
| 163 | "hiddenapi/hiddenapi-max-target-p.txt", |
| 164 | ], |
| 165 | max_target_o_low_priority: [ |
| 166 | "hiddenapi/hiddenapi-max-target-o.txt", |
| 167 | ], |
Paul Duffin | 81af1f5 | 2021-04-08 19:22:50 +0100 | [diff] [blame] | 168 | unsupported_packages: [ |
| 169 | "hiddenapi/hiddenapi-unsupported-packages.txt", |
| 170 | ], |
| 171 | }, |
Paul Duffin | 3969fad | 2021-04-12 12:57:06 +0100 | [diff] [blame] | 172 | |
| 173 | dists: [ |
| 174 | { |
| 175 | targets: ["droidcore"], |
| 176 | tag: "hiddenapi-flags.csv", |
| 177 | }, |
| 178 | { |
| 179 | targets: ["droidcore"], |
| 180 | tag: "hiddenapi-index.csv", |
| 181 | }, |
| 182 | { |
| 183 | targets: ["droidcore"], |
| 184 | tag: "hiddenapi-metadata.csv", |
| 185 | // Legacy name |
| 186 | dest: "hiddenapi-unsupported.csv", |
| 187 | }, |
| 188 | ], |
satayev | 8e93d88 | 2021-04-29 11:54:02 +0100 | [diff] [blame] | 189 | |
| 190 | required: [ |
| 191 | "platform-systemserverclasspath", |
| 192 | ], |
| 193 | } |
| 194 | |
Anton Hansson | 26c63d2 | 2023-09-22 10:16:00 +0000 | [diff] [blame^] | 195 | genrule { // This module exists to make the srcjar output available to Make. |
| 196 | name: "platform-bootclasspath.srcjar", |
| 197 | srcs: [":platform-bootclasspath{.srcjar}"], |
| 198 | out: ["platform-bootclasspath.srcjar"], |
| 199 | cmd: "cp $(in) $(out)", |
| 200 | } |
| 201 | |
satayev | 8e93d88 | 2021-04-29 11:54:02 +0100 | [diff] [blame] | 202 | platform_systemserverclasspath { |
| 203 | name: "platform-systemserverclasspath", |
Paul Duffin | 1128114 | 2021-01-25 18:31:26 +0000 | [diff] [blame] | 204 | } |