| 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 |
|
| 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 |
|
| 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-MIT", |
| 54 |
"SPDX-license-identifier-Unicode-DFS", |
| 55 |
"legacy_unencumbered", |
| 56 |
], |
| 57 |
license_text: [ |
| 58 |
"NOTICE", |
| 59 |
], |
| 60 |
} |
| 61 |
|
| 62 |
filegroup { |
| 63 |
name: "framework-non-updatable-sources", |
| 64 |
srcs: [ |
| 65 |
// Java/AIDL sources under frameworks/base |
| 66 |
":framework-annotations", |
| 67 |
":framework-blobstore-sources", |
| 68 |
":framework-core-sources", |
| 69 |
":framework-drm-sources", |
| 70 |
":framework-graphics-nonupdatable-sources", |
| 71 |
":framework-jobscheduler-sources", // jobscheduler is not a module for R |
| 72 |
":framework-keystore-sources", |
| 73 |
":framework-identity-sources", |
| 74 |
":framework-location-sources", |
| 75 |
":framework-mca-effect-sources", |
| 76 |
":framework-mca-filterfw-sources", |
| 77 |
":framework-mca-filterpacks-sources", |
| 78 |
":framework-media-non-updatable-sources", |
| 79 |
":framework-mms-sources", |
| 80 |
":framework-omapi-sources", |
| 81 |
":framework-opengl-sources", |
| 82 |
":framework-rs-sources", |
| 83 |
":framework-sax-sources", |
| 84 |
":framework-telecomm-sources", |
| 85 |
":framework-telephony-common-sources", |
| 86 |
":framework-telephony-sources", |
| 87 |
":framework-vcn-util-sources", |
| 88 |
":framework-wifi-annotations", |
| 89 |
":framework-wifi-non-updatable-sources", |
| 90 |
":PacProcessor-aidl-sources", |
| 91 |
":ProxyHandler-aidl-sources", |
| 92 |
":net-utils-framework-common-srcs", |
| 93 |
|
| 94 |
// AIDL from frameworks/base/native/ |
| 95 |
":platform-compat-native-aidl", |
| 96 |
|
| 97 |
// AIDL sources from external directories |
| 98 |
":android.hardware.gnss-V2-java-source", |
| 99 |
":android.hardware.graphics.common-V3-java-source", |
| 100 |
":android.hardware.security.keymint-V3-java-source", |
| 101 |
":android.hardware.security.secureclock-V1-java-source", |
| 102 |
":android.hardware.tv.tuner-V1-java-source", |
| 103 |
":android.security.apc-java-source", |
| 104 |
":android.security.authorization-java-source", |
| 105 |
":android.security.legacykeystore-java-source", |
| 106 |
":android.security.maintenance-java-source", |
| 107 |
":android.security.metrics-java-source", |
| 108 |
":android.system.keystore2-V3-java-source", |
| 109 |
":android.hardware.cas-V1-java-source", |
| 110 |
":credstore_aidl", |
| 111 |
":dumpstate_aidl", |
| 112 |
":framework_native_aidl", |
| 113 |
":gatekeeper_aidl", |
| 114 |
":gsiservice_aidl", |
| 115 |
":guiconstants_aidl", |
| 116 |
":idmap2_aidl", |
| 117 |
":idmap2_core_aidl", |
| 118 |
":incidentcompanion_aidl", |
| 119 |
":inputconstants_aidl", |
| 120 |
":installd_aidl", |
| 121 |
":libaudioclient_aidl", |
| 122 |
":libbinder_aidl", |
| 123 |
":libcamera_client_aidl", |
| 124 |
":libcamera_client_framework_aidl", |
| 125 |
":libupdate_engine_aidl", |
| 126 |
":logd_aidl", |
| 127 |
":resourcemanager_aidl", |
| 128 |
":storaged_aidl", |
| 129 |
":vold_aidl", |
| 130 |
":deviceproductinfoconstants_aidl", |
| 131 |
|
| 132 |
// For the generated R.java and Manifest.java |
| 133 |
":framework-res{.aapt.srcjar}", |
| 134 |
|
| 135 |
// etc. |
| 136 |
":framework-javastream-protos", |
| 137 |
":statslog-framework-java-gen", // FrameworkStatsLog.java |
| 138 |
":audio_policy_configuration_V7_0", |
| 139 |
], |
| 140 |
} |
| 141 |
|
| 142 |
java_library { |
| 143 |
name: "framework-all", |
| 144 |
installable: false, |
| 145 |
static_libs: [ |
| 146 |
"all-framework-module-impl", |
| 147 |
"framework-minus-apex", |
| 148 |
], |
| 149 |
apex_available: ["//apex_available:platform"], |
| 150 |
sdk_version: "core_platform", |
| 151 |
visibility: [ |
| 152 |
// DO NOT ADD ANY MORE ENTRIES TO THIS LIST |
| 153 |
"//external/robolectric-shadows:__subpackages__", |
| 154 |
//This will eventually replace the item above, and serves the |
| 155 |
//same purpose. |
| 156 |
"//external/robolectric:__subpackages__", |
| 157 |
"//frameworks/layoutlib:__subpackages__", |
| 158 |
], |
| 159 |
} |
| 160 |
|
| 161 |
// AIDL files under these paths are mixture of public and private ones. |
| 162 |
// They shouldn't be exported across module boundaries. |
| 163 |
java_defaults { |
| 164 |
name: "framework-aidl-export-defaults", |
| 165 |
aidl: { |
| 166 |
export_include_dirs: [ |
| 167 |
"core/java", |
| 168 |
"drm/java", |
| 169 |
"graphics/java", |
| 170 |
"identity/java", |
| 171 |
"keystore/java", |
| 172 |
"location/java", |
| 173 |
"media/java", |
| 174 |
"media/mca/effect/java", |
| 175 |
"media/mca/filterfw/java", |
| 176 |
"media/mca/filterpacks/java", |
| 177 |
"mms/java", |
| 178 |
"opengl/java", |
| 179 |
"rs/java", |
| 180 |
"sax/java", |
| 181 |
"telecomm/java", |
| 182 |
|
| 183 |
// TODO(b/147699819): remove this |
| 184 |
"telephony/java", |
| 185 |
], |
| 186 |
}, |
| 187 |
} |
| 188 |
|
| 189 |
// Collection of classes that are generated from non-Java files that are not listed in |
| 190 |
// framework_srcs. These have no or very limited dependency to the framework. |
| 191 |
java_library { |
| 192 |
name: "framework-internal-utils", |
| 193 |
static_libs: [ |
| 194 |
"apex_aidl_interface-java", |
| 195 |
"packagemanager_aidl-java", |
| 196 |
"framework-protos", |
| 197 |
"updatable-driver-protos", |
| 198 |
"ota_metadata_proto_java", |
| 199 |
"android.hidl.base-V1.0-java", |
| 200 |
"android.hardware.cas-V1-java", // AIDL |
| 201 |
"android.hardware.cas-V1.0-java", |
| 202 |
"android.hardware.cas-V1.1-java", |
| 203 |
"android.hardware.cas-V1.2-java", |
| 204 |
"android.hardware.contexthub-V1.0-java", |
| 205 |
"android.hardware.contexthub-V1.1-java", |
| 206 |
"android.hardware.contexthub-V1.2-java", |
| 207 |
"android.hardware.contexthub-V1-java", |
| 208 |
"android.hardware.gnss-V1.0-java", |
| 209 |
"android.hardware.gnss-V2.1-java", |
| 210 |
"android.hardware.health-V1.0-java-constants", |
| 211 |
"android.hardware.radio-V1.0-java", |
| 212 |
"android.hardware.radio-V1.1-java", |
| 213 |
"android.hardware.radio-V1.2-java", |
| 214 |
"android.hardware.radio-V1.3-java", |
| 215 |
"android.hardware.radio-V1.4-java", |
| 216 |
"android.hardware.radio-V1.5-java", |
| 217 |
"android.hardware.radio-V1.6-java", |
| 218 |
"android.hardware.radio.data-V1-java", |
| 219 |
"android.hardware.radio.messaging-V1-java", |
| 220 |
"android.hardware.radio.modem-V1-java", |
| 221 |
"android.hardware.radio.network-V1-java", |
| 222 |
"android.hardware.radio.sim-V1-java", |
| 223 |
"android.hardware.radio.voice-V1-java", |
| 224 |
"android.hardware.thermal-V1.0-java-constants", |
| 225 |
"android.hardware.thermal-V1.0-java", |
| 226 |
"android.hardware.thermal-V1.1-java", |
| 227 |
"android.hardware.thermal-V2.0-java", |
| 228 |
"android.hardware.tv.input-V1.0-java-constants", |
| 229 |
"android.hardware.usb-V1.0-java-constants", |
| 230 |
"android.hardware.usb-V1.1-java-constants", |
| 231 |
"android.hardware.usb-V1.2-java-constants", |
| 232 |
"android.hardware.usb.gadget-V1.0-java", |
| 233 |
"android.hardware.usb.gadget-V1.1-java", |
| 234 |
"android.hardware.usb.gadget-V1.2-java", |
| 235 |
"android.hardware.vibrator-V1.0-java", |
| 236 |
"android.hardware.vibrator-V1.1-java", |
| 237 |
"android.hardware.vibrator-V1.2-java", |
| 238 |
"android.hardware.vibrator-V1.3-java", |
| 239 |
"android.hardware.vibrator-V2-java", |
| 240 |
"android.se.omapi-V1-java", |
| 241 |
"android.system.suspend.control.internal-java", |
| 242 |
"devicepolicyprotosnano", |
| 243 |
|
| 244 |
"com.android.sysprop.apex", |
| 245 |
"com.android.sysprop.init", |
| 246 |
"com.android.sysprop.localization", |
| 247 |
"PlatformProperties", |
| 248 |
], |
| 249 |
sdk_version: "core_platform", |
| 250 |
installable: false, |
| 251 |
} |
| 252 |
|
| 253 |
// NOTE: This filegroup is exposed for vendor libraries to depend on and is referenced in |
| 254 |
// documentation. Do not remove without consulting the treble/hidl teams. |
| 255 |
filegroup { |
| 256 |
name: "framework-jarjar-rules", |
| 257 |
srcs: ["framework-jarjar-rules.txt"], |
| 258 |
visibility: ["//visibility:public"], |
| 259 |
} |
| 260 |
|
| 261 |
java_defaults { |
| 262 |
name: "framework-minus-apex-defaults", |
| 263 |
defaults: [ |
| 264 |
"framework-aidl-export-defaults", |
| 265 |
"latest_android_hardware_soundtrigger3_java_static", |
| 266 |
], |
| 267 |
srcs: [ |
| 268 |
":framework-non-updatable-sources", |
| 269 |
"core/java/**/*.logtags", |
| 270 |
":apex-info-list", |
| 271 |
], |
| 272 |
aidl: { |
| 273 |
generate_get_transaction_name: true, |
| 274 |
local_include_dirs: [ |
| 275 |
"media/aidl", |
| 276 |
], |
| 277 |
include_dirs: [ |
| 278 |
"frameworks/av/aidl", |
| 279 |
"frameworks/native/libs/permission/aidl", |
| 280 |
"packages/modules/Bluetooth/framework/aidl-export", |
| 281 |
"packages/modules/Connectivity/framework/aidl-export", |
| 282 |
"packages/modules/Media/apex/aidl/stable", |
| 283 |
"hardware/interfaces/graphics/common/aidl", |
| 284 |
], |
| 285 |
}, |
| 286 |
dxflags: [ |
| 287 |
"--core-library", |
| 288 |
"--multi-dex", |
| 289 |
], |
| 290 |
jarjar_rules: ":framework-jarjar-rules", |
| 291 |
javac_shard_size: 150, |
| 292 |
plugins: [ |
| 293 |
"view-inspector-annotation-processor", |
| 294 |
"staledataclass-annotation-processor", |
| 295 |
"error_prone_android_framework", |
| 296 |
], |
| 297 |
// Exports needed for staledataclass-annotation-processor, see b/139342589. |
| 298 |
javacflags: [ |
| 299 |
"-J--add-modules=jdk.compiler", |
| 300 |
"-J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED", |
| 301 |
"-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED", |
| 302 |
"-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED", |
| 303 |
"-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED", |
| 304 |
], |
| 305 |
required: [ |
| 306 |
// TODO(b/120066492): remove default_television.xml when the build system |
| 307 |
// propagates "required" properly. |
| 308 |
"default_television.xml", |
| 309 |
"framework-platform-compat-config", |
| 310 |
// TODO(b/120066492): remove gps_debug and protolog.conf.json when the build |
| 311 |
// system propagates "required" properly. |
| 312 |
"gps_debug.conf", |
| 313 |
"icu4j-platform-compat-config", |
| 314 |
"protolog.conf.json.gz", |
| 315 |
"services-platform-compat-config", |
| 316 |
"TeleService-platform-compat-config", |
| 317 |
"documents-ui-compat-config", |
| 318 |
"calendar-provider-compat-config", |
| 319 |
"contacts-provider-platform-compat-config", |
| 320 |
], |
| 321 |
libs: [ |
| 322 |
"androidx.annotation_annotation", |
| 323 |
"app-compat-annotations", |
| 324 |
"ext", |
| 325 |
"framework-updatable-stubs-module_libs_api", |
| 326 |
"unsupportedappusage", |
| 327 |
], |
| 328 |
sdk_version: "core_platform", |
| 329 |
static_libs: [ |
| 330 |
"android.hardware.common.fmq-V1-java", |
| 331 |
"bouncycastle-repackaged-unbundled", |
| 332 |
"framework-internal-utils", |
| 333 |
// If MimeMap ever becomes its own APEX, then this dependency would need to be removed |
| 334 |
// in favor of an API stubs dependency in java_library "framework" below. |
| 335 |
"mimemap", |
| 336 |
"av-types-aidl-java", |
| 337 |
"tv_tuner_resource_manager_aidl_interface-java", |
| 338 |
"soundtrigger_middleware-aidl-java", |
| 339 |
"modules-utils-build", |
| 340 |
"modules-utils-preconditions", |
| 341 |
"modules-utils-statemachine", |
| 342 |
"modules-utils-synchronous-result-receiver", |
| 343 |
"modules-utils-os", |
| 344 |
"modules-utils-uieventlogger-interface", |
| 345 |
"framework-permission-aidl-java", |
| 346 |
"spatializer-aidl-java", |
| 347 |
"audiopolicy-types-aidl-java", |
| 348 |
], |
| 349 |
} |
| 350 |
|
| 351 |
java_library { |
| 352 |
name: "framework-minus-apex", |
| 353 |
defaults: ["framework-minus-apex-defaults"], |
| 354 |
installable: true, |
| 355 |
// For backwards compatibility. |
| 356 |
stem: "framework", |
| 357 |
apex_available: ["//apex_available:platform"], |
| 358 |
visibility: [ |
| 359 |
"//frameworks/base", |
| 360 |
// TODO(b/147128803) remove the below lines |
| 361 |
"//frameworks/base/apex/blobstore/framework", |
| 362 |
"//frameworks/base/apex/jobscheduler/framework", |
| 363 |
"//frameworks/base/packages/Tethering/tests/unit", |
| 364 |
"//packages/modules/Connectivity/Tethering/tests/unit", |
| 365 |
], |
| 366 |
lint: { |
| 367 |
extra_check_modules: ["AndroidFrameworkLintChecker"], |
| 368 |
}, |
| 369 |
errorprone: { |
| 370 |
javacflags: [ |
| 371 |
"-Xep:AndroidFrameworkBinderIdentity:ERROR", |
| 372 |
"-Xep:AndroidFrameworkCompatChange:ERROR", |
| 373 |
"-Xep:AndroidFrameworkUid:ERROR", |
| 374 |
], |
| 375 |
}, |
| 376 |
} |
| 377 |
|
| 378 |
java_library { |
| 379 |
name: "framework-minus-apex-intdefs", |
| 380 |
defaults: ["framework-minus-apex-defaults"], |
| 381 |
plugins: ["intdef-annotation-processor"], |
| 382 |
|
| 383 |
// Errorprone and android lint will already run on framework-minus-apex, don't rerun them on |
| 384 |
// the intdefs version in order to speed up the build. |
| 385 |
errorprone: { |
| 386 |
enabled: false, |
| 387 |
}, |
| 388 |
lint: { |
| 389 |
enabled: false, |
| 390 |
}, |
| 391 |
} |
| 392 |
|
| 393 |
// This "framework" module is NOT installed to the device. It's |
| 394 |
// "framework-minus-apex" that gets installed to the device. Note that |
| 395 |
// the filename is still framework.jar (via the stem property) for |
| 396 |
// compatibility reason. The purpose of this module is to provide |
| 397 |
// framework APIs (both public and private) for bundled apps. |
| 398 |
// "framework-minus-apex" can't be used for the purpose because 1) |
| 399 |
// many apps have already hardcoded the name "framework" and |
| 400 |
// 2) it lacks API symbols from updatable modules - as it's clear from |
| 401 |
// its suffix "-minus-apex". |
| 402 |
java_library { |
| 403 |
name: "framework", |
| 404 |
defaults: ["framework-aidl-export-defaults"], |
| 405 |
installable: false, // this lib is a build-only library |
| 406 |
static_libs: [ |
| 407 |
"app-compat-annotations", |
| 408 |
"framework-minus-apex", |
| 409 |
"framework-updatable-stubs-module_libs_api", |
| 410 |
], |
| 411 |
sdk_version: "core_platform", |
| 412 |
apex_available: ["//apex_available:platform"], |
| 413 |
} |
| 414 |
|
| 415 |
platform_compat_config { |
| 416 |
name: "framework-platform-compat-config", |
| 417 |
src: ":framework-minus-apex", |
| 418 |
} |
| 419 |
|
| 420 |
filegroup { |
| 421 |
name: "framework-ike-shared-srcs", |
| 422 |
visibility: ["//packages/modules/IPsec"], |
| 423 |
srcs: [ |
| 424 |
"core/java/com/android/internal/util/HexDump.java", |
| 425 |
"core/java/com/android/internal/util/WakeupMessage.java", |
| 426 |
"services/core/java/com/android/server/vcn/util/PersistableBundleUtils.java", |
| 427 |
"telephony/java/android/telephony/Annotation.java", |
| 428 |
], |
| 429 |
} |
| 430 |
|
| 431 |
filegroup { |
| 432 |
name: "framework-networkstack-shared-srcs", |
| 433 |
srcs: [ |
| 434 |
// TODO: remove these annotations as soon as we can use andoid.support.annotations.* |
| 435 |
":framework-annotations", |
| 436 |
":modules-utils-preconditions-srcs", |
| 437 |
"core/java/android/util/IndentingPrintWriter.java", |
| 438 |
"core/java/android/util/LocalLog.java", |
| 439 |
"core/java/com/android/internal/util/HexDump.java", |
| 440 |
"core/java/com/android/internal/util/IndentingPrintWriter.java", |
| 441 |
"core/java/com/android/internal/util/MessageUtils.java", |
| 442 |
"core/java/com/android/internal/util/RingBufferIndices.java", |
| 443 |
"core/java/com/android/internal/util/WakeupMessage.java", |
| 444 |
"core/java/com/android/internal/util/TokenBucket.java", |
| 445 |
], |
| 446 |
} |
| 447 |
|
| 448 |
// Build ext.jar |
| 449 |
// ============================================================ |
| 450 |
java_library { |
| 451 |
name: "ext", |
| 452 |
installable: true, |
| 453 |
sdk_version: "core_platform", |
| 454 |
static_libs: [ |
| 455 |
"libphonenumber-platform", |
| 456 |
"tagsoup", |
| 457 |
"rappor", |
| 458 |
], |
| 459 |
dxflags: ["--core-library"], |
| 460 |
} |
| 461 |
|
| 462 |
// utility classes statically linked into framework-wifi and dynamically linked |
| 463 |
// into wifi-service |
| 464 |
java_library { |
| 465 |
name: "framework-wifi-util-lib", |
| 466 |
sdk_version: "module_current", |
| 467 |
min_sdk_version: "30", |
| 468 |
srcs: [ |
| 469 |
"core/java/com/android/internal/util/AsyncChannel.java", |
| 470 |
"core/java/com/android/internal/util/AsyncService.java", |
| 471 |
"core/java/com/android/internal/util/Protocol.java", |
| 472 |
"telephony/java/android/telephony/Annotation.java", |
| 473 |
":net-utils-framework-wifi-common-srcs", |
| 474 |
], |
| 475 |
libs: [ |
| 476 |
"framework-annotations-lib", |
| 477 |
"framework-connectivity.stubs.module_lib", |
| 478 |
"unsupportedappusage", |
| 479 |
], |
| 480 |
visibility: [ |
| 481 |
"//frameworks/base/wifi", |
| 482 |
"//frameworks/base/services/net", |
| 483 |
"//packages/modules/Wifi/framework", |
| 484 |
], |
| 485 |
} |
| 486 |
|
| 487 |
// TODO(b/145644363): move this to under StubLibraries.bp or ApiDocs.bp |
| 488 |
metalava_framework_docs_args = "" + |
| 489 |
"--api-lint-ignore-prefix android.icu. " + |
| 490 |
"--api-lint-ignore-prefix java. " + |
| 491 |
"--api-lint-ignore-prefix junit. " + |
| 492 |
"--api-lint-ignore-prefix org. " + |
| 493 |
"--error NoSettingsProvider " + |
| 494 |
"--error UnhiddenSystemApi " + |
| 495 |
"--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.* " + |
| 496 |
"--hide BroadcastBehavior " + |
| 497 |
"--hide CallbackInterface " + |
| 498 |
"--hide DeprecationMismatch " + |
| 499 |
"--hide HiddenSuperclass " + |
| 500 |
"--hide HiddenTypeParameter " + |
| 501 |
"--hide MissingPermission " + |
| 502 |
"--hide-package android.audio.policy.configuration.V7_0 " + |
| 503 |
"--hide-package com.android.server " + |
| 504 |
"--hide RequiresPermission " + |
| 505 |
"--hide SdkConstant " + |
| 506 |
"--hide Todo " + |
| 507 |
"--hide Typo " + |
| 508 |
"--hide UnavailableSymbol " + |
| 509 |
"--manifest $(location :frameworks-base-core-AndroidManifest.xml) " |
| 510 |
|
| 511 |
packages_to_document = [ |
| 512 |
"android", |
| 513 |
"dalvik", |
| 514 |
"java", |
| 515 |
"javax", |
| 516 |
"junit", |
| 517 |
"org.apache.http", |
| 518 |
"org.json", |
| 519 |
"org.w3c.dom", |
| 520 |
"org.xml.sax", |
| 521 |
"org.xmlpull", |
| 522 |
] |
| 523 |
|
| 524 |
filegroup { |
| 525 |
name: "android-non-updatable-stub-sources", |
| 526 |
srcs: [ |
| 527 |
":framework-mime-sources", // mimemap builds separately but has no separate droidstubs. |
| 528 |
":framework-non-updatable-sources", |
| 529 |
":opt-telephony-srcs", |
| 530 |
":opt-net-voip-srcs", |
| 531 |
"core/java/**/*.logtags", |
| 532 |
"**/package.html", |
| 533 |
], |
| 534 |
visibility: ["//visibility:private"], |
| 535 |
} |
| 536 |
|
| 537 |
// Defaults for all stubs that include the non-updatable framework. These defaults do not include |
| 538 |
// module symbols, so will not compile correctly on their own. Users must add module APIs to the |
| 539 |
// classpath (or sources) somehow. |
| 540 |
stubs_defaults { |
| 541 |
name: "android-non-updatable-stubs-defaults", |
| 542 |
srcs: [":android-non-updatable-stub-sources"], |
| 543 |
sdk_version: "none", |
| 544 |
system_modules: "none", |
| 545 |
java_version: "1.8", |
| 546 |
arg_files: [":frameworks-base-core-AndroidManifest.xml"], |
| 547 |
aidl: { |
| 548 |
local_include_dirs: [ |
| 549 |
"media/aidl", |
| 550 |
"telephony/java", |
| 551 |
], |
| 552 |
include_dirs: [ |
| 553 |
"frameworks/av/aidl", |
| 554 |
"frameworks/native/libs/permission/aidl", |
| 555 |
"packages/modules/Bluetooth/framework/aidl-export", |
| 556 |
"packages/modules/Connectivity/framework/aidl-export", |
| 557 |
"packages/modules/Media/apex/aidl/stable", |
| 558 |
"hardware/interfaces/graphics/common/aidl", |
| 559 |
], |
| 560 |
}, |
| 561 |
// These are libs from framework-internal-utils that are required (i.e. being referenced) |
| 562 |
// from framework-non-updatable-sources. Add more here when there's a need. |
| 563 |
// DO NOT add the entire framework-internal-utils. It might cause unnecessary circular |
| 564 |
// dependencies gets bigger. |
| 565 |
libs: [ |
| 566 |
"android.hardware.cas-V1.2-java", |
| 567 |
"android.hardware.health-V1.0-java-constants", |
| 568 |
"android.hardware.radio-V1.5-java", |
| 569 |
"android.hardware.radio-V1.6-java", |
| 570 |
"android.hardware.thermal-V1.0-java-constants", |
| 571 |
"android.hardware.thermal-V2.0-java", |
| 572 |
"android.hardware.tv.input-V1.0-java-constants", |
| 573 |
"android.hardware.usb-V1.0-java-constants", |
| 574 |
"android.hardware.usb-V1.1-java-constants", |
| 575 |
"android.hardware.usb.gadget-V1.0-java", |
| 576 |
"android.hardware.vibrator-V1.3-java", |
| 577 |
"framework-protos", |
| 578 |
], |
| 579 |
filter_packages: packages_to_document, |
| 580 |
high_mem: true, // Lots of sources => high memory use, see b/170701554 |
| 581 |
installable: false, |
| 582 |
annotations_enabled: true, |
| 583 |
previous_api: ":android.api.public.latest", |
| 584 |
merge_annotations_dirs: ["metalava-manual"], |
| 585 |
defaults_visibility: ["//visibility:private"], |
| 586 |
visibility: ["//frameworks/base/api"], |
| 587 |
} |
| 588 |
|
| 589 |
// Defaults with module APIs in the classpath (mostly from prebuilts). |
| 590 |
// Suitable for compiling android-non-updatable. |
| 591 |
stubs_defaults { |
| 592 |
name: "module-classpath-stubs-defaults", |
| 593 |
aidl: { |
| 594 |
include_dirs: [ |
| 595 |
"packages/modules/Bluetooth/framework/aidl-export", |
| 596 |
"packages/modules/Connectivity/framework/aidl-export", |
| 597 |
"packages/modules/Media/apex/aidl/stable", |
| 598 |
], |
| 599 |
}, |
| 600 |
libs: [ |
| 601 |
"art.module.public.api", |
| 602 |
"sdk_module-lib_current_framework-tethering", |
| 603 |
"sdk_module-lib_current_framework-connectivity-t", |
| 604 |
"sdk_public_current_framework-bluetooth", |
| 605 |
// There are a few classes from modules used by the core that |
| 606 |
// need to be resolved by metalava. We use a prebuilt stub of the |
| 607 |
// full sdk to ensure we can resolve them. If a new class gets added, |
| 608 |
// the prebuilts/sdk/current needs to be updated. |
| 609 |
"sdk_system_current_android", |
| 610 |
// NOTE: The below can be removed once the prebuilt stub contains IKE. |
| 611 |
"sdk_system_current_android.net.ipsec.ike", |
| 612 |
], |
| 613 |
defaults_visibility: ["//visibility:private"], |
| 614 |
} |
| 615 |
|
| 616 |
build = [ |
| 617 |
"StubLibraries.bp", |
| 618 |
"ApiDocs.bp", |
| 619 |
"ProtoLibraries.bp", |
| 620 |
"TestProtoLibraries.bp", |
| 621 |
] |