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