Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 1 | // Copyright (C) 2016 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 | |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 15 | // Build the master framework library. |
| 16 | |
| 17 | // READ ME: ######################################################## |
| 18 | // |
| 19 | // When updating this list of aidl files, consider if that aidl is |
| 20 | // part of the SDK API. If it is, also add it to the list in Android.mk |
| 21 | // that is preprocessed and distributed with the SDK. This list should |
| 22 | // not contain any aidl files for parcelables, but the one below should |
| 23 | // if you intend for 3rd parties to be able to send those objects |
| 24 | // across process boundaries. |
| 25 | // |
| 26 | // READ ME: ######################################################## |
| 27 | |
Bob Badour | 051ef78 | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 28 | package { |
| 29 | default_applicable_licenses: ["frameworks_base_license"], |
| 30 | } |
| 31 | |
| 32 | // Added automatically by a large-scale-change that took the approach of |
| 33 | // 'apply every license found to every target'. While this makes sure we respect |
| 34 | // every license restriction, it may not be entirely correct. |
| 35 | // |
| 36 | // e.g. GPL in an MIT project might only apply to the contrib/ directory. |
| 37 | // |
| 38 | // Please consider splitting the single license below into multiple licenses, |
| 39 | // taking care not to lose any license_kind information, and overriding the |
| 40 | // default license using the 'licenses: [...]' property on targets as needed. |
| 41 | // |
| 42 | // For unused files, consider creating a 'fileGroup' with "//visibility:private" |
| 43 | // to attach the license to, and including a comment whether the files may be |
| 44 | // used in the current project. |
| 45 | // See: http://go/android-license-faq |
| 46 | license { |
| 47 | name: "frameworks_base_license", |
| 48 | visibility: [":__subpackages__"], |
| 49 | license_kinds: [ |
| 50 | "SPDX-license-identifier-Apache-2.0", |
| 51 | "SPDX-license-identifier-BSD", |
| 52 | "SPDX-license-identifier-CC-BY", |
| 53 | "SPDX-license-identifier-CPL-1.0", |
| 54 | "SPDX-license-identifier-GPL", |
| 55 | "SPDX-license-identifier-GPL-2.0", |
| 56 | "SPDX-license-identifier-MIT", |
| 57 | "SPDX-license-identifier-Unicode-DFS", |
| 58 | "SPDX-license-identifier-W3C", |
| 59 | "legacy_unencumbered", |
| 60 | ], |
| 61 | license_text: [ |
| 62 | "NOTICE", |
| 63 | ], |
| 64 | } |
| 65 | |
Artur Satayev | 005d735 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 66 | filegroup { |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 67 | name: "framework-non-updatable-sources", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 68 | srcs: [ |
| 69 | // Java/AIDL sources under frameworks/base |
Baligh Uddin | 3b92756 | 2021-05-01 18:28:28 +0000 | [diff] [blame] | 70 | ":framework-annotations", |
Sudheer Shanka | f5b3696 | 2019-10-04 16:16:13 -0700 | [diff] [blame] | 71 | ":framework-blobstore-sources", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 72 | ":framework-core-sources", |
| 73 | ":framework-drm-sources", |
Anton Hansson | fbb283f | 2021-03-30 12:09:53 +0100 | [diff] [blame] | 74 | ":framework-graphics-nonupdatable-sources", |
Jiyong Park | 48cc372 | 2019-10-21 14:01:06 +0900 | [diff] [blame] | 75 | ":framework-jobscheduler-sources", // jobscheduler is not a module for R |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 76 | ":framework-keystore-sources", |
David Zeuthen | 045b6de | 2019-10-29 15:15:18 -0400 | [diff] [blame] | 77 | ":framework-identity-sources", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 78 | ":framework-location-sources", |
| 79 | ":framework-lowpan-sources", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 80 | ":framework-mca-effect-sources", |
| 81 | ":framework-mca-filterfw-sources", |
| 82 | ":framework-mca-filterpacks-sources", |
Jiyong Park | 48cc372 | 2019-10-21 14:01:06 +0900 | [diff] [blame] | 83 | ":framework-media-sources", |
Amit Mahajan | 153d31b | 2019-10-07 17:41:26 -0700 | [diff] [blame] | 84 | ":framework-mms-sources", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 85 | ":framework-opengl-sources", |
| 86 | ":framework-rs-sources", |
| 87 | ":framework-sax-sources", |
| 88 | ":framework-telecomm-sources", |
Amit Mahajan | ac0fd65 | 2019-09-23 17:59:57 -0700 | [diff] [blame] | 89 | ":framework-telephony-common-sources", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 90 | ":framework-telephony-sources", |
Benedict Wong | 2649736 | 2020-08-10 17:54:33 -0700 | [diff] [blame] | 91 | ":framework-vcn-util-sources", |
David Su | 130441b | 2019-12-14 21:37:20 -0800 | [diff] [blame] | 92 | ":framework-wifi-annotations", |
David Su | 6f646ef | 2019-12-10 13:33:06 -0800 | [diff] [blame] | 93 | ":framework-wifi-non-updatable-sources", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 94 | ":PacProcessor-aidl-sources", |
| 95 | ":ProxyHandler-aidl-sources", |
Aaron Huang | c4081b2 | 2020-01-13 15:03:35 +0800 | [diff] [blame] | 96 | ":net-utils-framework-common-srcs", |
Jiyong Park | 0c6dc7b | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 97 | |
atrost | ff948d8 | 2019-10-10 19:27:31 +0100 | [diff] [blame] | 98 | // AIDL from frameworks/base/native/ |
| 99 | ":platform-compat-native-aidl", |
| 100 | |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 101 | // AIDL sources from external directories |
Janis Danisevskis | 1521260 | 2021-03-17 11:02:19 -0700 | [diff] [blame] | 102 | ":android.hardware.security.keymint-V1-java-source", |
| 103 | ":android.hardware.security.secureclock-V1-java-source", |
| 104 | ":android.security.apc-java-source", |
| 105 | ":android.security.authorization-java-source", |
| 106 | ":android.security.maintenance-java-source", |
| 107 | ":android.security.vpnprofilestore-java-source", |
| 108 | ":android.system.keystore2-V1-java-source", |
David Zeuthen | 045b6de | 2019-10-29 15:15:18 -0400 | [diff] [blame] | 109 | ":credstore_aidl", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 110 | ":dumpstate_aidl", |
| 111 | ":framework_native_aidl", |
| 112 | ":gatekeeper_aidl", |
| 113 | ":gsiservice_aidl", |
| 114 | ":incidentcompanion_aidl", |
| 115 | ":installd_aidl", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 116 | ":libaudioclient_aidl", |
| 117 | ":libbinder_aidl", |
| 118 | ":libbluetooth-binder-aidl", |
| 119 | ":libcamera_client_aidl", |
| 120 | ":libcamera_client_framework_aidl", |
Steven Moreland | 8bb6bc2 | 2021-03-26 01:32:39 +0000 | [diff] [blame] | 121 | ":packagemanager_aidl", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 122 | ":libupdate_engine_aidl", |
Amy Zhang | ccdbc4d | 2020-06-08 21:29:59 -0700 | [diff] [blame] | 123 | ":resourcemanager_aidl", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 124 | ":storaged_aidl", |
| 125 | ":vold_aidl", |
Jiyong Park | 0c6dc7b | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 126 | |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 127 | // For the generated R.java and Manifest.java |
| 128 | ":framework-res{.aapt.srcjar}", |
| 129 | |
| 130 | // etc. |
| 131 | ":framework-javastream-protos", |
Muhammad Qureshi | 1de1df4 | 2020-01-27 16:36:45 -0800 | [diff] [blame] | 132 | ":statslog-framework-java-gen", // FrameworkStatsLog.java |
Hayden Gomes | c164f6a | 2020-11-05 16:28:21 -0800 | [diff] [blame] | 133 | ":audio_policy_configuration_V7_0", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 134 | ], |
| 135 | } |
Jiyong Park | 0c6dc7b | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 136 | |
Anton Hansson | 5f208a2 | 2020-03-07 11:40:10 +0000 | [diff] [blame] | 137 | java_library { |
| 138 | name: "framework-updatable-stubs-module_libs_api", |
| 139 | static_libs: [ |
Yan Yan | f8b973c | 2021-02-03 16:07:30 -0800 | [diff] [blame] | 140 | "android.net.ipsec.ike.stubs.module_lib", |
Paul Duffin | abebc6a | 2020-05-31 11:35:50 +0100 | [diff] [blame] | 141 | "framework-media.stubs.module_lib", |
| 142 | "framework-mediaprovider.stubs.module_lib", |
| 143 | "framework-permission.stubs.module_lib", |
Paul Duffin | 3bde2d5 | 2020-06-02 11:41:13 +0100 | [diff] [blame] | 144 | "framework-sdkextensions.stubs.module_lib", |
Paul Duffin | abebc6a | 2020-05-31 11:35:50 +0100 | [diff] [blame] | 145 | "framework-statsd.stubs.module_lib", |
Paul Duffin | 01fd6ff | 2020-06-02 11:41:13 +0100 | [diff] [blame] | 146 | "framework-tethering.stubs.module_lib", |
Paul Duffin | abebc6a | 2020-05-31 11:35:50 +0100 | [diff] [blame] | 147 | "framework-wifi.stubs.module_lib", |
Anton Hansson | 5f208a2 | 2020-03-07 11:40:10 +0000 | [diff] [blame] | 148 | ], |
| 149 | sdk_version: "module_current", |
Anton Hansson | 7a9bc4e | 2020-08-18 12:52:44 +0100 | [diff] [blame] | 150 | visibility: ["//visibility:private"], |
| 151 | } |
| 152 | |
| 153 | java_library { |
| 154 | name: "framework-all", |
| 155 | installable: false, |
| 156 | static_libs: [ |
Yan Yan | f8b973c | 2021-02-03 16:07:30 -0800 | [diff] [blame] | 157 | "android.net.ipsec.ike.impl", |
Anton Hansson | 7a9bc4e | 2020-08-18 12:52:44 +0100 | [diff] [blame] | 158 | "framework-minus-apex", |
| 159 | "framework-mediaprovider.impl", |
| 160 | "framework-permission.impl", |
| 161 | "framework-sdkextensions.impl", |
| 162 | "framework-statsd.impl", |
| 163 | "framework-tethering.impl", |
| 164 | "framework-wifi.impl", |
| 165 | "updatable-media", |
| 166 | ], |
| 167 | apex_available: ["//apex_available:platform"], |
| 168 | sdk_version: "core_platform", |
| 169 | visibility: [ |
| 170 | // DO NOT ADD ANY MORE ENTRIES TO THIS LIST |
| 171 | "//external/robolectric-shadows:__subpackages__", |
| 172 | "//frameworks/layoutlib:__subpackages__", |
| 173 | ], |
Anton Hansson | 5f208a2 | 2020-03-07 11:40:10 +0000 | [diff] [blame] | 174 | } |
| 175 | |
Jiyong Park | 392729f | 2020-01-17 16:32:53 +0900 | [diff] [blame] | 176 | // AIDL files under these paths are mixture of public and private ones. |
| 177 | // They shouldn't be exported across module boundaries. |
Artur Satayev | 005d735 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 178 | java_defaults { |
Jiyong Park | 0c6dc7b | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 179 | name: "framework-aidl-export-defaults", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 180 | aidl: { |
Jiyong Park | 7e1339e | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 181 | export_include_dirs: [ |
| 182 | "core/java", |
| 183 | "drm/java", |
| 184 | "graphics/java", |
David Zeuthen | 045b6de | 2019-10-29 15:15:18 -0400 | [diff] [blame] | 185 | "identity/java", |
Jiyong Park | 7e1339e | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 186 | "keystore/java", |
| 187 | "location/java", |
| 188 | "lowpan/java", |
| 189 | "media/java", |
Jiyong Park | 7e1339e | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 190 | "media/mca/effect/java", |
| 191 | "media/mca/filterfw/java", |
| 192 | "media/mca/filterpacks/java", |
Amit Mahajan | 153d31b | 2019-10-07 17:41:26 -0700 | [diff] [blame] | 193 | "mms/java", |
Jiyong Park | 7e1339e | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 194 | "opengl/java", |
| 195 | "rs/java", |
| 196 | "sax/java", |
| 197 | "telecomm/java", |
Anton Hansson | 5f208a2 | 2020-03-07 11:40:10 +0000 | [diff] [blame] | 198 | |
Sungsoo Lim | 895f4f6 | 2020-04-08 11:21:36 +0900 | [diff] [blame] | 199 | "apex/media/aidl/stable", |
Anton Hansson | 5f208a2 | 2020-03-07 11:40:10 +0000 | [diff] [blame] | 200 | // TODO(b/147699819): remove this |
| 201 | "telephony/java", |
Jiyong Park | 7e1339e | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 202 | ], |
Jiyong Park | 0c6dc7b | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 203 | }, |
| 204 | } |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 205 | |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 206 | // Collection of classes that are generated from non-Java files that are not listed in |
| 207 | // framework_srcs. These have no or very limited dependency to the framework. |
| 208 | java_library { |
| 209 | name: "framework-internal-utils", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 210 | static_libs: [ |
Dario Freni | d8bf22e | 2018-08-31 14:18:04 +0100 | [diff] [blame] | 211 | "apex_aidl_interface-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 212 | "framework-protos", |
Peiyong Lin | b967a4c | 2020-07-27 22:16:13 -0700 | [diff] [blame] | 213 | "updatable-driver-protos", |
Kelvin Zhang | a48c18e | 2021-04-12 17:23:51 -0400 | [diff] [blame] | 214 | "ota_metadata_proto_java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 215 | "android.hidl.base-V1.0-java", |
| 216 | "android.hardware.cas-V1.0-java", |
Henry Fang | 43cab92 | 2019-12-27 16:50:20 -0800 | [diff] [blame] | 217 | "android.hardware.cas-V1.1-java", |
| 218 | "android.hardware.cas-V1.2-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 219 | "android.hardware.contexthub-V1.0-java", |
Anthony Stange | 521a905 | 2020-02-07 18:45:47 -0500 | [diff] [blame] | 220 | "android.hardware.contexthub-V1.1-java", |
Yu-Han Yang | 9fe06dd | 2019-11-18 16:23:31 -0800 | [diff] [blame] | 221 | "android.hardware.gnss-V1.0-java", |
Yu-Han Yang | ad03c47 | 2020-01-14 15:31:01 -0800 | [diff] [blame] | 222 | "android.hardware.gnss-V2.1-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 223 | "android.hardware.health-V1.0-java-constants", |
Steven Moreland | e0dde65 | 2019-01-24 12:03:26 -0800 | [diff] [blame] | 224 | "android.hardware.radio-V1.0-java", |
| 225 | "android.hardware.radio-V1.1-java", |
| 226 | "android.hardware.radio-V1.2-java", |
| 227 | "android.hardware.radio-V1.3-java", |
| 228 | "android.hardware.radio-V1.4-java", |
Sarah Chin | e138c5e | 2019-11-05 13:30:10 -0800 | [diff] [blame] | 229 | "android.hardware.radio-V1.5-java", |
Daniel Bright | bd26ad2 | 2020-09-02 17:10:54 -0700 | [diff] [blame] | 230 | "android.hardware.radio-V1.6-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 231 | "android.hardware.thermal-V1.0-java-constants", |
Wei Wang | fb21bd8 | 2019-01-10 14:16:23 -0800 | [diff] [blame] | 232 | "android.hardware.thermal-V1.0-java", |
Wei Wang | bad7c20 | 2018-11-01 11:57:39 -0700 | [diff] [blame] | 233 | "android.hardware.thermal-V1.1-java", |
| 234 | "android.hardware.thermal-V2.0-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 235 | "android.hardware.tv.input-V1.0-java-constants", |
shubang | 7e849b0 | 2019-10-18 19:36:25 -0700 | [diff] [blame] | 236 | "android.hardware.tv.tuner-V1.0-java-constants", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 237 | "android.hardware.usb-V1.0-java-constants", |
| 238 | "android.hardware.usb-V1.1-java-constants", |
Badhri Jagan Sridharan | e966a38 | 2018-12-09 14:49:38 -0800 | [diff] [blame] | 239 | "android.hardware.usb-V1.2-java-constants", |
Steven Moreland | e0dde65 | 2019-01-24 12:03:26 -0800 | [diff] [blame] | 240 | "android.hardware.usb.gadget-V1.0-java", |
Michael Wright | f268bf5 | 2018-02-07 23:23:34 +0000 | [diff] [blame] | 241 | "android.hardware.vibrator-V1.0-java", |
| 242 | "android.hardware.vibrator-V1.1-java", |
| 243 | "android.hardware.vibrator-V1.2-java", |
Harpreet "Eli" Sangha | a456f08 | 2018-12-14 12:06:10 +0900 | [diff] [blame] | 244 | "android.hardware.vibrator-V1.3-java", |
Michael Sun | d523796 | 2020-11-06 03:28:14 +0000 | [diff] [blame] | 245 | "android.system.suspend.control.internal-java", |
arangelov | 1ab6149 | 2018-11-22 13:56:50 +0000 | [diff] [blame] | 246 | "devicepolicyprotosnano", |
Inseob Kim | 617a722 | 2019-07-30 18:23:26 +0900 | [diff] [blame] | 247 | |
| 248 | "com.android.sysprop.apex", |
Nikita Ioffe | 9c4b57255 | 2020-02-06 23:17:17 +0000 | [diff] [blame] | 249 | "com.android.sysprop.init", |
Alexander Mishkovets | 77f6bc8 | 2020-07-14 19:14:10 +0200 | [diff] [blame] | 250 | "com.android.sysprop.localization", |
Inseob Kim | 617a722 | 2019-07-30 18:23:26 +0900 | [diff] [blame] | 251 | "PlatformProperties", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 252 | ], |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 253 | sdk_version: "core_platform", |
| 254 | installable: false, |
| 255 | } |
| 256 | |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 257 | java_library { |
Jiyong Park | c893b46 | 2019-10-28 15:33:08 +0900 | [diff] [blame] | 258 | name: "framework-minus-apex", |
Anton Hansson | 3e20672 | 2020-09-07 14:41:30 +0100 | [diff] [blame] | 259 | defaults: ["framework-aidl-export-defaults"], |
| 260 | srcs: [ |
| 261 | ":framework-non-updatable-sources", |
Remi NGUYEN VAN | c15d99e | 2021-01-28 13:37:03 +0900 | [diff] [blame] | 262 | ":framework-connectivity-sources", |
Anton Hansson | 3e20672 | 2020-09-07 14:41:30 +0100 | [diff] [blame] | 263 | "core/java/**/*.logtags", |
| 264 | ], |
Anton Hansson | 3e20672 | 2020-09-07 14:41:30 +0100 | [diff] [blame] | 265 | aidl: { |
| 266 | generate_get_transaction_name: true, |
| 267 | }, |
| 268 | dxflags: [ |
| 269 | "--core-library", |
| 270 | "--multi-dex", |
| 271 | ], |
Jiyong Park | c893b46 | 2019-10-28 15:33:08 +0900 | [diff] [blame] | 272 | installable: true, |
Anton Hansson | 1461c6e | 2021-04-12 18:24:01 +0100 | [diff] [blame] | 273 | jarjar_rules: "framework-jarjar-rules.txt", |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 274 | javac_shard_size: 150, |
Anton Hansson | 3e20672 | 2020-09-07 14:41:30 +0100 | [diff] [blame] | 275 | plugins: [ |
| 276 | "view-inspector-annotation-processor", |
| 277 | "staledataclass-annotation-processor", |
| 278 | ], |
atrost | b9c3450 | 2019-08-05 12:22:18 +0100 | [diff] [blame] | 279 | required: [ |
| 280 | "framework-platform-compat-config", |
Anton Hansson | 3e20672 | 2020-09-07 14:41:30 +0100 | [diff] [blame] | 281 | // TODO: remove gps_debug and protolog.conf.json when the build system propagates "required" properly. |
| 282 | "gps_debug.conf", |
Victor Chang | a4fae27 | 2020-10-30 12:14:34 +0000 | [diff] [blame] | 283 | "icu4j-platform-compat-config", |
Anton Hansson | 3e20672 | 2020-09-07 14:41:30 +0100 | [diff] [blame] | 284 | "protolog.conf.json.gz", |
atrost | 86895aa | 2019-08-19 16:51:15 +0100 | [diff] [blame] | 285 | "services-platform-compat-config", |
Ivan Chiang | 3cb1cbd | 2020-02-18 10:50:10 +0800 | [diff] [blame] | 286 | "documents-ui-compat-config", |
atrost | b9c3450 | 2019-08-05 12:22:18 +0100 | [diff] [blame] | 287 | ], |
Anton Hansson | 3e20672 | 2020-09-07 14:41:30 +0100 | [diff] [blame] | 288 | libs: [ |
| 289 | "app-compat-annotations", |
| 290 | "ext", |
| 291 | "framework-updatable-stubs-module_libs_api", |
| 292 | "unsupportedappusage", |
| 293 | ], |
| 294 | sdk_version: "core_platform", |
Tobias Thierer | 17d0c59 | 2019-11-22 16:33:18 +0000 | [diff] [blame] | 295 | static_libs: [ |
Daulet Zhanguzin | 59444d5 | 2021-01-25 19:43:53 +0000 | [diff] [blame] | 296 | "bouncycastle-repackaged-unbundled", |
Anton Hansson | 3e20672 | 2020-09-07 14:41:30 +0100 | [diff] [blame] | 297 | "framework-internal-utils", |
Tobias Thierer | 8296853 | 2019-11-29 19:39:45 +0000 | [diff] [blame] | 298 | // If MimeMap ever becomes its own APEX, then this dependency would need to be removed |
| 299 | // in favor of an API stubs dependency in java_library "framework" below. |
Tobias Thierer | 17d0c59 | 2019-11-22 16:33:18 +0000 | [diff] [blame] | 300 | "mimemap", |
Chiachang Wang | d5726c1 | 2020-11-02 16:51:24 +0800 | [diff] [blame] | 301 | "modules-utils-os", |
Tobias Thierer | 17d0c59 | 2019-11-22 16:33:18 +0000 | [diff] [blame] | 302 | ], |
Jiyong Park | c893b46 | 2019-10-28 15:33:08 +0900 | [diff] [blame] | 303 | // For backwards compatibility. |
| 304 | stem: "framework", |
Jiyong Park | 79242c2 | 2019-12-09 14:45:07 +0900 | [diff] [blame] | 305 | apex_available: ["//apex_available:platform"], |
markchien | 8cf2a55 | 2020-02-14 11:55:48 +0800 | [diff] [blame] | 306 | visibility: [ |
Jiyong Park | 212d2e8 | 2020-01-03 21:07:38 +0900 | [diff] [blame] | 307 | "//frameworks/base", |
Remi NGUYEN VAN | c15d99e | 2021-01-28 13:37:03 +0900 | [diff] [blame] | 308 | // TODO: remove when framework-connectivity can build against API |
| 309 | "//frameworks/base/packages/Connectivity/framework", |
markchien | 8cf2a55 | 2020-02-14 11:55:48 +0800 | [diff] [blame] | 310 | // TODO(b/147128803) remove the below lines |
Jiyong Park | 212d2e8 | 2020-01-03 21:07:38 +0900 | [diff] [blame] | 311 | "//frameworks/base/apex/blobstore/framework", |
| 312 | "//frameworks/base/apex/jobscheduler/framework", |
markchien | 8cf2a55 | 2020-02-14 11:55:48 +0800 | [diff] [blame] | 313 | "//frameworks/base/packages/Tethering/tests/unit", |
Baligh Uddin | ff8ff12 | 2020-10-29 02:11:55 +0000 | [diff] [blame] | 314 | "//packages/modules/Connectivity/Tethering/tests/unit", |
markchien | 8cf2a55 | 2020-02-14 11:55:48 +0800 | [diff] [blame] | 315 | ], |
Jiyong Park | c893b46 | 2019-10-28 15:33:08 +0900 | [diff] [blame] | 316 | } |
| 317 | |
| 318 | // This "framework" module is NOT installed to the device. It's |
| 319 | // "framework-minus-apex" that gets installed to the device. Note that |
| 320 | // the filename is still framework.jar (via the stem property) for |
| 321 | // compatibility reason. The purpose of this module is to provide |
| 322 | // framework APIs (both public and private) for bundled apps. |
| 323 | // "framework-minus-apex" can't be used for the purpose because 1) |
| 324 | // many apps have already hardcoded the name "framework" and |
| 325 | // 2) it lacks API symbols from updatable modules - as it's clear from |
| 326 | // its suffix "-minus-apex". |
| 327 | java_library { |
| 328 | name: "framework", |
| 329 | defaults: ["framework-aidl-export-defaults"], |
| 330 | installable: false, // this lib is a build-only library |
| 331 | static_libs: [ |
Malcolm Chen | c799180 | 2020-03-16 15:28:35 -0700 | [diff] [blame] | 332 | "app-compat-annotations", |
Jiyong Park | c893b46 | 2019-10-28 15:33:08 +0900 | [diff] [blame] | 333 | "framework-minus-apex", |
Anton Hansson | 5f208a2 | 2020-03-07 11:40:10 +0000 | [diff] [blame] | 334 | "framework-updatable-stubs-module_libs_api", |
Jiyong Park | c893b46 | 2019-10-28 15:33:08 +0900 | [diff] [blame] | 335 | ], |
| 336 | sdk_version: "core_platform", |
Jiyong Park | 79242c2 | 2019-12-09 14:45:07 +0900 | [diff] [blame] | 337 | apex_available: ["//apex_available:platform"], |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 338 | } |
| 339 | |
atrost | b9c3450 | 2019-08-05 12:22:18 +0100 | [diff] [blame] | 340 | platform_compat_config { |
| 341 | name: "framework-platform-compat-config", |
Artur Satayev | 1503d31 | 2020-03-25 15:36:55 +0000 | [diff] [blame] | 342 | src: ":framework-minus-apex", |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 343 | } |
| 344 | |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 345 | filegroup { |
evitayan | e22e47f | 2019-12-30 16:05:38 -0800 | [diff] [blame] | 346 | name: "framework-ike-shared-srcs", |
Baligh Uddin | b7ec5bb | 2020-05-27 19:22:36 +0000 | [diff] [blame] | 347 | visibility: ["//packages/modules/IPsec"], |
evitayan | e22e47f | 2019-12-30 16:05:38 -0800 | [diff] [blame] | 348 | srcs: [ |
| 349 | "core/java/android/net/annotations/PolicyDirection.java", |
evitayan | e9cc494 | 2020-03-03 17:14:47 -0800 | [diff] [blame] | 350 | "core/java/com/android/internal/util/HexDump.java", |
evitayan | 0efc740 | 2019-12-20 17:55:57 -0800 | [diff] [blame] | 351 | "core/java/com/android/internal/util/IState.java", |
| 352 | "core/java/com/android/internal/util/State.java", |
| 353 | "core/java/com/android/internal/util/StateMachine.java", |
Yan Yan | a3e954f | 2020-11-09 00:09:39 -0800 | [diff] [blame] | 354 | "services/core/java/com/android/server/vcn/util/PersistableBundleUtils.java", |
evitayan | 996aa2a | 2019-12-30 11:19:47 -0800 | [diff] [blame] | 355 | "telephony/java/android/telephony/Annotation.java", |
evitayan | e22e47f | 2019-12-30 16:05:38 -0800 | [diff] [blame] | 356 | ], |
| 357 | } |
| 358 | |
| 359 | filegroup { |
Remi NGUYEN VAN | e88516f | 2019-01-20 09:35:10 +0900 | [diff] [blame] | 360 | name: "framework-networkstack-shared-srcs", |
| 361 | srcs: [ |
| 362 | // TODO: remove these annotations as soon as we can use andoid.support.annotations.* |
Chalard Jean | 9521351 | 2019-01-30 21:04:58 +0900 | [diff] [blame] | 363 | ":framework-annotations", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 364 | "core/java/android/net/DhcpResults.java", |
Remi NGUYEN VAN | e88516f | 2019-01-20 09:35:10 +0900 | [diff] [blame] | 365 | "core/java/android/util/LocalLog.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 366 | "core/java/com/android/internal/util/HexDump.java", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 367 | "core/java/com/android/internal/util/IndentingPrintWriter.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 368 | "core/java/com/android/internal/util/IState.java", |
| 369 | "core/java/com/android/internal/util/MessageUtils.java", |
| 370 | "core/java/com/android/internal/util/Preconditions.java", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 371 | "core/java/com/android/internal/util/RingBufferIndices.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 372 | "core/java/com/android/internal/util/State.java", |
| 373 | "core/java/com/android/internal/util/StateMachine.java", |
| 374 | "core/java/com/android/internal/util/WakeupMessage.java", |
johnson.yeh | 095b7a0 | 2019-12-19 20:30:34 +0800 | [diff] [blame] | 375 | "core/java/com/android/internal/util/TokenBucket.java", |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 376 | ], |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 377 | } |
| 378 | |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 379 | // Build ext.jar |
| 380 | // ============================================================ |
| 381 | java_library { |
| 382 | name: "ext", |
Colin Cross | a12c0f5 | 2018-06-27 11:00:11 -0700 | [diff] [blame] | 383 | installable: true, |
Paul Duffin | 8fcace4 | 2019-06-12 13:47:18 +0100 | [diff] [blame] | 384 | sdk_version: "core_platform", |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 385 | static_libs: [ |
| 386 | "libphonenumber-platform", |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 387 | "tagsoup", |
Ricky Wai | 0d1bc33 | 2017-10-31 14:31:01 +0000 | [diff] [blame] | 388 | "rappor", |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 389 | ], |
| 390 | dxflags: ["--core-library"], |
| 391 | } |
| 392 | |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 393 | // utility classes statically linked into framework-wifi and dynamically linked |
| 394 | // into wifi-service |
| 395 | java_library { |
| 396 | name: "framework-wifi-util-lib", |
Anton Hansson | 5a088e0 | 2020-03-31 18:09:01 +0100 | [diff] [blame] | 397 | sdk_version: "module_current", |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 398 | srcs: [ |
| 399 | "core/java/android/content/pm/BaseParceledListSlice.java", |
| 400 | "core/java/android/content/pm/ParceledListSlice.java", |
David Su | 369c920 | 2020-01-09 18:09:56 -0800 | [diff] [blame] | 401 | "core/java/android/os/HandlerExecutor.java", |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 402 | "core/java/com/android/internal/util/AsyncChannel.java", |
| 403 | "core/java/com/android/internal/util/AsyncService.java", |
| 404 | "core/java/com/android/internal/util/Protocol.java", |
| 405 | "core/java/com/android/internal/util/Preconditions.java", |
David Su | 369c920 | 2020-01-09 18:09:56 -0800 | [diff] [blame] | 406 | "telephony/java/android/telephony/Annotation.java", |
David Su | 298cd36 | 2020-01-17 19:02:49 +0000 | [diff] [blame] | 407 | ":net-utils-framework-wifi-common-srcs", |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 408 | ], |
| 409 | libs: [ |
| 410 | "framework-annotations-lib", |
Remi NGUYEN VAN | c15d99e | 2021-01-28 13:37:03 +0900 | [diff] [blame] | 411 | "framework-connectivity", |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 412 | "unsupportedappusage", |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 413 | ], |
David Su | 57bca31 | 2020-04-21 19:49:32 -0700 | [diff] [blame] | 414 | visibility: [ |
| 415 | "//frameworks/base/wifi", |
| 416 | "//frameworks/base/services/net", |
Baligh Uddin | 6bd6a56 | 2020-12-23 22:53:04 +0000 | [diff] [blame] | 417 | "//packages/modules/Wifi/framework", |
David Su | 57bca31 | 2020-04-21 19:49:32 -0700 | [diff] [blame] | 418 | ], |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 419 | } |
| 420 | |
Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 421 | // TODO(b/145644363): move this to under StubLibraries.bp or ApiDocs.bp |
| 422 | metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " + |
Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 423 | "--hide-package com.android.server " + |
Hayden Gomes | c164f6a | 2020-11-05 16:28:21 -0800 | [diff] [blame] | 424 | "--hide-package android.audio.policy.configuration.V7_0 " + |
Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 425 | "--error UnhiddenSystemApi " + |
| 426 | "--hide RequiresPermission " + |
| 427 | "--hide CallbackInterface " + |
| 428 | "--hide MissingPermission --hide BroadcastBehavior " + |
| 429 | "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " + |
| 430 | "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " + |
Makoto Onuki | 7821658 | 2020-05-26 10:55:53 -0700 | [diff] [blame] | 431 | "--error NoSettingsProvider " + |
Aurimas Liutikas | 1f76a5a | 2019-11-20 17:51:42 -0800 | [diff] [blame] | 432 | "--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.* " + |
| 433 | "--api-lint-ignore-prefix android.icu. " + |
| 434 | "--api-lint-ignore-prefix java. " + |
| 435 | "--api-lint-ignore-prefix junit. " + |
| 436 | "--api-lint-ignore-prefix org. " |
Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 437 | |
Anton Hansson | 76ac4cc | 2021-05-05 19:22:52 +0100 | [diff] [blame] | 438 | packages_to_document = [ |
| 439 | "android", |
| 440 | "dalvik", |
| 441 | "java", |
| 442 | "javax", |
| 443 | "junit", |
| 444 | "org.apache.http", |
| 445 | "org.json", |
| 446 | "org.w3c.dom", |
| 447 | "org.xml.sax", |
| 448 | "org.xmlpull", |
| 449 | ] |
| 450 | |
Anton Hansson | 77ff72f | 2021-03-30 10:11:22 +0100 | [diff] [blame] | 451 | filegroup { |
Anton Hansson | c7f5e7d | 2021-05-05 10:32:31 +0100 | [diff] [blame] | 452 | name: "android-non-updatable-stub-sources", |
Anton Hansson | 77ff72f | 2021-03-30 10:11:22 +0100 | [diff] [blame] | 453 | srcs: [ |
Anton Hansson | a08dc69 | 2021-03-30 10:31:15 +0100 | [diff] [blame] | 454 | ":framework-mime-sources", // mimemap builds separately but has no separate droidstubs. |
Anton Hansson | 77ff72f | 2021-03-30 10:11:22 +0100 | [diff] [blame] | 455 | ":framework-non-updatable-sources", |
| 456 | ":opt-telephony-srcs", |
| 457 | ":opt-net-voip-srcs", |
| 458 | "core/java/**/*.logtags", |
| 459 | "**/package.html", |
| 460 | ], |
| 461 | visibility: ["//visibility:private"], |
| 462 | } |
| 463 | |
Anton Hansson | c7f5e7d | 2021-05-05 10:32:31 +0100 | [diff] [blame] | 464 | // These defaults are used for both the jar stubs and the doc stubs. |
| 465 | stubs_defaults { |
| 466 | name: "android-non-updatable-stubs-defaults", |
| 467 | srcs: [":android-non-updatable-stub-sources"], |
| 468 | sdk_version: "none", |
| 469 | system_modules: "none", |
| 470 | java_version: "1.8", |
| 471 | arg_files: ["core/res/AndroidManifest.xml"], |
| 472 | // TODO(b/147699819): remove below aidl includes. |
| 473 | aidl: { |
| 474 | local_include_dirs: [ |
| 475 | "apex/media/aidl/stable", |
| 476 | // TODO: move to include-dirs for packages/modules/Connectivity when this moves out of |
| 477 | // frameworks/base |
| 478 | "packages/Connectivity/framework/aidl-export", |
| 479 | "telephony/java", |
| 480 | ], |
| 481 | }, |
| 482 | // These are libs from framework-internal-utils that are required (i.e. being referenced) |
| 483 | // from framework-non-updatable-sources. Add more here when there's a need. |
| 484 | // DO NOT add the entire framework-internal-utils. It might cause unnecessary circular |
| 485 | // dependencies gets bigger. |
| 486 | libs: [ |
| 487 | "android.hardware.cas-V1.2-java", |
| 488 | "android.hardware.health-V1.0-java-constants", |
| 489 | "android.hardware.radio-V1.5-java", |
| 490 | "android.hardware.radio-V1.6-java", |
| 491 | "android.hardware.thermal-V1.0-java-constants", |
| 492 | "android.hardware.thermal-V2.0-java", |
| 493 | "android.hardware.tv.input-V1.0-java-constants", |
| 494 | "android.hardware.tv.tuner-V1.0-java-constants", |
| 495 | "android.hardware.usb-V1.0-java-constants", |
| 496 | "android.hardware.usb-V1.1-java-constants", |
| 497 | "android.hardware.usb.gadget-V1.0-java", |
| 498 | "android.hardware.vibrator-V1.3-java", |
| 499 | "framework-protos", |
Anton Hansson | 4e86dca | 2021-05-07 16:32:10 +0100 | [diff] [blame] | 500 | "art.module.public.api", |
Anton Hansson | c7f5e7d | 2021-05-05 10:32:31 +0100 | [diff] [blame] | 501 | // There are a few classes from modules used by the core that |
| 502 | // need to be resolved by metalava. We use a prebuilt stub of the |
| 503 | // full sdk to ensure we can resolve them. If a new class gets added, |
| 504 | // the prebuilts/sdk/current needs to be updated. |
| 505 | "sdk_system_current_android", |
| 506 | // NOTE: The below can be removed once the prebuilt stub contains IKE. |
| 507 | "sdk_system_current_android.net.ipsec.ike", |
| 508 | ], |
Anton Hansson | 76ac4cc | 2021-05-05 19:22:52 +0100 | [diff] [blame] | 509 | filter_packages: packages_to_document, |
Anton Hansson | c7f5e7d | 2021-05-05 10:32:31 +0100 | [diff] [blame] | 510 | high_mem: true, // Lots of sources => high memory use, see b/170701554 |
| 511 | installable: false, |
| 512 | annotations_enabled: true, |
| 513 | previous_api: ":android.api.public.latest", |
| 514 | merge_annotations_dirs: ["metalava-manual"], |
| 515 | defaults_visibility: ["//visibility:private"], |
| 516 | visibility: ["//frameworks/base/api"], |
| 517 | } |
| 518 | |
Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 519 | build = [ |
| 520 | "StubLibraries.bp", |
| 521 | "ApiDocs.bp", |
Anton Hansson | 92b6c72 | 2021-04-12 18:05:56 +0100 | [diff] [blame] | 522 | "ProtoLibraries.bp", |
Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 523 | ] |