Skip to content
Snippets Groups Projects
Commit 0dc49df9 authored by Kangping Dong's avatar Kangping Dong Committed by Gerrit Code Review
Browse files

Merge "[Thread] move Thread into com.android.tethering" into main

parents 88a88f13 e7fef893
No related branches found
No related tags found
No related merge requests found
......@@ -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",
],
}
\ No newline at end of file
}
......@@ -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"],
......
# 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
# Thread
Bring the [Thread](https://www.threadgroup.org/) networking protocol to Android.
//
// 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__",
],
}
//
// 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"],
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment