Merge "[Thread] move Thread into com.android.tethering" into main
This commit is contained in:
@@ -42,6 +42,7 @@ java_defaults {
|
||||
srcs: [
|
||||
":framework-connectivity-tiramisu-updatable-sources",
|
||||
":framework-nearby-java-sources",
|
||||
":framework-thread-sources",
|
||||
],
|
||||
libs: [
|
||||
"unsupportedappusage",
|
||||
|
||||
@@ -55,6 +55,7 @@ java_library {
|
||||
"framework-wifi",
|
||||
"service-connectivity-pre-jarjar",
|
||||
"service-nearby-pre-jarjar",
|
||||
"service-thread-pre-jarjar",
|
||||
"ServiceConnectivityResources",
|
||||
"unsupportedappusage",
|
||||
],
|
||||
@@ -119,4 +120,4 @@ droidstubs {
|
||||
visibility: [
|
||||
"//visibility:private",
|
||||
],
|
||||
}
|
||||
}
|
||||
|
||||
@@ -237,6 +237,7 @@ java_defaults {
|
||||
"service-connectivity-tiramisu-pre-jarjar",
|
||||
"service-nearby-pre-jarjar",
|
||||
"service-remoteauth-pre-jarjar",
|
||||
"service-thread-pre-jarjar",
|
||||
],
|
||||
// The below libraries are not actually needed to build since no source is compiled
|
||||
// (only combining prebuilt static_libs), but they are necessary so that R8 has the right
|
||||
@@ -305,6 +306,7 @@ genrule {
|
||||
":service-connectivity-jarjar-gen",
|
||||
":service-nearby-jarjar-gen",
|
||||
":service-remoteauth-jarjar-gen",
|
||||
":service-thread-jarjar-gen",
|
||||
],
|
||||
out: ["connectivity-jarjar-rules.txt"],
|
||||
visibility: ["//packages/modules/Connectivity:__subpackages__"],
|
||||
@@ -374,6 +376,24 @@ java_genrule {
|
||||
visibility: ["//visibility:private"],
|
||||
}
|
||||
|
||||
java_genrule {
|
||||
name: "service-thread-jarjar-gen",
|
||||
tool_files: [
|
||||
":service-thread-pre-jarjar{.jar}",
|
||||
"jarjar-excludes.txt",
|
||||
],
|
||||
tools: [
|
||||
"jarjar-rules-generator",
|
||||
],
|
||||
out: ["service_thread_jarjar_rules.txt"],
|
||||
cmd: "$(location jarjar-rules-generator) " +
|
||||
"$(location :service-thread-pre-jarjar{.jar}) " +
|
||||
"--prefix com.android.server.thread " +
|
||||
"--excludes $(location jarjar-excludes.txt) " +
|
||||
"--output $(out)",
|
||||
visibility: ["//visibility:private"],
|
||||
}
|
||||
|
||||
genrule {
|
||||
name: "statslog-connectivity-java-gen",
|
||||
tools: ["stats-log-api-gen"],
|
||||
|
||||
11
thread/OWNERS
Normal file
11
thread/OWNERS
Normal file
@@ -0,0 +1,11 @@
|
||||
# Bug component: 1203089
|
||||
|
||||
# Primary reviewers
|
||||
wgtdkp@google.com
|
||||
handaw@google.com
|
||||
sunytt@google.com
|
||||
|
||||
# Secondary reviewers
|
||||
jonhui@google.com
|
||||
xyk@google.com
|
||||
zhanglongxia@google.com
|
||||
3
thread/README.md
Normal file
3
thread/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# Thread
|
||||
|
||||
Bring the [Thread](https://www.threadgroup.org/) networking protocol to Android.
|
||||
31
thread/framework/Android.bp
Normal file
31
thread/framework/Android.bp
Normal file
@@ -0,0 +1,31 @@
|
||||
//
|
||||
// Copyright (C) 2023 The Android Open Source Project
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
package {
|
||||
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||
}
|
||||
|
||||
filegroup {
|
||||
name: "framework-thread-sources",
|
||||
srcs: [
|
||||
"java/**/*.java",
|
||||
"java/**/*.aidl",
|
||||
],
|
||||
path: "java",
|
||||
visibility: [
|
||||
"//packages/modules/Connectivity:__subpackages__",
|
||||
],
|
||||
}
|
||||
36
thread/service/Android.bp
Normal file
36
thread/service/Android.bp
Normal file
@@ -0,0 +1,36 @@
|
||||
//
|
||||
// Copyright (C) 2023 The Android Open Source Project
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
package {
|
||||
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||
}
|
||||
|
||||
filegroup {
|
||||
name: "service-thread-sources",
|
||||
srcs: ["java/**/*.java"],
|
||||
}
|
||||
|
||||
java_library {
|
||||
name: "service-thread-pre-jarjar",
|
||||
defaults: ["framework-system-server-module-defaults"],
|
||||
sdk_version: "system_server_current",
|
||||
// This is included in service-connectivity which is 30+
|
||||
// TODO (b/293613362): allow APEXes to have service jars with higher min_sdk than the APEX
|
||||
// (service-connectivity is only used on 31+) and use 31 here
|
||||
min_sdk_version: "30",
|
||||
srcs: [":service-thread-sources"],
|
||||
apex_available: ["com.android.tethering"],
|
||||
}
|
||||
Reference in New Issue
Block a user