blob: 23cd1a10f8c0a503470933bd4277773d50ebbf55 [file] [log] [blame]
Dan Albert2a8d9c22016-09-23 15:55:49 -07001// 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 Crosscf3a0b52017-11-16 00:15:28 -080015// 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
Artur Satayev3cc3fa42019-08-02 16:42:07 +010028filegroup {
Jiyong Parkb3609312019-08-16 21:17:14 +090029 name: "framework-core-sources",
Artur Satayev3cc3fa42019-08-02 16:42:07 +010030 srcs: [
Artur Satayev3cc3fa42019-08-02 16:42:07 +010031 "core/java/**/*.java",
Jiyong Parkb3609312019-08-16 21:17:14 +090032 "core/java/**/*.aidl",
Artur Satayev3cc3fa42019-08-02 16:42:07 +010033 ],
Jiyong Parkb3609312019-08-16 21:17:14 +090034 path: "core/java",
Artur Satayev3cc3fa42019-08-02 16:42:07 +010035}
36
Jiyong Park00ea0b12019-10-31 20:38:47 +090037// These are subset of framework-core-sources that are needed by the
Ramy Medhat10146d82020-05-19 01:57:41 -040038// android.test.mock library. The implementation of android.test.mock references
39// private members of various components to allow mocking of classes that cannot
40// be mocked without access to those internal implementation details.
Jiyong Park00ea0b12019-10-31 20:38:47 +090041filegroup {
42 name: "framework-core-sources-for-test-mock",
43 srcs: [
Ramy Medhat10146d82020-05-19 01:57:41 -040044 "core/java/android/accounts/AccountManagerCallback.java",
45 "core/java/android/accounts/AccountManagerFuture.java",
46 "core/java/android/accounts/AccountManager.java",
47 "core/java/android/accounts/AccountsException.java",
48 "core/java/android/accounts/AuthenticatorException.java",
49 "core/java/android/accounts/OperationCanceledException.java",
50 "core/java/android/annotation/AnimatorRes.java",
51 "core/java/android/annotation/AnimRes.java",
52 "core/java/android/annotation/AnyRes.java",
53 "core/java/android/annotation/ArrayRes.java",
54 "core/java/android/annotation/AttrRes.java",
55 "core/java/android/annotation/BoolRes.java",
56 "core/java/android/annotation/BroadcastBehavior.java",
57 "core/java/android/annotation/CallbackExecutor.java",
58 "core/java/android/annotation/CallSuper.java",
59 "core/java/android/annotation/CheckResult.java",
60 "core/java/android/annotation/ColorInt.java",
61 "core/java/android/annotation/ColorRes.java",
62 "core/java/android/annotation/DimenRes.java",
63 "core/java/android/annotation/DrawableRes.java",
64 "core/java/android/annotation/FontRes.java",
65 "core/java/android/annotation/FractionRes.java",
66 "core/java/android/annotation/IntDef.java",
67 "core/java/android/annotation/IntegerRes.java",
68 "core/java/android/annotation/IntRange.java",
69 "core/java/android/annotation/LayoutRes.java",
70 "core/java/android/annotation/NonNull.java",
71 "core/java/android/annotation/Nullable.java",
72 "core/java/android/annotation/PluralsRes.java",
73 "core/java/android/annotation/RawRes.java",
74 "core/java/android/annotation/RequiresPermission.java",
75 "core/java/android/annotation/SdkConstant.java",
76 "core/java/android/annotation/Size.java",
77 "core/java/android/annotation/StringDef.java",
78 "core/java/android/annotation/StringRes.java",
79 "core/java/android/annotation/StyleableRes.java",
80 "core/java/android/annotation/StyleRes.java",
81 "core/java/android/annotation/SuppressLint.java",
82 "core/java/android/annotation/SystemApi.java",
83 "core/java/android/annotation/SystemService.java",
84 "core/java/android/annotation/TestApi.java",
85 "core/java/android/annotation/UserIdInt.java",
86 "core/java/android/annotation/XmlRes.java",
87 "core/java/android/app/Application.java",
Jiyong Park00ea0b12019-10-31 20:38:47 +090088 "core/java/android/app/IApplicationThread.aidl",
89 "core/java/android/app/IServiceConnection.aidl",
Ramy Medhat10146d82020-05-19 01:57:41 -040090 "core/java/android/app/PackageDeleteObserver.java",
91 "core/java/android/content/ComponentCallbacks2.java",
92 "core/java/android/content/ComponentCallbacks.java",
93 "core/java/android/content/ContentInterface.java",
94 "core/java/android/content/ContentProvider.java",
95 "core/java/android/content/ContentProviderNative.java",
96 "core/java/android/content/ContentResolver.java",
97 "core/java/android/content/Context.java",
98 "core/java/android/content/ContextWrapper.java",
99 "core/java/android/content/DialogInterface.java",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900100 "core/java/android/content/IContentProvider.java",
Ramy Medhat10146d82020-05-19 01:57:41 -0400101 "core/java/android/content/Intent.java",
102 "core/java/android/content/IntentSender.java",
103 "core/java/android/content/OperationApplicationException.java",
104 "core/java/android/content/pm/ActivityInfo.java",
105 "core/java/android/content/pm/ApplicationInfo.java",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900106 "core/java/android/content/pm/InstantAppInfo.java",
Ramy Medhat10146d82020-05-19 01:57:41 -0400107 "core/java/android/content/pm/IPackageDataObserver.aidl",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900108 "core/java/android/content/pm/KeySet.java",
109 "core/java/android/content/pm/PackageManager.java",
110 "core/java/android/content/pm/VerifierDeviceIdentity.java",
111 "core/java/android/content/res/Resources.java",
Ramy Medhat10146d82020-05-19 01:57:41 -0400112 "core/java/android/database/CrossProcessCursor.java",
113 "core/java/android/database/CrossProcessCursorWrapper.java",
114 "core/java/android/database/Cursor.java",
115 "core/java/android/database/CursorWrapper.java",
116 "core/java/android/os/Binder.java",
117 "core/java/android/os/Bundle.java",
118 "core/java/android/os/IBinder.java",
119 "core/java/android/os/IInterface.java",
120 "core/java/android/os/Parcelable.java",
121 "core/java/android/os/ParcelFileDescriptor.java",
122 "core/java/android/os/RemoteException.java",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900123 "core/java/android/os/storage/VolumeInfo.java",
Ramy Medhat10146d82020-05-19 01:57:41 -0400124 "core/java/android/util/AndroidException.java",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900125 "core/java/android/view/DisplayAdjustments.java",
Ramy Medhat10146d82020-05-19 01:57:41 -0400126 "core/java/android/view/ViewDebug.java",
127 "core/java/com/android/internal/annotations/VisibleForTesting.java",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900128 ],
129 path: "core/java",
Jiyong Park673e2982020-01-17 16:14:57 +0900130 visibility: ["//frameworks/base/test-mock"],
Jiyong Park00ea0b12019-10-31 20:38:47 +0900131}
132
Jiyong Parkb3609312019-08-16 21:17:14 +0900133filegroup {
134 name: "framework-drm-sources",
135 srcs: [
136 "drm/java/**/*.java",
137 ],
138 path: "drm/java",
139}
Jiyong Park1cc95662019-08-07 22:45:07 +0900140
Jiyong Parkb3609312019-08-16 21:17:14 +0900141filegroup {
142 name: "framework-graphics-sources",
143 srcs: [
144 "graphics/java/**/*.java",
145 "graphics/java/**/*.aidl",
146 ],
147 path: "graphics/java",
148}
149
150filegroup {
David Zeuthen045b6de2019-10-29 15:15:18 -0400151 name: "framework-identity-sources",
152 srcs: [
153 "identity/java/**/*.java",
154 ],
155 path: "identity/java",
156}
157
158filegroup {
Jiyong Parkb3609312019-08-16 21:17:14 +0900159 name: "framework-keystore-sources",
160 srcs: [
161 "keystore/java/**/*.java",
162 "keystore/java/**/*.aidl",
163 ],
164 path: "keystore/java",
165}
166
167filegroup {
168 name: "framework-location-sources",
169 srcs: [
170 "location/java/**/*.java",
171 "location/java/**/*.aidl",
172 ],
173 path: "location/java",
174}
175
176filegroup {
177 name: "framework-lowpan-sources",
178 srcs: [
179 "lowpan/java/**/*.java",
180 "lowpan/java/**/*.aidl",
181 ],
182 path: "lowpan/java",
183}
184
185filegroup {
186 name: "framework-media-sources",
187 srcs: [
188 "media/java/**/*.java",
189 "media/java/**/*.aidl",
190 ],
191 path: "media/java",
192}
193
194filegroup {
195 name: "framework-mca-effect-sources",
196 srcs: [
197 "media/mca/effect/java/**/*.java",
198 ],
199 path: "media/mca/effect/java",
200}
201
202filegroup {
203 name: "framework-mca-filterfw-sources",
204 srcs: [
205 "media/mca/filterfw/java/**/*.java",
206 ],
207 path: "media/mca/filterfw/java",
208}
209
210filegroup {
211 name: "framework-mca-filterpacks-sources",
212 srcs: [
213 "media/mca/filterpacks/java/**/*.java",
214 ],
215 path: "media/mca/filterpacks/java",
216}
217
218filegroup {
Tobias Thierer878c77b2019-08-18 15:19:45 +0100219 name: "framework-mime-sources",
220 srcs: [
221 "mime/java/**/*.java",
222 ],
223 path: "mime/java",
224}
225
226filegroup {
Jiyong Parkb3609312019-08-16 21:17:14 +0900227 name: "framework-opengl-sources",
228 srcs: [
229 "opengl/java/**/*.java",
230 ],
231 path: "opengl/java",
232}
233
234filegroup {
235 name: "framework-rs-sources",
236 srcs: [
237 "rs/java/**/*.java",
238 ],
239 path: "rs/java",
240}
241
242filegroup {
243 name: "framework-sax-sources",
244 srcs: [
245 "sax/java/**/*.java",
246 ],
247 path: "sax/java",
248}
249
250filegroup {
251 name: "framework-telecomm-sources",
252 srcs: [
253 "telecomm/java/**/*.java",
254 "telecomm/java/**/*.aidl",
255 ],
256 path: "telecomm/java",
257}
258
259filegroup {
260 name: "framework-telephony-sources",
261 srcs: [
262 "telephony/java/**/*.java",
263 "telephony/java/**/*.aidl",
264 ],
265 path: "telephony/java",
266}
267
Muhammad Qureshied8bca02020-01-24 16:07:49 -0800268genrule {
269 name: "statslog-telephony-common-java-gen",
270 tools: ["stats-log-api-gen"],
271 cmd: "$(location stats-log-api-gen) --java $(out) --module telephony_common"
272 + " --javaPackage com.android.internal.telephony --javaClass TelephonyCommonStatsLog",
273 out: ["com/android/internal/telephony/TelephonyCommonStatsLog.java"],
274}
275
Jiyong Parkb3609312019-08-16 21:17:14 +0900276filegroup {
Amit Mahajand3551532019-09-23 17:59:57 -0700277 name: "framework-telephony-common-sources",
278 srcs: [
279 "telephony/common/**/*.java",
Muhammad Qureshied8bca02020-01-24 16:07:49 -0800280 ":statslog-telephony-common-java-gen",
Amit Mahajand3551532019-09-23 17:59:57 -0700281 ],
Amit Mahajand3551532019-09-23 17:59:57 -0700282}
283
284filegroup {
Amit Mahajan6237a6b2019-10-07 17:41:26 -0700285 name: "framework-mms-sources",
286 srcs: [
287 "mms/java/**/*.java",
288 "mms/java/**/*.aidl",
289 ],
290 path: "mms/java",
291}
292
293filegroup {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900294 name: "framework-non-updatable-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900295 srcs: [
296 // Java/AIDL sources under frameworks/base
Sudheer Shankaf5b36962019-10-04 16:16:13 -0700297 ":framework-blobstore-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900298 ":framework-core-sources",
299 ":framework-drm-sources",
300 ":framework-graphics-sources",
Jiyong Park48cc3722019-10-21 14:01:06 +0900301 ":framework-jobscheduler-sources", // jobscheduler is not a module for R
Jiyong Park20426532019-08-19 15:24:49 +0900302 ":framework-keystore-sources",
David Zeuthen045b6de2019-10-29 15:15:18 -0400303 ":framework-identity-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900304 ":framework-location-sources",
305 ":framework-lowpan-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900306 ":framework-mca-effect-sources",
307 ":framework-mca-filterfw-sources",
308 ":framework-mca-filterpacks-sources",
Jiyong Park48cc3722019-10-21 14:01:06 +0900309 ":framework-media-sources",
Amit Mahajan6237a6b2019-10-07 17:41:26 -0700310 ":framework-mms-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900311 ":framework-opengl-sources",
312 ":framework-rs-sources",
313 ":framework-sax-sources",
314 ":framework-telecomm-sources",
Amit Mahajand3551532019-09-23 17:59:57 -0700315 ":framework-telephony-common-sources",
Malcolm Chenc7991802020-03-16 15:28:35 -0700316 ":framework-telephony-sources",
David Su130441b2019-12-14 21:37:20 -0800317 ":framework-wifi-annotations",
David Su6f646ef2019-12-10 13:33:06 -0800318 ":framework-wifi-non-updatable-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900319 ":PacProcessor-aidl-sources",
320 ":ProxyHandler-aidl-sources",
Aaron Huangc4081b22020-01-13 15:03:35 +0800321 ":net-utils-framework-common-srcs",
Jiyong Parkb3609312019-08-16 21:17:14 +0900322
atrost87488352019-10-10 19:27:31 +0100323 // AIDL from frameworks/base/native/
324 ":platform-compat-native-aidl",
325
Jiyong Park20426532019-08-19 15:24:49 +0900326 // AIDL sources from external directories
David Zeuthen045b6de2019-10-29 15:15:18 -0400327 ":credstore_aidl",
Jiyong Park20426532019-08-19 15:24:49 +0900328 ":dumpstate_aidl",
329 ":framework_native_aidl",
330 ":gatekeeper_aidl",
331 ":gsiservice_aidl",
332 ":incidentcompanion_aidl",
333 ":installd_aidl",
334 ":keystore_aidl",
335 ":libaudioclient_aidl",
336 ":libbinder_aidl",
337 ":libbluetooth-binder-aidl",
338 ":libcamera_client_aidl",
339 ":libcamera_client_framework_aidl",
340 ":libupdate_engine_aidl",
Amy Zhangccdbc4d2020-06-08 21:29:59 -0700341 ":resourcemanager_aidl",
Jiyong Park20426532019-08-19 15:24:49 +0900342 ":storaged_aidl",
343 ":vold_aidl",
Jiyong Park1cc95662019-08-07 22:45:07 +0900344
Jiyong Park20426532019-08-19 15:24:49 +0900345 // For the generated R.java and Manifest.java
346 ":framework-res{.aapt.srcjar}",
347
348 // etc.
349 ":framework-javastream-protos",
Muhammad Qureshi04ec2522020-01-27 16:36:45 -0800350 ":statslog-framework-java-gen", // FrameworkStatsLog.java
Jiyong Park20426532019-08-19 15:24:49 +0900351 ],
352}
Jiyong Park1cc95662019-08-07 22:45:07 +0900353
Jiyong Parkae9972b2019-09-15 20:19:02 +0900354filegroup {
Anton Hanssonb4f35572019-12-02 16:30:22 +0000355 name: "framework-updatable-sources",
356 srcs: [
Jeff Sharkey40182832019-12-18 14:06:48 -0700357 ":framework-mediaprovider-sources",
Hai Zhang82a62272020-01-14 21:56:34 -0800358 ":framework-permission-sources",
Anton Hansson221fe902020-03-07 11:40:10 +0000359 ":framework-sdkextensions-sources",
360 ":framework-statsd-sources",
Anton Hansson221fe902020-03-07 11:40:10 +0000361 ":framework-tethering-srcs",
362 ":framework-wifi-updatable-sources",
363 ":updatable-media-srcs",
Anton Hanssonb4f35572019-12-02 16:30:22 +0000364 ]
365}
366
Anton Hansson221fe902020-03-07 11:40:10 +0000367java_library {
368 name: "framework-updatable-stubs-module_libs_api",
369 static_libs: [
Paul Duffinabebc6a2020-05-31 11:35:50 +0100370 "framework-media.stubs.module_lib",
371 "framework-mediaprovider.stubs.module_lib",
372 "framework-permission.stubs.module_lib",
373 "framework-sdkextensions.stubs.module_lib",
374 "framework-statsd.stubs.module_lib",
375 "framework-tethering.stubs.module_lib",
376 "framework-wifi.stubs.module_lib",
Anton Hansson221fe902020-03-07 11:40:10 +0000377 ],
378 sdk_version: "module_current",
379 visibility: [":__pkg__"],
380}
381
Anton Hanssonb4f35572019-12-02 16:30:22 +0000382filegroup {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900383 name: "framework-all-sources",
384 srcs: [
Tobias Thiererc0c06082019-11-22 16:33:18 +0000385 ":framework-mime-sources",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900386 ":framework-non-updatable-sources",
Anton Hanssonb4f35572019-12-02 16:30:22 +0000387 ":framework-updatable-sources",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900388 ],
389}
390
Jiyong Park392729f2020-01-17 16:32:53 +0900391// AIDL files under these paths are mixture of public and private ones.
392// They shouldn't be exported across module boundaries.
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100393java_defaults {
Makoto Onuki62242c42019-08-05 12:54:20 -0700394 name: "framework-aidl-export-defaults",
Makoto Onuki62242c42019-08-05 12:54:20 -0700395 aidl: {
Jiyong Parkb3609312019-08-16 21:17:14 +0900396 export_include_dirs: [
397 "core/java",
398 "drm/java",
399 "graphics/java",
David Zeuthen045b6de2019-10-29 15:15:18 -0400400 "identity/java",
Jiyong Parkb3609312019-08-16 21:17:14 +0900401 "keystore/java",
402 "location/java",
403 "lowpan/java",
404 "media/java",
Jiyong Parkb3609312019-08-16 21:17:14 +0900405 "media/mca/effect/java",
406 "media/mca/filterfw/java",
407 "media/mca/filterpacks/java",
Amit Mahajan6237a6b2019-10-07 17:41:26 -0700408 "mms/java",
Jiyong Parkb3609312019-08-16 21:17:14 +0900409 "opengl/java",
410 "rs/java",
411 "sax/java",
412 "telecomm/java",
Anton Hansson221fe902020-03-07 11:40:10 +0000413
Sungsoo Lim895f4f62020-04-08 11:21:36 +0900414 "apex/media/aidl/stable",
Anton Hansson221fe902020-03-07 11:40:10 +0000415 // TODO(b/147699819): remove this
416 "telephony/java",
Jiyong Parkb3609312019-08-16 21:17:14 +0900417 ],
Makoto Onuki62242c42019-08-05 12:54:20 -0700418 },
419}
420
Jiyong Park20426532019-08-19 15:24:49 +0900421// Collection of classes that are generated from non-Java files that are not listed in
422// framework_srcs. These have no or very limited dependency to the framework.
423java_library {
424 name: "framework-internal-utils",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800425 static_libs: [
Dario Frenid8bf22e2018-08-31 14:18:04 +0100426 "apex_aidl_interface-java",
Kalesh Singh759af322019-06-19 12:17:43 -0700427 "suspend_control_aidl_interface-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800428 "framework-protos",
Peiyong Lin9ca1dd82019-01-12 17:44:29 -0800429 "game-driver-protos",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800430 "android.hidl.base-V1.0-java",
431 "android.hardware.cas-V1.0-java",
Henry Fang43cab922019-12-27 16:50:20 -0800432 "android.hardware.cas-V1.1-java",
433 "android.hardware.cas-V1.2-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800434 "android.hardware.contexthub-V1.0-java",
Anthony Stange521a9052020-02-07 18:45:47 -0500435 "android.hardware.contexthub-V1.1-java",
Yu-Han Yang9fe06dd2019-11-18 16:23:31 -0800436 "android.hardware.gnss-V1.0-java",
Yu-Han Yangad03c472020-01-14 15:31:01 -0800437 "android.hardware.gnss-V2.1-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800438 "android.hardware.health-V1.0-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800439 "android.hardware.radio-V1.0-java",
440 "android.hardware.radio-V1.1-java",
441 "android.hardware.radio-V1.2-java",
442 "android.hardware.radio-V1.3-java",
443 "android.hardware.radio-V1.4-java",
Sarah Chin21e9c632019-11-05 13:30:10 -0800444 "android.hardware.radio-V1.5-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800445 "android.hardware.thermal-V1.0-java-constants",
Wei Wangfb21bd82019-01-10 14:16:23 -0800446 "android.hardware.thermal-V1.0-java",
Wei Wangbad7c202018-11-01 11:57:39 -0700447 "android.hardware.thermal-V1.1-java",
448 "android.hardware.thermal-V2.0-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800449 "android.hardware.tv.input-V1.0-java-constants",
shubang7e849b02019-10-18 19:36:25 -0700450 "android.hardware.tv.tuner-V1.0-java-constants",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800451 "android.hardware.usb-V1.0-java-constants",
452 "android.hardware.usb-V1.1-java-constants",
Badhri Jagan Sridharane966a382018-12-09 14:49:38 -0800453 "android.hardware.usb-V1.2-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800454 "android.hardware.usb.gadget-V1.0-java",
Michael Wrightf268bf52018-02-07 23:23:34 +0000455 "android.hardware.vibrator-V1.0-java",
456 "android.hardware.vibrator-V1.1-java",
457 "android.hardware.vibrator-V1.2-java",
Harpreet "Eli" Sanghaa456f082018-12-14 12:06:10 +0900458 "android.hardware.vibrator-V1.3-java",
arangelov1ab61492018-11-22 13:56:50 +0000459 "devicepolicyprotosnano",
Inseob Kim4fe9f0f2019-07-30 18:23:26 +0900460
461 "com.android.sysprop.apex",
Nikita Ioffe779d6be2020-02-06 23:17:17 +0000462 "com.android.sysprop.init",
Inseob Kim4fe9f0f2019-07-30 18:23:26 +0900463 "PlatformProperties",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800464 ],
Jiyong Park20426532019-08-19 15:24:49 +0900465 sdk_version: "core_platform",
466 installable: false,
467}
468
469java_defaults {
470 name: "framework-defaults",
471 defaults: ["framework-aidl-export-defaults"],
472 installable: true,
473
Jiyong Park20426532019-08-19 15:24:49 +0900474 aidl: {
475 generate_get_transaction_name: true,
476 },
477
Jiyong Parkae9972b2019-09-15 20:19:02 +0900478 srcs: ["core/java/**/*.logtags"],
479
Jiyong Park20426532019-08-19 15:24:49 +0900480 exclude_srcs: [
481 // See comment on framework-atb-backward-compatibility module below
Winson5e0a1d52020-01-24 12:00:33 -0800482 "core/java/android/content/pm/AndroidTestBaseUpdater.java",
Jiyong Park20426532019-08-19 15:24:49 +0900483 ],
484
485 sdk_version: "core_platform",
486 libs: [
Artur Satayev6aa25ec2019-12-11 16:33:22 +0000487 "app-compat-annotations",
Jiyong Park20426532019-08-19 15:24:49 +0900488 "ext",
Artur Satayev6aa25ec2019-12-11 16:33:22 +0000489 "unsupportedappusage",
Jiyong Park20426532019-08-19 15:24:49 +0900490 ],
491
492 jarjar_rules: ":framework-jarjar-rules",
493
Tobias Thierer878c77b2019-08-18 15:19:45 +0100494 static_libs: [
495 "framework-internal-utils",
Tobias Thierer878c77b2019-08-18 15:19:45 +0100496 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800497
Colin Crosscf3a0b52017-11-16 00:15:28 -0800498 dxflags: [
499 "--core-library",
500 "--multi-dex",
501 ],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100502
Eugene Susla3b2fe612019-08-06 18:47:14 -0700503 plugins: [
504 "view-inspector-annotation-processor",
505 "staledataclass-annotation-processor",
506 ],
Jiyong Park392729f2020-01-17 16:32:53 +0900507
508 required: [
509 // TODO: remove gps_debug and protolog.conf.json when the build system propagates "required" properly.
510 "gps_debug.conf",
511 "protolog.conf.json.gz",
512 ],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100513}
514
Colin Crossbc2dc312018-10-26 22:34:06 -0700515filegroup {
Steven Moreland19e8d462019-03-08 10:44:22 -0800516 name: "framework-jarjar-rules",
David Su130441b2019-12-14 21:37:20 -0800517 srcs: ["framework-jarjar-rules.txt"],
Steven Moreland19e8d462019-03-08 10:44:22 -0800518}
519
520filegroup {
Colin Crossbc2dc312018-10-26 22:34:06 -0700521 name: "libincident_aidl",
522 srcs: [
Mike Ma643de922019-12-17 10:56:17 -0800523 "core/java/android/os/IIncidentDumpCallback.aidl",
Colin Crossbc2dc312018-10-26 22:34:06 -0700524 "core/java/android/os/IIncidentManager.aidl",
525 "core/java/android/os/IIncidentReportStatusListener.aidl",
526 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700527 path: "core/java",
Colin Crossbc2dc312018-10-26 22:34:06 -0700528}
529
530filegroup {
Michael Wrightc390fbe2018-12-12 19:45:09 +0000531 name: "libvibrator_aidl",
532 srcs: [
533 "core/java/android/os/IExternalVibrationController.aidl",
534 "core/java/android/os/IExternalVibratorService.aidl",
535 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700536 path: "core/java",
Michael Wrightc390fbe2018-12-12 19:45:09 +0000537}
538
Chris Ye48dbcaa2020-02-10 13:29:01 -0800539filegroup {
540 name: "libpowermanager_aidl",
541 srcs: [
542 "core/java/android/os/Temperature.aidl",
543 "core/java/android/os/CoolingDevice.aidl",
544 "core/java/android/os/IThermalEventListener.aidl",
545 "core/java/android/os/IThermalStatusListener.aidl",
546 "core/java/android/os/IThermalService.aidl",
547 ],
548 path: "core/java",
549}
550
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100551java_library {
Makoto Onuki62242c42019-08-05 12:54:20 -0700552 name: "framework-minus-apex",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100553 defaults: ["framework-defaults"],
Jiyong Parkae9972b2019-09-15 20:19:02 +0900554 srcs: [":framework-non-updatable-sources"],
Makoto Onuki62242c42019-08-05 12:54:20 -0700555 installable: true,
Jiyong Park911cd4f2019-10-21 14:35:14 +0900556 javac_shard_size: 150,
atrostaec9bc12019-08-16 18:14:09 +0100557 required: [
558 "framework-platform-compat-config",
559 "libcore-platform-compat-config",
atrost86895aa2019-08-19 16:51:15 +0100560 "services-platform-compat-config",
Ivan Chiang3cb1cbd2020-02-18 10:50:10 +0800561 "documents-ui-compat-config",
atrostaec9bc12019-08-16 18:14:09 +0100562 ],
Anton Hansson92d79fd2020-03-20 09:12:52 +0000563 libs: ["framework-updatable-stubs-module_libs_api"],
Tobias Thiererc0c06082019-11-22 16:33:18 +0000564 static_libs: [
Tobias Thierer82968532019-11-29 19:39:45 +0000565 // If MimeMap ever becomes its own APEX, then this dependency would need to be removed
566 // in favor of an API stubs dependency in java_library "framework" below.
Tobias Thiererc0c06082019-11-22 16:33:18 +0000567 "mimemap",
568 ],
Jiyong Park911cd4f2019-10-21 14:35:14 +0900569 // For backwards compatibility.
570 stem: "framework",
Jiyong Park352f9e22019-12-09 14:45:07 +0900571 apex_available: ["//apex_available:platform"],
Jiyong Park212d2e82020-01-03 21:07:38 +0900572 visibility: [
573 "//frameworks/base",
Jiyong Park634819c2020-02-04 21:20:02 +0900574 // TODO(b/147128803) remove the below lines
Jiyong Park212d2e82020-01-03 21:07:38 +0900575 "//frameworks/base/apex/blobstore/framework",
576 "//frameworks/base/apex/jobscheduler/framework",
markchien2c153702020-02-06 19:23:26 +0800577 "//frameworks/base/packages/Tethering/tests/unit",
Jiyong Park212d2e82020-01-03 21:07:38 +0900578 ],
Jiyong Park911cd4f2019-10-21 14:35:14 +0900579}
580
581// This "framework" module is NOT installed to the device. It's
582// "framework-minus-apex" that gets installed to the device. Note that
583// the filename is still framework.jar (via the stem property) for
584// compatibility reason. The purpose of this module is to provide
585// framework APIs (both public and private) for bundled apps.
586// "framework-minus-apex" can't be used for the purpose because 1)
587// many apps have already hardcoded the name "framework" and
588// 2) it lacks API symbols from updatable modules - as it's clear from
589// its suffix "-minus-apex".
590java_library {
591 name: "framework",
592 defaults: ["framework-aidl-export-defaults"],
593 installable: false, // this lib is a build-only library
594 static_libs: [
Malcolm Chenc7991802020-03-16 15:28:35 -0700595 "app-compat-annotations",
Jiyong Park911cd4f2019-10-21 14:35:14 +0900596 "framework-minus-apex",
Anton Hansson221fe902020-03-07 11:40:10 +0000597 "framework-updatable-stubs-module_libs_api",
Jiyong Park911cd4f2019-10-21 14:35:14 +0900598 ],
Makoto Onuki62242c42019-08-05 12:54:20 -0700599 sdk_version: "core_platform",
Jiyong Park352f9e22019-12-09 14:45:07 +0900600 apex_available: ["//apex_available:platform"],
Makoto Onuki62242c42019-08-05 12:54:20 -0700601}
602
603java_library {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900604 name: "framework-all",
605 defaults: ["framework-defaults"],
606 srcs: [":framework-all-sources"],
607 installable: false,
David Su369c9202020-01-09 18:09:56 -0800608 static_libs: [
Santiago Seifert5b86f832020-01-27 19:42:27 +0000609 "exoplayer2-extractor",
David Su369c9202020-01-09 18:09:56 -0800610 "android.hardware.wifi-V1.0-java-constants",
Paul Duffinc91b0a42020-03-24 19:21:06 +0000611
612 // Additional dependencies needed to build the ike API classes.
613 "ike-internals",
Alexander Dorokhine0e8fa4e2020-01-13 20:22:20 -0800614 ],
Jiyong Park352f9e22019-12-09 14:45:07 +0900615 apex_available: ["//apex_available:platform"],
Anton Hanssona1fb6f52020-02-21 11:23:20 +0000616 visibility: [
617 // DO NOT ADD ANY MORE ENTRIES TO THIS LIST
618 "//external/robolectric-shadows:__subpackages__",
Anton Hansson92d79fd2020-03-20 09:12:52 +0000619 "//frameworks/base",
Anton Hanssona1fb6f52020-02-21 11:23:20 +0000620 "//frameworks/layoutlib:__subpackages__",
Anton Hanssona1fb6f52020-02-21 11:23:20 +0000621 ],
Jiyong Park97183492019-11-14 03:07:36 +0000622}
623
atrostb9c34502019-08-05 12:22:18 +0100624platform_compat_config {
625 name: "framework-platform-compat-config",
Artur Satayev1503d312020-03-25 15:36:55 +0000626 src: ":framework-minus-apex",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100627}
628
Paul Duffinbeee5dc2018-01-23 13:39:00 +0000629// A temporary build target that is conditionally included on the bootclasspath if
Paul Duffina3b69212018-01-25 09:58:32 +0000630// android.test.base library has been removed and which provides support for
631// maintaining backwards compatibility for APKs that target pre-P and depend on
632// android.test.base classes. This is used iff REMOVE_ATB_FROM_BCP=true is
633// specified on the build command line.
634java_library {
635 name: "framework-atb-backward-compatibility",
Paul Duffinfab87542019-02-15 11:39:12 +0000636 installable: true,
atrost1a945502019-11-04 17:03:54 +0000637 libs: ["app-compat-annotations"],
Paul Duffina3b69212018-01-25 09:58:32 +0000638 srcs: [
Winson5e0a1d52020-01-24 12:00:33 -0800639 "core/java/android/content/pm/AndroidTestBaseUpdater.java",
Paul Duffina3b69212018-01-25 09:58:32 +0000640 ],
641}
642
Colin Crosscf3a0b52017-11-16 00:15:28 -0800643genrule {
Muhammad Qureshi04ec2522020-01-27 16:36:45 -0800644 name: "statslog-framework-java-gen",
645 tools: ["stats-log-api-gen"],
646 cmd: "$(location stats-log-api-gen) --java $(out) --module framework" +
647 " --javaPackage com.android.internal.util --javaClass FrameworkStatsLog --worksource",
648 out: ["com/android/internal/util/FrameworkStatsLog.java"],
649}
650
Hyunyoung Songa28623b2020-02-06 22:56:21 -0800651java_library {
652 name: "uieventloggerlib",
653 srcs: [
654 "core/java/com/android/internal/logging/UiEvent.java",
655 "core/java/com/android/internal/logging/UiEventLogger.java",
656 "core/java/com/android/internal/logging/UiEventLoggerImpl.java",
657 "core/java/com/android/internal/logging/InstanceId.java",
658 "core/java/com/android/internal/logging/InstanceIdSequence.java",
659 ":statslog-framework-java-gen",
660 ],
661}
662
Colin Crosscf3a0b52017-11-16 00:15:28 -0800663gensrcs {
664 name: "framework-javastream-protos",
665 depfile: true,
666
667 tools: [
668 "aprotoc",
669 "protoc-gen-javastream",
670 "soong_zip",
671 ],
672
Anton Hanssond82b2f72019-11-18 13:34:56 +0000673 cmd: "mkdir -p $(genDir)/$(in) " +
674 "&& $(location aprotoc) " +
675 " --plugin=$(location protoc-gen-javastream) " +
676 " --dependency_out=$(depfile) " +
677 " --javastream_out=$(genDir)/$(in) " +
678 " -Iexternal/protobuf/src " +
679 " -I . " +
680 " $(in) " +
681 "&& $(location soong_zip) -jar -o $(out) -C $(genDir)/$(in) -D $(genDir)/$(in)",
682
Yi Jin437aa6e2018-01-10 11:34:26 -0800683 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800684 ":ipconnectivity-proto-src",
Yi Jin437aa6e2018-01-10 11:34:26 -0800685 "core/proto/**/*.proto",
686 "libs/incident/**/*.proto",
687 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800688 output_extension: "srcjar",
689}
690
Mike Maa47ad722020-01-28 22:04:20 -0800691gensrcs {
692 name: "framework-cppstream-protos",
693 depfile: true,
694
695 tools: [
696 "aprotoc",
697 "protoc-gen-cppstream",
698 ],
699
700 cmd: "mkdir -p $(genDir) " +
701 "&& $(location aprotoc) " +
702 " --plugin=$(location protoc-gen-cppstream) " +
703 " --dependency_out=$(depfile) " +
704 " --cppstream_out=$(genDir) " +
705 " -Iexternal/protobuf/src " +
706 " -I . " +
707 " $(in)",
708
709 srcs: [
710 ":ipconnectivity-proto-src",
711 "core/proto/**/*.proto",
712 "libs/incident/**/*.proto",
713 ],
714
715 output_extension: "proto.h",
716}
717
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900718filegroup {
Chalard Jean95213512019-01-30 21:04:58 +0900719 name: "framework-annotations",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900720 srcs: [
David Su369c9202020-01-09 18:09:56 -0800721 "core/java/android/annotation/CallbackExecutor.java",
David Su511a8142020-01-09 14:02:21 -0800722 "core/java/android/annotation/CheckResult.java",
David Su77517342020-02-18 18:10:07 -0800723 "core/java/android/annotation/CurrentTimeMillisLong.java",
Roshan Piusb6361f92020-02-21 07:37:30 -0800724 "core/java/android/annotation/Hide.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900725 "core/java/android/annotation/IntDef.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900726 "core/java/android/annotation/IntRange.java",
lesld41a2992020-02-20 17:30:58 +0800727 "core/java/android/annotation/LongDef.java",
Jeff Sharkey40182832019-12-18 14:06:48 -0700728 "core/java/android/annotation/NonNull.java",
729 "core/java/android/annotation/Nullable.java",
730 "core/java/android/annotation/RequiresPermission.java",
731 "core/java/android/annotation/SdkConstant.java",
David Su369c9202020-01-09 18:09:56 -0800732 "core/java/android/annotation/StringDef.java",
Anton Hanssondc1e99b2019-12-06 17:07:28 +0000733 "core/java/android/annotation/SystemApi.java",
David Su369c9202020-01-09 18:09:56 -0800734 "core/java/android/annotation/SystemService.java",
Jeff Sharkey40182832019-12-18 14:06:48 -0700735 "core/java/android/annotation/TestApi.java",
Jeff Sharkeyf5eebf92020-03-06 14:41:56 -0700736 "core/java/android/annotation/WorkerThread.java",
Remi NGUYEN VAN231b52b2019-01-29 15:38:52 +0900737 "core/java/com/android/internal/annotations/GuardedBy.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900738 "core/java/com/android/internal/annotations/VisibleForTesting.java",
David Su511a8142020-01-09 14:02:21 -0800739 "core/java/com/android/internal/annotations/Immutable.java",
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100740 ],
Chalard Jean95213512019-01-30 21:04:58 +0900741}
742
Anton Hansson4ec07fa2019-11-08 15:18:04 +0000743java_library {
744 name: "framework-annotations-lib",
745 srcs: [ ":framework-annotations" ],
Anton Hansson791551a2019-12-19 10:17:46 +0000746 sdk_version: "core_current",
Anton Hansson4ec07fa2019-11-08 15:18:04 +0000747}
748
Chalard Jean95213512019-01-30 21:04:58 +0900749filegroup {
evitayane22e47f2019-12-30 16:05:38 -0800750 name: "framework-ike-shared-srcs",
Baligh Uddinb7ec5bb2020-05-27 19:22:36 +0000751 visibility: ["//packages/modules/IPsec"],
evitayane22e47f2019-12-30 16:05:38 -0800752 srcs: [
evitayanbddbfb02020-01-07 21:21:52 -0800753 "core/java/android/annotation/StringDef.java",
evitayane22e47f2019-12-30 16:05:38 -0800754 "core/java/android/net/annotations/PolicyDirection.java",
evitayane9cc4942020-03-03 17:14:47 -0800755 "core/java/com/android/internal/util/HexDump.java",
evitayan0efc7402019-12-20 17:55:57 -0800756 "core/java/com/android/internal/util/IState.java",
757 "core/java/com/android/internal/util/State.java",
758 "core/java/com/android/internal/util/StateMachine.java",
evitayan996aa2a2019-12-30 11:19:47 -0800759 "telephony/java/android/telephony/Annotation.java",
evitayane22e47f2019-12-30 16:05:38 -0800760 ],
761}
762
763filegroup {
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900764 name: "framework-networkstack-shared-srcs",
765 srcs: [
766 // TODO: remove these annotations as soon as we can use andoid.support.annotations.*
Chalard Jean95213512019-01-30 21:04:58 +0900767 ":framework-annotations",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900768 "core/java/android/net/DhcpResults.java",
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900769 "core/java/android/util/LocalLog.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900770 "core/java/com/android/internal/util/HexDump.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900771 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900772 "core/java/com/android/internal/util/IState.java",
773 "core/java/com/android/internal/util/MessageUtils.java",
774 "core/java/com/android/internal/util/Preconditions.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900775 "core/java/com/android/internal/util/RingBufferIndices.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900776 "core/java/com/android/internal/util/State.java",
777 "core/java/com/android/internal/util/StateMachine.java",
Chalard Jean6a76b7e2019-04-09 11:16:56 +0900778 "core/java/com/android/internal/util/TrafficStatsConstants.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900779 "core/java/com/android/internal/util/WakeupMessage.java",
johnson.yeh095b7a02019-12-19 20:30:34 +0800780 "core/java/com/android/internal/util/TokenBucket.java",
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100781 ],
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900782}
783
Roshan Piusb6361f92020-02-21 07:37:30 -0800784filegroup {
785 name: "framework-services-net-module-wifi-shared-srcs",
786 srcs: [
787 "core/java/android/net/DhcpResults.java",
Roshan Piusb6361f92020-02-21 07:37:30 -0800788 "core/java/android/net/util/IpUtils.java",
789 "core/java/android/util/LocalLog.java",
Roshan Piusb6361f92020-02-21 07:37:30 -0800790 ],
791}
792
markchienae8aa642019-12-16 20:15:20 +0800793// keep these files in sync with the package/Tethering/jarjar-rules.txt for the tethering module.
markchiena6ba54d2019-09-03 15:58:06 +0800794filegroup {
795 name: "framework-tethering-shared-srcs",
796 srcs: [
797 "core/java/android/util/LocalLog.java",
markchienae8aa642019-12-16 20:15:20 +0800798 "core/java/com/android/internal/util/IndentingPrintWriter.java",
799 "core/java/com/android/internal/util/IState.java",
800 "core/java/com/android/internal/util/MessageUtils.java",
markchienae8aa642019-12-16 20:15:20 +0800801 "core/java/com/android/internal/util/State.java",
802 "core/java/com/android/internal/util/StateMachine.java",
markchien87d3f7d2020-01-08 20:58:23 +0800803 "core/java/com/android/internal/util/TrafficStatsConstants.java",
markchienae8aa642019-12-16 20:15:20 +0800804 ],
805}
806
Colin Crossd8e02252017-10-02 17:14:22 -0700807// Build ext.jar
808// ============================================================
809java_library {
810 name: "ext",
Colin Crossa12c0f52018-06-27 11:00:11 -0700811 installable: true,
Paul Duffin8fcace42019-06-12 13:47:18 +0100812 sdk_version: "core_platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700813 static_libs: [
814 "libphonenumber-platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700815 "tagsoup",
Ricky Wai0d1bc332017-10-31 14:31:01 +0000816 "rappor",
Colin Crossd8e02252017-10-02 17:14:22 -0700817 ],
818 dxflags: ["--core-library"],
819}
820
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700821// ==== java proto host library ==============================
822java_library_host {
823 name: "platformprotos",
824 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800825 ":ipconnectivity-proto-src",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700826 "cmds/am/proto/instrumentation_data.proto",
Howard Ro0546d542018-08-30 16:23:44 -0700827 "cmds/statsd/src/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700828 "core/proto/**/*.proto",
829 "libs/incident/proto/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700830 ],
831 proto: {
832 include_dirs: ["external/protobuf/src"],
833 type: "full",
834 },
835 errorprone: {
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100836 javacflags: ["-Xep:MissingOverride:OFF"], // b/72714520
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700837 },
838}
839
Colin Cross43214162018-08-20 13:57:24 -0700840// ==== java proto device library (for test only) ==============================
841java_library {
842 name: "platformprotosnano",
843 proto: {
844 type: "nano",
845 output_params: ["store_unknown_fields=true"],
846 include_dirs: ["external/protobuf/src"],
847 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000848 exclude_srcs: [
849 "core/proto/android/privacy.proto",
850 "core/proto/android/section.proto",
851 ],
Anton Hansson791551a2019-12-19 10:17:46 +0000852 sdk_version: "9",
Colin Cross43214162018-08-20 13:57:24 -0700853 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800854 ":ipconnectivity-proto-src",
Colin Cross43214162018-08-20 13:57:24 -0700855 "core/proto/**/*.proto",
856 "libs/incident/proto/android/os/**/*.proto",
857 ],
858}
859
860// ==== java proto device library (for test only) ==============================
861java_library {
862 name: "platformprotoslite",
863 proto: {
864 type: "lite",
865 include_dirs: ["external/protobuf/src"],
866 },
867
868 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800869 ":ipconnectivity-proto-src",
Colin Cross43214162018-08-20 13:57:24 -0700870 "core/proto/**/*.proto",
871 "libs/incident/proto/android/os/**/*.proto",
872 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000873 exclude_srcs: [
874 "core/proto/android/privacy.proto",
875 "core/proto/android/section.proto",
876 ],
Anton Hansson791551a2019-12-19 10:17:46 +0000877 sdk_version: "core_current",
Colin Cross43214162018-08-20 13:57:24 -0700878 // Protos have lots of MissingOverride and similar.
879 errorprone: {
880 javacflags: ["-XepDisableAllChecks"],
881 },
882}
883
Colin Crossaa0d4352017-05-02 14:14:56 -0700884// ==== c++ proto device library ==============================
Joe Onorato99598ee2019-02-11 15:55:13 +0000885cc_defaults {
886 name: "libplatformprotos-defaults",
887
Colin Crossaa0d4352017-05-02 14:14:56 -0700888 proto: {
889 export_proto_headers: true,
890 include_dirs: ["external/protobuf/src"],
891 },
892
Chih-Hung Hsiehc7edf072017-10-03 09:57:55 -0700893 cflags: [
894 "-Wall",
895 "-Werror",
896 "-Wno-unused-parameter",
897 ],
Joe Onorato62c220b2017-11-18 20:32:56 -0800898
899 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800900 ":ipconnectivity-proto-src",
Joe Onorato62c220b2017-11-18 20:32:56 -0800901 "core/proto/**/*.proto",
Joe Onorato62c220b2017-11-18 20:32:56 -0800902 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000903}
904
905cc_library {
906 name: "libplatformprotos",
907 defaults: ["libplatformprotos-defaults"],
908 host_supported: true,
Joe Onorato62c220b2017-11-18 20:32:56 -0800909
Colin Crossaa0d4352017-05-02 14:14:56 -0700910 target: {
911 host: {
912 proto: {
913 type: "full",
914 },
915 },
916 android: {
917 proto: {
918 type: "lite",
919 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000920 shared_libs: [
921 "libprotobuf-cpp-lite",
922 ],
Colin Crossaa0d4352017-05-02 14:14:56 -0700923 shared: {
Colin Crossaa0d4352017-05-02 14:14:56 -0700924 enabled: false,
925 },
926 },
927 },
Colin Crossaa0d4352017-05-02 14:14:56 -0700928}
929
Joe Onorato9bd5db72019-04-03 18:19:43 -0700930// This library is meant for vendor code that needs to output protobuf. It links
931// against the static version of libprotobuf-cpp-lite, for which we can not guarantee
932// binary compatibility.
933cc_library {
934 name: "libplatformprotos-static",
935 defaults: ["libplatformprotos-defaults"],
936 host_supported: false,
937
938 // This is okay because this library is only built as a static library. The C++
939 // API is not guaranteed. The proto API is guaranteed to be stable via Metrics Council,
940 // but is not authorized to be used outside of debugging.
941 vendor_available: true,
942
943 target: {
944 android: {
945 proto: {
946 type: "lite",
947 },
948 static_libs: [
949 "libprotobuf-cpp-lite",
950 ],
951 shared: {
952 enabled: false,
953 },
954 },
955 },
956}
957
958
Joe Onorato99598ee2019-02-11 15:55:13 +0000959// This is the full proto version of libplatformprotos. It may only
960// be used by test code that is not shipped on the device.
961cc_library {
962 name: "libplatformprotos-test",
963 defaults: ["libplatformprotos-defaults"],
964 host_supported: false,
965
966 target: {
967 android: {
968 proto: {
969 type: "full",
970 },
971 shared: {
972 enabled: false,
973 },
974 },
975 },
976}
977
Songchun Fan0037c3f2019-10-30 15:20:59 -0700978filegroup {
979 name: "incremental_aidl",
980 srcs: [
Alex Buynytskyyf4156792020-04-07 14:26:55 -0700981 "core/java/android/os/incremental/IIncrementalServiceConnector.aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -0700982 "core/java/android/os/incremental/IncrementalFileSystemControlParcel.aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -0700983 ],
984 path: "core/java",
985}
986
987filegroup {
Songchun Fan6dd47b52019-11-29 15:20:18 -0800988 name: "dataloader_aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -0700989 srcs: [
Alex Buynytskyyea14d192019-12-13 15:42:18 -0800990 "core/java/android/content/pm/DataLoaderParamsParcel.aidl",
Alex Buynytskyy1ecfcec2019-12-17 12:10:41 -0800991 "core/java/android/content/pm/DataLoaderType.aidl",
Alex Buynytskyyea14d192019-12-13 15:42:18 -0800992 "core/java/android/content/pm/FileSystemControlParcel.aidl",
Songchun Fan6381d612020-02-26 17:59:41 -0800993 "core/java/android/content/pm/IDataLoader.aidl",
994 "core/java/android/content/pm/IDataLoaderManager.aidl",
995 "core/java/android/content/pm/InstallationFileParcel.aidl",
996 "core/java/android/content/pm/InstallationFileLocation.aidl",
Songchun Fan6dd47b52019-11-29 15:20:18 -0800997 "core/java/android/content/pm/IDataLoaderStatusListener.aidl",
Alex Buynytskyyea14d192019-12-13 15:42:18 -0800998 "core/java/android/content/pm/IPackageInstallerSessionFileSystemConnector.aidl",
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -0800999 ],
1000 path: "core/java",
1001}
1002
1003filegroup {
1004 name: "incremental_manager_aidl",
1005 srcs: [
Alex Buynytskyy716588d2020-02-04 13:42:59 -08001006 "core/java/android/os/incremental/IIncrementalService.aidl",
Yurii Zubrytskyi4a25dfb2020-01-10 11:53:24 -08001007 "core/java/android/os/incremental/IncrementalNewFileParams.aidl",
Alex Buynytskyy8ef61ae2020-05-08 16:18:52 -07001008 "core/java/android/os/incremental/IStorageHealthListener.aidl",
1009 "core/java/android/os/incremental/StorageHealthCheckParams.aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -07001010 ],
1011 path: "core/java",
1012}
1013
1014aidl_interface {
1015 name: "libincremental_aidl",
Jiyong Parkdb589dd2020-04-13 12:55:24 +09001016 unstable: true,
Songchun Fan0037c3f2019-10-30 15:20:59 -07001017 srcs: [
1018 ":incremental_aidl",
Songchun Fan6dd47b52019-11-29 15:20:18 -08001019 ],
Songchun Fan6dd47b52019-11-29 15:20:18 -08001020 backend: {
1021 java: {
1022 sdk_version: "28",
1023 },
1024 cpp: {
1025 enabled: true,
1026 },
1027 ndk: {
1028 enabled: true,
1029 },
1030 },
1031}
1032
1033aidl_interface {
1034 name: "libdataloader_aidl",
Jiyong Parkdb589dd2020-04-13 12:55:24 +09001035 unstable: true,
Songchun Fan6dd47b52019-11-29 15:20:18 -08001036 srcs: [
1037 ":dataloader_aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -07001038 ],
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001039 imports: [
1040 "libincremental_aidl",
1041 ],
Songchun Fan0037c3f2019-10-30 15:20:59 -07001042 backend: {
1043 java: {
1044 sdk_version: "28",
1045 },
1046 cpp: {
1047 enabled: true,
1048 },
1049 ndk: {
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001050 enabled: false,
1051 },
1052 },
1053}
1054
1055aidl_interface {
1056 name: "libincremental_manager_aidl",
Jiyong Parkdb589dd2020-04-13 12:55:24 +09001057 unstable: true,
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001058 srcs: [
1059 ":incremental_manager_aidl",
1060 ],
1061 imports: [
1062 "libincremental_aidl",
1063 "libdataloader_aidl",
1064 ],
1065 backend: {
1066 java: {
1067 sdk_version: "28",
1068 },
1069 cpp: {
Songchun Fan0037c3f2019-10-30 15:20:59 -07001070 enabled: true,
1071 },
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001072 ndk: {
1073 enabled: false,
1074 },
Songchun Fan0037c3f2019-10-30 15:20:59 -07001075 },
Songchun Fan0037c3f2019-10-30 15:20:59 -07001076}
Joe Onorato99598ee2019-02-11 15:55:13 +00001077
Colin Crossa2b78a72018-03-29 13:31:04 -07001078// TODO(b/77285514): remove this once the last few hidl interfaces have been
1079// updated to use hwbinder.stubs.
Steven Morelandeddafe92017-10-02 16:58:41 -07001080java_library {
1081 name: "hwbinder",
Paul Duffin8fcace42019-06-12 13:47:18 +01001082 sdk_version: "core_platform",
Steven Morelandeddafe92017-10-02 16:58:41 -07001083
1084 srcs: [
1085 "core/java/android/os/HidlSupport.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -08001086 "core/java/android/annotation/IntDef.java",
Ytai Ben-Tsvi4659e182019-11-06 09:53:34 -08001087 "core/java/android/annotation/IntRange.java",
Steven Morelandeddafe92017-10-02 16:58:41 -07001088 "core/java/android/annotation/NonNull.java",
Steven Moreland0ff061a2019-03-04 17:56:30 -08001089 "core/java/android/annotation/Nullable.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -08001090 "core/java/android/annotation/SystemApi.java",
Steven Morelandcbba4c72019-01-11 10:19:51 -08001091 "core/java/android/annotation/TestApi.java",
Ytai Ben-Tsvi4659e182019-11-06 09:53:34 -08001092 "core/java/android/os/HidlMemory.java",
Steven Morelandeddafe92017-10-02 16:58:41 -07001093 "core/java/android/os/HwBinder.java",
1094 "core/java/android/os/HwBlob.java",
1095 "core/java/android/os/HwParcel.java",
1096 "core/java/android/os/IHwBinder.java",
1097 "core/java/android/os/IHwInterface.java",
1098 "core/java/android/os/DeadObjectException.java",
1099 "core/java/android/os/DeadSystemException.java",
Nirav Atre9850dd92018-07-24 17:03:44 -07001100 "core/java/android/os/NativeHandle.java",
Steven Morelandeddafe92017-10-02 16:58:41 -07001101 "core/java/android/os/RemoteException.java",
1102 "core/java/android/util/AndroidException.java",
1103 ],
Artur Satayevafdb23a2019-12-10 17:47:53 +00001104 libs: [ "unsupportedappusage" ],
Steven Morelandeddafe92017-10-02 16:58:41 -07001105
1106 dxflags: ["--core-library"],
1107 installable: false,
1108}
Nan Zhang2db709d2017-11-08 20:48:46 -08001109
1110python_defaults {
1111 name: "base_default",
1112 version: {
1113 py2: {
Nan Zhang2db709d2017-11-08 20:48:46 -08001114 enabled: false,
1115 embedded_launcher: false,
1116 },
Haibo Huang715857d2020-03-05 11:58:47 -08001117 py3: {
1118 enabled: true,
1119 embedded_launcher: true,
1120 },
Nan Zhang2db709d2017-11-08 20:48:46 -08001121 },
1122}
1123
1124python_binary_host {
1125 name: "fontchain_linter",
1126 defaults: ["base_default"],
1127 main: "tools/fonts/fontchain_linter.py",
1128 srcs: [
1129 "tools/fonts/fontchain_linter.py",
1130 ],
1131 libs: [
1132 "fontTools",
1133 ],
1134}
Nan Zhang172875b2018-02-27 11:24:03 -08001135
Nan Zhangaf251302018-08-30 10:59:51 -07001136filegroup {
Insun Kang06b25ae2018-11-20 10:05:44 +09001137 name: "framework-media-annotation-srcs",
1138 srcs: [
Jeff Sharkey40182832019-12-18 14:06:48 -07001139 ":framework-annotations",
Insun Kang06b25ae2018-11-20 10:05:44 +09001140 "core/java/android/annotation/CallbackExecutor.java",
Insun Kangf86a56c2019-01-22 17:16:07 +09001141 "core/java/android/annotation/CallSuper.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001142 "core/java/android/annotation/DrawableRes.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001143 "core/java/android/annotation/LongDef.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001144 "core/java/android/annotation/StringDef.java",
Jeff Sharkey40182832019-12-18 14:06:48 -07001145 ],
1146}
1147
1148filegroup {
1149 name: "framework-mediaprovider-annotation-sources",
1150 srcs: [
1151 ":framework-annotations",
1152 "core/java/android/annotation/BytesLong.java",
Jeff Sharkey40182832019-12-18 14:06:48 -07001153 "core/java/android/annotation/CurrentTimeSecondsLong.java",
1154 "core/java/android/annotation/DurationMillisLong.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001155 ],
1156}
1157
Andrei Onea7a2985c2019-02-18 15:28:35 +00001158// Creates an index of AIDL methods; used for adding UnsupportedAppUsage
1159// annotations to private apis
1160aidl_mapping {
1161 name: "framework-aidl-mappings",
Jiyong Parkae9972b2019-09-15 20:19:02 +09001162 srcs: [":framework-all-sources"],
Tobias Thiererbc05034a2019-05-23 16:20:12 +01001163 output: "framework-aidl-mappings.txt",
Kyunglyul Hyund51666d2019-04-11 04:08:40 +00001164}
Anna Trostanetski97088e92019-06-26 14:47:58 +01001165
Chen Xu192bf1f2019-09-05 22:07:42 -07001166// Avoid including Parcelable classes as we don't want to have two copies of
Malcolm Chen58b59a52020-01-14 19:25:13 -08001167// Parcelable cross the libraries. This is used by telephony-common (frameworks/opt/telephony)
1168// and TeleService app (packages/services/Telephony).
Chen Xu192bf1f2019-09-05 22:07:42 -07001169filegroup {
Malcolm Chen58b59a52020-01-14 19:25:13 -08001170 name: "framework-telephony-common-shared-srcs",
Chen Xu192bf1f2019-09-05 22:07:42 -07001171 srcs: [
Hall Liuaa4398e2019-12-24 14:13:25 -08001172 "core/java/android/os/BasicShellCommandHandler.java",
Chen Xu192bf1f2019-09-05 22:07:42 -07001173 "core/java/android/os/RegistrantList.java",
1174 "core/java/android/os/Registrant.java",
1175 "core/java/android/util/LocalLog.java",
Chen Xu192bf1f2019-09-05 22:07:42 -07001176 "core/java/android/util/TimeUtils.java",
1177 "core/java/com/android/internal/os/SomeArgs.java",
Meng Wang9c2a8e02019-12-13 16:45:34 -08001178 "core/java/com/android/internal/util/AsyncChannel.java",
Meng Wang3043dac2020-01-14 14:04:10 -08001179 "core/java/com/android/internal/util/AsyncService.java",
Meng Wang9c2a8e02019-12-13 16:45:34 -08001180 "core/java/com/android/internal/util/BitwiseInputStream.java",
Michelebadc0212019-10-31 11:48:43 -07001181 "core/java/com/android/internal/util/FastXmlSerializer.java",
1182 "core/java/com/android/internal/util/HexDump.java",
Meng Wang64fffb92019-12-02 10:42:20 -08001183 "core/java/com/android/internal/util/IState.java",
Michelebadc0212019-10-31 11:48:43 -07001184 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Chen Xu192bf1f2019-09-05 22:07:42 -07001185 "core/java/com/android/internal/util/Preconditions.java",
1186 "core/java/com/android/internal/util/State.java",
1187 "core/java/com/android/internal/util/StateMachine.java",
Michelebadc0212019-10-31 11:48:43 -07001188 "core/java/com/android/internal/util/UserIcons.java",
Chen Xu192bf1f2019-09-05 22:07:42 -07001189 ],
1190}
1191
Chen Xu4fea79c2019-10-08 18:39:03 -07001192// Avoid including Parcelable classes as we don't want to have two copies of
Malcolm Chen58b59a52020-01-14 19:25:13 -08001193// Parcelable cross the process. This is used by framework-telephony (frameworks/base/telephony).
1194filegroup {
1195 name: "framework-telephony-shared-srcs",
1196 srcs: [
1197 "core/java/android/util/RecurrenceRule.java",
1198 "core/java/com/android/internal/os/SomeArgs.java",
1199 "core/java/com/android/internal/util/BitwiseInputStream.java",
1200 "core/java/com/android/internal/util/BitwiseOutputStream.java",
Hall Liu29b1874f2020-04-07 18:23:09 -07001201 "core/java/com/android/internal/util/FunctionalUtils.java",
Malcolm Chen58b59a52020-01-14 19:25:13 -08001202 "core/java/com/android/internal/util/HexDump.java",
1203 "core/java/com/android/internal/util/IndentingPrintWriter.java",
1204 "core/java/com/android/internal/util/Preconditions.java",
1205 ],
1206}
1207
1208// Avoid including Parcelable classes as we don't want to have two copies of
Chen Xu4fea79c2019-10-08 18:39:03 -07001209// Parcelable cross the process.
1210filegroup {
1211 name: "framework-cellbroadcast-shared-srcs",
1212 srcs: [
Jordan Liu15a72742019-11-20 13:55:18 -08001213 "core/java/android/os/HandlerExecutor.java",
Chen Xu4fea79c2019-10-08 18:39:03 -07001214 "core/java/android/util/LocalLog.java",
Jordan Liu15a72742019-11-20 13:55:18 -08001215 "core/java/com/android/internal/util/IState.java",
1216 "core/java/com/android/internal/util/Preconditions.java",
Chen Xu4fea79c2019-10-08 18:39:03 -07001217 "core/java/com/android/internal/util/State.java",
1218 "core/java/com/android/internal/util/StateMachine.java",
1219 ],
atrostce84de02019-10-08 16:16:47 +01001220}
Roshan Pius09de13e2019-10-16 13:16:04 -07001221
1222filegroup {
Jayachandran Ceeffa012019-10-23 18:06:33 -07001223 name: "framework-ims-common-shared-srcs",
1224 srcs: [
Jayachandran Ceeffa012019-10-23 18:06:33 -07001225 "core/java/android/os/RegistrantList.java",
1226 "core/java/android/os/Registrant.java",
1227 "core/java/com/android/internal/os/SomeArgs.java",
1228 "core/java/com/android/internal/util/Preconditions.java",
1229 ],
1230}
1231
David Su511a8142020-01-09 14:02:21 -08001232// utility classes statically linked into framework-wifi and dynamically linked
1233// into wifi-service
1234java_library {
1235 name: "framework-wifi-util-lib",
Anton Hansson5a088e02020-03-31 18:09:01 +01001236 sdk_version: "module_current",
David Su511a8142020-01-09 14:02:21 -08001237 srcs: [
1238 "core/java/android/content/pm/BaseParceledListSlice.java",
1239 "core/java/android/content/pm/ParceledListSlice.java",
David Su369c9202020-01-09 18:09:56 -08001240 "core/java/android/os/HandlerExecutor.java",
David Su511a8142020-01-09 14:02:21 -08001241 "core/java/com/android/internal/util/AsyncChannel.java",
1242 "core/java/com/android/internal/util/AsyncService.java",
1243 "core/java/com/android/internal/util/Protocol.java",
1244 "core/java/com/android/internal/util/Preconditions.java",
David Su369c9202020-01-09 18:09:56 -08001245 "telephony/java/android/telephony/Annotation.java",
David Su298cd362020-01-17 19:02:49 +00001246 ":net-utils-framework-wifi-common-srcs",
David Su511a8142020-01-09 14:02:21 -08001247 ],
1248 libs: [
1249 "framework-annotations-lib",
1250 "unsupportedappusage",
David Su511a8142020-01-09 14:02:21 -08001251 ],
David Su57bca312020-04-21 19:49:32 -07001252 visibility: [
1253 "//frameworks/base/wifi",
1254 "//frameworks/base/services/net",
1255 ],
David Su511a8142020-01-09 14:02:21 -08001256}
1257
David Su72f9d632020-02-10 15:58:26 -08001258filegroup {
1259 name: "framework-wifi-util-lib-aidls",
1260 srcs: ["core/java/android/content/pm/ParceledListSlice.aidl"],
1261 path: "core/java",
1262}
1263
David Su511a8142020-01-09 14:02:21 -08001264// utility classes statically linked into wifi-service
Jayachandran Ceeffa012019-10-23 18:06:33 -07001265filegroup {
Roshan Pius62eb61c2019-12-06 13:49:47 -08001266 name: "framework-wifi-service-shared-srcs",
Roshan Pius09de13e2019-10-16 13:16:04 -07001267 srcs: [
Roshan Piusc93cd7a2019-12-09 07:39:41 -08001268 "core/java/android/net/InterfaceConfiguration.java",
Roshan Pius3032c892020-01-08 11:10:15 -08001269 "core/java/android/os/BasicShellCommandHandler.java",
Roshan Pius04769a52019-12-04 13:03:47 -08001270 "core/java/android/util/BackupUtils.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001271 "core/java/android/util/Rational.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001272 "core/java/com/android/internal/util/FastXmlSerializer.java",
1273 "core/java/com/android/internal/util/HexDump.java",
1274 "core/java/com/android/internal/util/IState.java",
1275 "core/java/com/android/internal/util/MessageUtils.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001276 "core/java/com/android/internal/util/State.java",
1277 "core/java/com/android/internal/util/StateMachine.java",
1278 "core/java/com/android/internal/util/WakeupMessage.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001279 ],
David Su298cd362020-01-17 19:02:49 +00001280 visibility: ["//frameworks/opt/net/wifi/service"],
Roshan Pius09de13e2019-10-16 13:16:04 -07001281}
Jiyong Park0d7e86d2019-12-20 14:35:43 +09001282
1283// TODO(b/145644363): move this to under StubLibraries.bp or ApiDocs.bp
1284metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " +
1285 "--ignore-classes-on-classpath " +
1286 "--hide-package com.android.server " +
1287 "--error UnhiddenSystemApi " +
1288 "--hide RequiresPermission " +
1289 "--hide CallbackInterface " +
1290 "--hide MissingPermission --hide BroadcastBehavior " +
1291 "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " +
1292 "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " +
Makoto Onukia664a902020-05-26 10:55:53 -07001293 "--error NoSettingsProvider " +
Aurimas Liutikas1f76a5a2019-11-20 17:51:42 -08001294 "--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.* " +
1295 "--api-lint-ignore-prefix android.icu. " +
1296 "--api-lint-ignore-prefix java. " +
1297 "--api-lint-ignore-prefix junit. " +
1298 "--api-lint-ignore-prefix org. "
Jiyong Park0d7e86d2019-12-20 14:35:43 +09001299
1300build = [
1301 "StubLibraries.bp",
1302 "ApiDocs.bp",
1303]
Chen Xu546ce5e2020-01-10 08:38:31 -08001304
Chen Xu546ce5e2020-01-10 08:38:31 -08001305java_library {
1306 name: "framework-telephony",
1307 srcs: [
Malcolm Chenc7991802020-03-16 15:28:35 -07001308 //":framework-telephony-sources",
1309 //":framework-telephony-shared-srcs",
Chen Xu546ce5e2020-01-10 08:38:31 -08001310 ],
1311 // TODO: change to framework-system-stub to build against system APIs.
1312 libs: [
1313 "framework-minus-apex",
1314 "unsupportedappusage",
1315 ],
1316 static_libs: [
1317 "libphonenumber-platform",
1318 "app-compat-annotations",
1319 ],
1320 sdk_version: "core_platform",
1321 aidl: {
1322 export_include_dirs: ["telephony/java"],
1323 include_dirs: [
1324 "frameworks/native/aidl/binder",
1325 "frameworks/native/aidl/gui",
1326 ]
1327 },
Malcolm Chen58b59a52020-01-14 19:25:13 -08001328 jarjar_rules: ":framework-telephony-jarjar-rules",
Chen Xu546ce5e2020-01-10 08:38:31 -08001329 dxflags: [
1330 "--core-library",
1331 "--multi-dex",
1332 ],
1333 // This is to break the dependency from boot jars.
1334 dex_preopt: {
1335 enabled: false,
1336 },
1337 installable: true,
1338}
1339
1340filegroup {
Malcolm Chen58b59a52020-01-14 19:25:13 -08001341 name: "framework-telephony-jarjar-rules",
Chen Xu546ce5e2020-01-10 08:38:31 -08001342 srcs: ["telephony/framework-telephony-jarjar-rules.txt"],
Amit Mahajan07a18712020-04-07 07:34:45 -07001343}