xref: /aosp_15_r20/frameworks/base/Android.bp (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
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
28package {
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
46license {
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
62filegroup {
63    name: "framework-non-updatable-sources",
64    device_common_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-mca-effect-sources",
75        ":framework-mca-filterfw-sources",
76        ":framework-mca-filterpacks-sources",
77        ":framework-media-non-updatable-sources",
78        ":framework-mms-sources",
79        ":framework-omapi-sources",
80        ":framework-opengl-sources",
81        ":framework-rs-sources",
82        ":framework-sax-sources",
83        ":framework-telecomm-sources",
84        ":framework-telephony-common-sources",
85        ":framework-telephony-sources",
86        ":framework-wifi-annotations",
87        ":framework-wifi-non-updatable-sources",
88        ":PacProcessor-aidl-sources",
89        ":ProxyHandler-aidl-sources",
90        ":vcn-utils-platform-sources",
91        ":net-utils-framework-common-srcs",
92
93        // AIDL from frameworks/base/native/
94        ":platform-compat-native-aidl",
95
96        // AIDL sources from external directories
97        ":android.frameworks.location.altitude-V2-java-source",
98        ":android.hardware.biometrics.common-V4-java-source",
99        ":android.hardware.biometrics.fingerprint-V5-java-source",
100        ":android.hardware.biometrics.fingerprint.virtualhal-java-source",
101        ":android.hardware.biometrics.face.virtualhal-java-source",
102        ":android.hardware.biometrics.face-V4-java-source",
103        ":android.hardware.gnss-V2-java-source",
104        ":android.hardware.graphics.common-V3-java-source",
105        ":android.hardware.keymaster-V4-java-source",
106        ":android.hardware.radio-V4-java-source",
107        ":android.hardware.radio.data-V4-java-source",
108        ":android.hardware.radio.network-V4-java-source",
109        ":android.hardware.radio.voice-V4-java-source",
110        ":android.hardware.security.secureclock-V1-java-source",
111        ":android.hardware.thermal-V3-java-source",
112        ":android.hardware.tv.tuner-V3-java-source",
113        ":android.security.apc-java-source",
114        ":android.security.authorization-java-source",
115        ":android.security.legacykeystore-java-source",
116        ":android.security.maintenance-java-source",
117        ":android.security.metrics-java-source",
118        ":android.hardware.cas-V1-java-source",
119        ":credstore_aidl",
120        ":dumpstate_aidl",
121        ":framework_native_aidl",
122        ":gatekeeper_aidl",
123        ":gsiservice_aidl",
124        ":guiconstants_aidl",
125        ":idmap2_aidl",
126        ":idmap2_core_aidl",
127        ":incidentcompanion_aidl",
128        ":inputconstants_aidl",
129        ":installd_aidl",
130        ":libaudioclient_aidl",
131        ":libbinder_aidl",
132        ":libcamera_client_aidl",
133        ":libcamera_client_framework_aidl",
134        ":libupdate_engine_aidl",
135        ":libupdate_engine_stable-V2-java-source",
136        ":logd_aidl",
137        ":resourcemanager_aidl",
138        ":storaged_aidl",
139        ":vold_aidl",
140        ":deviceproductinfoconstants_aidl",
141
142        // For the generated R.java and Manifest.java
143        ":framework-res{.aapt.srcjar}",
144
145        // etc.
146        ":framework-javastream-protos",
147        ":statslog-framework-java-gen", // FrameworkStatsLog.java
148        ":statslog-hwui-java-gen", // HwuiStatsLog.java
149        ":audio_policy_configuration_V7_0",
150    ] + select(release_flag("RELEASE_ATTEST_MODULES"), {
151        true: [
152            ":android.hardware.security.keymint-V4-java-source",
153            ":android.system.keystore2-V5-java-source",
154        ],
155        default: [
156            ":android.hardware.security.keymint-V3-java-source",
157            ":android.system.keystore2-V4-java-source",
158        ],
159    }),
160}
161
162java_library {
163    name: "framework-all",
164    installable: false,
165    static_libs: [
166        "all-framework-module-impl",
167        "framework-minus-apex",
168    ],
169    apex_available: ["//apex_available:platform"],
170    sdk_version: "core_platform",
171    visibility: [
172        // DO NOT ADD ANY MORE ENTRIES TO THIS LIST
173        "//external/robolectric-shadows:__subpackages__",
174        //This will eventually replace the item above, and serves the
175        //same purpose.
176        "//external/robolectric:__subpackages__",
177        "//frameworks/layoutlib:__subpackages__",
178    ],
179}
180
181// AIDL files under these paths are mixture of public and private ones.
182// They shouldn't be exported across module boundaries.
183java_defaults {
184    name: "framework-aidl-export-defaults",
185    aidl: {
186        export_include_dirs: [
187            "core/java",
188            "drm/java",
189            "graphics/java",
190            "identity/java",
191            "keystore/java",
192            "media/java",
193            "media/mca/effect/java",
194            "media/mca/filterfw/java",
195            "media/mca/filterpacks/java",
196            "mms/java",
197            "opengl/java",
198            "rs/java",
199            "sax/java",
200            "telecomm/java",
201
202            // TODO(b/147699819): remove this
203            "telephony/java",
204        ],
205    },
206}
207
208// Collection of classes that are generated from non-Java files that are not listed in
209// framework_srcs. These have no or very limited dependency to the framework.
210java_library {
211    name: "framework-internal-utils",
212    defaults: [
213        "android.hardware.power-java_static",
214    ],
215    static_libs: [
216        "apex_aidl_interface-java",
217        "packagemanager_aidl-java",
218        "framework-protos",
219        "updatable-driver-protos",
220        "ota_metadata_proto_java",
221        "android.hidl.base-V1.0-java",
222        "android.hidl.manager-V1.2-java",
223        "android.hardware.cas-V1-java", // AIDL
224        "android.hardware.cas-V1.0-java",
225        "android.hardware.cas-V1.1-java",
226        "android.hardware.cas-V1.2-java",
227        "android.hardware.contexthub-V1.0-java",
228        "android.hardware.contexthub-V1.1-java",
229        "android.hardware.contexthub-V1.2-java",
230        "android.hardware.contexthub-V4-java",
231        "android.hardware.gnss-V1.0-java",
232        "android.hardware.gnss-V2.1-java",
233        "android.hardware.health-V1.0-java-constants",
234        "android.hardware.radio-V1.6-java",
235        "android.hardware.radio.data-V4-java",
236        "android.hardware.radio.ims-V3-java",
237        "android.hardware.radio.messaging-V4-java",
238        "android.hardware.radio.modem-V4-java",
239        "android.hardware.radio.network-V4-java",
240        "android.hardware.radio.sim-V4-java",
241        "android.hardware.radio.voice-V4-java",
242        "android.hardware.thermal-V1.0-java-constants",
243        "android.hardware.thermal-V1.0-java",
244        "android.hardware.thermal-V1.1-java",
245        "android.hardware.thermal-V2.0-java",
246        "android.hardware.tv.input-V1.0-java-constants",
247        "android.hardware.usb-V1.0-java-constants",
248        "android.hardware.usb-V1.1-java-constants",
249        "android.hardware.usb-V1.2-java-constants",
250        "android.hardware.usb.gadget-V1-java",
251        "android.hardware.usb.gadget-V1.0-java",
252        "android.hardware.usb.gadget-V1.1-java",
253        "android.hardware.usb.gadget-V1.2-java",
254        "android.hardware.vibrator-V1.0-java",
255        "android.hardware.vibrator-V1.1-java",
256        "android.hardware.vibrator-V1.2-java",
257        "android.hardware.vibrator-V1.3-java",
258        "android.hardware.vibrator-V3-java",
259        "android.se.omapi-V1-java",
260        "android.system.suspend.control.internal-java",
261        "devicepolicyprotosnano",
262        "ImmutabilityAnnotation",
263
264        "com.android.sysprop.localization",
265        "PlatformProperties",
266    ],
267    sdk_version: "core_platform",
268    installable: false,
269}
270
271// NOTE: This filegroup is exposed for vendor libraries to depend on and is referenced in
272// documentation. Do not remove without consulting the treble/hidl teams.
273filegroup {
274    name: "framework-jarjar-rules",
275    srcs: ["framework-jarjar-rules.txt"],
276    visibility: ["//visibility:public"],
277}
278
279java_defaults {
280    name: "framework-minus-apex-defaults",
281    defaults: [
282        "framework-aidl-export-defaults",
283        "latest_android_hardware_soundtrigger3_java_static",
284        "framework-minus-apex-aconfig-libraries",
285    ],
286    srcs: [
287        ":framework-non-updatable-sources",
288        "core/java/**/*.logtags",
289        ":apex-info-list",
290    ],
291    aidl: {
292        generate_get_transaction_name: true,
293        enforce_permissions: true,
294        enforce_permissions_exceptions: [
295            // Do not add entries to this list.
296            ":framework-annotations",
297            ":framework-blobstore-sources",
298            ":framework-core-sources",
299            ":framework-drm-sources",
300            ":framework-graphics-nonupdatable-sources",
301            ":framework-jobscheduler-sources",
302            ":framework-keystore-sources",
303            ":framework-identity-sources",
304            ":framework-mca-effect-sources",
305            ":framework-mca-filterfw-sources",
306            ":framework-mca-filterpacks-sources",
307            ":framework-media-non-updatable-sources",
308            ":framework-mms-sources",
309            ":framework-omapi-sources",
310            ":framework-opengl-sources",
311            ":framework-rs-sources",
312            ":framework-sax-sources",
313            ":framework-telecomm-sources",
314            ":framework-telephony-common-sources",
315            ":framework-telephony-sources",
316            ":framework-wifi-annotations",
317            ":framework-wifi-non-updatable-sources",
318            ":vcn-utils-platform-sources",
319            ":PacProcessor-aidl-sources",
320            ":ProxyHandler-aidl-sources",
321            ":net-utils-framework-common-srcs",
322            ":platform-compat-native-aidl",
323            ":credstore_aidl",
324            ":dumpstate_aidl",
325            ":framework_native_aidl",
326            ":gatekeeper_aidl",
327            ":gsiservice_aidl",
328            ":idmap2_aidl",
329            ":idmap2_core_aidl",
330            ":incidentcompanion_aidl",
331            ":inputconstants_aidl",
332            ":installd_aidl",
333            ":libaudioclient_aidl",
334            ":libbinder_aidl",
335            ":libcamera_client_aidl",
336            ":libcamera_client_framework_aidl",
337            ":libupdate_engine_aidl",
338            ":logd_aidl",
339            ":resourcemanager_aidl",
340            ":storaged_aidl",
341            ":vold_aidl",
342            ":deviceproductinfoconstants_aidl",
343        ],
344        local_include_dirs: [
345            "media/aidl",
346        ],
347        include_dirs: [
348            "frameworks/av/aidl",
349            "frameworks/native/libs/permission/aidl",
350            "packages/modules/Bluetooth/framework/aidl-export",
351            "packages/modules/Connectivity/framework/aidl-export",
352            "packages/modules/Media/apex/aidl/stable",
353            "hardware/interfaces/biometrics/common/aidl",
354            "hardware/interfaces/biometrics/fingerprint/aidl",
355            "hardware/interfaces/common/aidl",
356            "hardware/interfaces/common/fmq/aidl",
357            "hardware/interfaces/graphics/common/aidl",
358            "hardware/interfaces/keymaster/aidl",
359            "hardware/interfaces/power/aidl",
360            "system/hardware/interfaces/media/aidl",
361        ],
362    },
363    dxflags: [
364        "--core-library",
365        "--multi-dex",
366    ],
367    jarjar_rules: ":framework-jarjar-rules",
368    javac_shard_size: 150,
369    plugins: [
370        "cached-property-annotation-processor",
371        "view-inspector-annotation-processor",
372        "staledataclass-annotation-processor",
373        "error_prone_android_framework",
374        "systemfeatures-metadata-processor",
375    ],
376    // Exports needed for staledataclass-annotation-processor, see b/139342589.
377    javacflags: [
378        "-J--add-modules=jdk.compiler",
379        "-J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
380        "-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED",
381        "-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED",
382        "-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
383    ],
384    required: [
385        // TODO(b/120066492): remove default_television.xml when the build system
386        // propagates "required" properly.
387        "default_television.xml",
388        // TODO(b/120066492): remove gps_debug and protolog.conf.json when the build
389        // system propagates "required" properly.
390        "gps_debug.conf",
391        "framework-res",
392        // any install dependencies should go into framework-minus-apex-install-dependencies
393        // rather than here to avoid bloating incremental build time
394    ],
395    libs: [
396        "androidx.annotation_annotation",
397        "app-compat-annotations",
398        "ext",
399        "framework-updatable-stubs-module_libs_api",
400        "unsupportedappusage",
401        // TODO(b/379770939): remove prod version of flags from other containers in framework
402        "aconfig_storage_stub",
403    ],
404    sdk_version: "core_platform",
405    static_libs: [
406        "aconfig_storage_reader_java",
407        "android.hardware.common.fmq-V1-java",
408        "bouncycastle-repackaged-unbundled",
409        "com.android.sysprop.foldlockbehavior",
410        "com.android.sysprop.view",
411        "configinfra_framework_flags_java_lib",
412        "framework-internal-utils",
413        "dynamic_instrumentation_manager_aidl-java",
414        // If MimeMap ever becomes its own APEX, then this dependency would need to be removed
415        // in favor of an API stubs dependency in java_library "framework" below.
416        "mimemap",
417        "av-types-aidl-java",
418        "tv_tuner_resource_manager_aidl_interface-java",
419        "soundtrigger_middleware-aidl-java",
420        "modules-utils-binary-xml",
421        "modules-utils-build",
422        "modules-utils-fastxmlserializer",
423        "modules-utils-preconditions",
424        "modules-utils-statemachine",
425        "modules-utils-os",
426        "modules-utils-uieventlogger-interface",
427        "framework-permission-aidl-java",
428        "spatializer-aidl-java",
429        "audiopolicy-aidl-java",
430        "sounddose-aidl-java",
431        "modules-utils-expresslog",
432        "perfetto_trace_javastream_protos_jarjar",
433        "libaconfig_java_proto_nano",
434        "aconfig_device_paths_java",
435    ],
436}
437
438// Collection of non updatable unbundled jars. The list here should match
439// |non_updatable_modules| variable in frameworks/base/api/api.go.
440java_library {
441    name: "framework-non-updatable-unbundled-impl-libs",
442    static_libs: [
443        "framework-location.impl",
444    ] + select(soong_config_variable("ANDROID", "release_crashrecovery_module"), {
445        "true": [],
446        default: [
447            "framework-platformcrashrecovery.impl",
448        ],
449    }) + select(release_flag("RELEASE_ONDEVICE_INTELLIGENCE_MODULE"), {
450        true: [],
451        default: ["framework-ondeviceintelligence-platform.impl"],
452    }),
453    sdk_version: "core_platform",
454    installable: false,
455}
456
457// Separated so framework-minus-apex-defaults can be used without the libs dependency
458java_defaults {
459    name: "framework-minus-apex-with-libs-defaults",
460    defaults: ["framework-minus-apex-defaults"],
461    libs: [
462        "framework-virtualization.stubs.module_lib",
463        "framework-non-updatable-unbundled-impl-libs",
464    ],
465}
466
467java_defaults {
468    name: "framework-non-updatable-lint-defaults",
469    lint: {
470        extra_check_modules: ["AndroidFrameworkLintChecker"],
471        disabled_checks: ["ApiMightLeakAppVisibility"],
472        error_checks: [
473            "ClearIdentityCallNotFollowedByTryFinally",
474            "NestedClearCallingIdentityCalls",
475            "NonFinalTokenOfOriginalCallingIdentity",
476            "RestoreIdentityCallNotInFinallyBlock",
477            "ResultOfClearIdentityCallNotStoredInVariable",
478            "UnusedTokenOfOriginalCallingIdentity",
479            "UseOfCallerAwareMethodsWithClearedIdentity",
480        ],
481    },
482}
483
484// we are unfortunately building the turbine jar twice, but more efficient and less complex
485// than generating a similar set of stubs with metalava
486java_library {
487    name: "framework-minus-apex-headers",
488    defaults: ["framework-minus-apex-defaults"],
489    installable: false,
490    // For backwards compatibility.
491    stem: "framework",
492    apex_available: ["//apex_available:platform"],
493    visibility: [
494        "//frameworks/base:__subpackages__",
495        "//packages/modules/NeuralNetworks:__subpackages__",
496    ],
497    compile_dex: false,
498    headers_only: true,
499}
500
501java_library {
502    name: "framework-minus-apex",
503    defaults: [
504        "framework-minus-apex-with-libs-defaults",
505        "framework-non-updatable-lint-defaults",
506    ],
507    installable: true,
508    // For backwards compatibility.
509    stem: "framework",
510    apex_available: ["//apex_available:platform"],
511    visibility: [
512        "//frameworks/base",
513        "//frameworks/base/location",
514        // TODO(b/147128803) remove the below lines
515        "//frameworks/base/apex/blobstore/framework",
516        "//frameworks/base/apex/jobscheduler/framework",
517        "//frameworks/base/packages/Tethering/tests/unit",
518        "//packages/modules/Connectivity/Tethering/tests/unit",
519    ],
520    errorprone: {
521        javacflags: [
522            "-Xep:AndroidFrameworkCompatChange:ERROR",
523            "-Xep:AndroidFrameworkUid:ERROR",
524        ],
525    },
526    lint: {
527        baseline_filename: "lint-baseline.xml",
528        warning_checks: [
529            "FlaggedApi",
530        ],
531    },
532    jarjar_prefix: "com.android.internal.hidden_from_bootclasspath",
533}
534
535java_library {
536    name: "framework-minus-apex-intdefs",
537    defaults: ["framework-minus-apex-with-libs-defaults"],
538    plugins: ["intdef-annotation-processor"],
539
540    // Errorprone and android lint will already run on framework-minus-apex, don't rerun them on
541    // the intdefs version in order to speed up the build.
542    errorprone: {
543        enabled: false,
544    },
545    lint: {
546        enabled: false,
547
548    },
549}
550
551// This "framework" module is NOT installed to the device. It's
552// "framework-minus-apex" that gets installed to the device. Note that
553// the filename is still framework.jar (via the stem property) for
554// compatibility reason. The purpose of this module is to provide
555// framework APIs (both public and private) for bundled apps.
556// "framework-minus-apex" can't be used for the purpose because 1)
557// many apps have already hardcoded the name "framework" and
558// 2) it lacks API symbols from updatable modules - as it's clear from
559// its suffix "-minus-apex".
560java_library {
561    name: "framework",
562    defaults: ["framework-aidl-export-defaults"],
563    installable: false, // this lib is a build-only library
564    static_libs: [
565        "app-compat-annotations",
566        "framework-minus-apex",
567        "framework-non-updatable-unbundled-impl-libs",
568        "framework-updatable-stubs-module_libs_api",
569    ],
570    sdk_version: "core_platform",
571    apex_available: ["//apex_available:platform"],
572}
573
574java_library {
575    name: "framework-minus-apex-install-dependencies",
576    required: [
577        "framework-minus-apex",
578        "framework-platform-compat-config",
579        "framework-location-compat-config",
580        "services-platform-compat-config",
581        "icu4j-platform-compat-config",
582        "TeleService-platform-compat-config",
583        "documents-ui-compat-config",
584        "calendar-provider-compat-config",
585        "contacts-provider-platform-compat-config",
586    ] + select(soong_config_variable("ANDROID", "release_crashrecovery_module"), {
587        "true": [],
588        default: [
589            "framework-platformcrashrecovery-compat-config",
590        ],
591    }) + select(release_flag("RELEASE_ONDEVICE_INTELLIGENCE_MODULE"), {
592        true: [],
593        default: ["framework-ondeviceintelligence-platform-compat-config"],
594    }),
595}
596
597platform_compat_config {
598    name: "framework-platform-compat-config",
599    src: ":framework-minus-apex",
600}
601
602filegroup {
603    name: "framework-ike-shared-srcs",
604    visibility: ["//packages/modules/IPsec"],
605    srcs: [
606        "core/java/com/android/internal/util/HexDump.java",
607        "core/java/com/android/internal/util/WakeupMessage.java",
608        "packages/Vcn/framework-b/src/android/net/vcn/util/PersistableBundleUtils.java",
609        "telephony/java/android/telephony/Annotation.java",
610    ],
611}
612
613filegroup {
614    name: "framework-android-os-unit-testable-src",
615    srcs: [
616        "core/java/android/os/DdmSyncState.java",
617    ],
618}
619
620filegroup {
621    name: "framework-networkstack-shared-srcs",
622    srcs: [
623        ":modules-utils-preconditions-srcs",
624        "core/java/android/util/IndentingPrintWriter.java",
625        "core/java/android/util/LocalLog.java",
626        "core/java/com/android/internal/util/HexDump.java",
627        "core/java/com/android/internal/util/IndentingPrintWriter.java",
628        "core/java/com/android/internal/util/MessageUtils.java",
629        "core/java/com/android/internal/util/RingBufferIndices.java",
630        "core/java/com/android/internal/util/WakeupMessage.java",
631        "core/java/com/android/internal/util/TokenBucket.java",
632    ],
633}
634
635// Build ext.jar
636// ============================================================
637java_library {
638    name: "ext",
639    installable: true,
640    sdk_version: "core_platform",
641    static_libs: [
642        "libphonenumber-platform",
643        "tagsoup",
644        "rappor",
645    ],
646    dxflags: ["--core-library"],
647}
648
649// utility classes statically linked into framework-wifi and dynamically linked
650// into wifi-service
651java_library {
652    name: "framework-wifi-util-lib",
653    sdk_version: "module_current",
654    min_sdk_version: "30",
655    srcs: [
656        "core/java/com/android/internal/util/AsyncChannel.java",
657        "core/java/com/android/internal/util/AsyncService.java",
658        "core/java/com/android/internal/util/Protocol.java",
659        "telephony/java/android/telephony/Annotation.java",
660    ],
661    libs: [
662        "framework-annotations-lib",
663        "framework-connectivity.stubs.module_lib",
664        "unsupportedappusage",
665    ],
666    visibility: [
667        "//frameworks/base/wifi",
668        "//frameworks/base/services/net",
669        "//packages/modules/Wifi/framework",
670    ],
671    lint: {
672        baseline_filename: "lint-baseline.xml",
673    },
674    apex_available: ["com.android.wifi"],
675}
676
677filegroup {
678    name: "android-non-updatable-stub-sources",
679    srcs: [
680        ":framework-mime-sources", // mimemap builds separately but has no separate droidstubs.
681        ":framework-minus-apex-aconfig-srcjars",
682        ":framework-non-updatable-sources",
683        ":opt-telephony-srcs",
684        ":opt-net-voip-srcs",
685        "core/java/**/*.logtags",
686        "**/package.html",
687    ],
688    visibility: ["//frameworks/base/api"],
689}
690
691java_library {
692    name: "perfetto_trace_javastream_protos_jarjar",
693    srcs: [
694        ":perfetto_trace_javastream_protos",
695    ],
696    jarjar_rules: ":framework-jarjar-rules",
697    sdk_version: "core_platform",
698    installable: false,
699}
700
701build = [
702    "AconfigFlags.bp",
703    "ProtoLibraries.bp",
704    "TestProtoLibraries.bp",
705    "Ravenwood.bp",
706]
707