2021-02-12 17:07:05 -08:00
|
|
|
package {
|
|
|
|
// See: http://go/android-license-faq
|
|
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
|
|
// all of the 'license_kinds' from "frameworks_base_license"
|
|
|
|
// to get the below license kinds:
|
|
|
|
// SPDX-license-identifier-Apache-2.0
|
|
|
|
default_applicable_licenses: ["frameworks_base_license"],
|
|
|
|
}
|
|
|
|
|
2019-11-17 13:11:19 +09:00
|
|
|
filegroup {
|
|
|
|
name: "services.net-sources",
|
|
|
|
srcs: ["java/**/*.java"],
|
|
|
|
path: "java",
|
|
|
|
visibility: ["//frameworks/base/services"],
|
|
|
|
}
|
|
|
|
|
2017-12-05 09:46:29 -08:00
|
|
|
java_library_static {
|
|
|
|
name: "services.net",
|
2020-10-23 14:30:42 -06:00
|
|
|
defaults: ["platform_service_defaults"],
|
2019-09-09 20:50:49 +08:00
|
|
|
srcs: [
|
2019-08-09 15:52:06 +09:00
|
|
|
":net-module-utils-srcs",
|
2019-11-17 13:11:19 +09:00
|
|
|
":services.net-sources",
|
2019-09-09 20:50:49 +08:00
|
|
|
],
|
2019-02-13 18:28:35 +09:00
|
|
|
static_libs: [
|
2020-12-25 18:06:53 +08:00
|
|
|
"netd-client",
|
2019-08-08 15:49:46 +09:00
|
|
|
"networkstack-client",
|
2020-01-14 14:22:23 +09:00
|
|
|
"net-utils-services-common",
|
2019-04-05 15:15:48 +09:00
|
|
|
],
|
2019-01-30 21:04:58 +09:00
|
|
|
}
|
|
|
|
|
2020-02-21 07:37:30 -08:00
|
|
|
// Version of services.net for usage by the wifi mainline module.
|
|
|
|
// Note: This is compiled against module_current.
|
2020-11-04 17:19:16 +00:00
|
|
|
// TODO(b/172457099): This should be moved to networkstack-client,
|
2020-02-21 07:37:30 -08:00
|
|
|
// with dependencies moved to frameworks/libs/net right.
|
|
|
|
java_library {
|
|
|
|
name: "services.net-module-wifi",
|
|
|
|
srcs: [
|
|
|
|
":framework-services-net-module-wifi-shared-srcs",
|
2020-11-04 17:19:16 +00:00
|
|
|
":net-utils-services-common-srcs",
|
2020-02-21 07:37:30 -08:00
|
|
|
],
|
|
|
|
sdk_version: "module_current",
|
2020-11-04 17:19:16 +00:00
|
|
|
min_sdk_version: "30",
|
2020-02-21 07:37:30 -08:00
|
|
|
libs: [
|
2021-11-01 15:01:05 +09:00
|
|
|
"framework-annotations-lib",
|
2020-02-21 07:37:30 -08:00
|
|
|
"unsupportedappusage",
|
2020-04-21 19:49:32 -07:00
|
|
|
"framework-wifi-util-lib",
|
2021-04-26 20:48:11 +09:00
|
|
|
"framework-connectivity",
|
|
|
|
"modules-utils-build_system",
|
2020-02-21 07:37:30 -08:00
|
|
|
],
|
|
|
|
static_libs: [
|
2020-04-11 00:54:45 +09:00
|
|
|
// All the classes in netd_aidl_interface must be jarjar so they do not conflict with the
|
|
|
|
// classes generated by netd_aidl_interfaces-platform-java above.
|
2020-04-07 15:45:02 +00:00
|
|
|
"netd_aidl_interface-V3-java",
|
2020-02-21 07:37:30 -08:00
|
|
|
"networkstack-client",
|
|
|
|
],
|
|
|
|
apex_available: [
|
|
|
|
"com.android.wifi",
|
|
|
|
],
|
|
|
|
visibility: [
|
|
|
|
"//frameworks/opt/net/wifi/service",
|
|
|
|
"//frameworks/opt/net/wifi/tests/wifitests",
|
2020-12-24 06:05:52 +00:00
|
|
|
"//packages/modules/Wifi/service",
|
|
|
|
"//packages/modules/Wifi/service/tests/wifitests",
|
2020-02-21 07:37:30 -08:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2019-09-03 15:58:06 +08:00
|
|
|
filegroup {
|
|
|
|
name: "services-tethering-shared-srcs",
|
|
|
|
srcs: [
|
|
|
|
":framework-annotations",
|
2019-09-09 20:50:49 +08:00
|
|
|
"java/android/net/util/NetworkConstants.java",
|
2019-09-03 15:58:06 +08:00
|
|
|
],
|
2020-10-29 02:11:55 +00:00
|
|
|
visibility: [
|
|
|
|
"//frameworks/base/packages/Tethering",
|
2021-04-26 20:48:11 +09:00
|
|
|
"//packages/modules/Connectivity/Tethering",
|
2020-10-29 02:11:55 +00:00
|
|
|
],
|
2019-09-03 15:58:06 +08:00
|
|
|
}
|
2021-03-22 10:25:12 +00:00
|
|
|
|
|
|
|
filegroup {
|
|
|
|
name: "services-connectivity-shared-srcs",
|
|
|
|
srcs: [
|
|
|
|
// TODO: move to libs/net
|
|
|
|
"java/android/net/util/NetworkConstants.java",
|
|
|
|
],
|
|
|
|
}
|