Merge "[Thread] add ot-daemon to com.android.tethering" into main
This commit is contained in:
@@ -96,6 +96,7 @@ apex {
|
|||||||
},
|
},
|
||||||
binaries: [
|
binaries: [
|
||||||
"clatd",
|
"clatd",
|
||||||
|
"ot-daemon",
|
||||||
],
|
],
|
||||||
canned_fs_config: "canned_fs_config",
|
canned_fs_config: "canned_fs_config",
|
||||||
bpfs: [
|
bpfs: [
|
||||||
@@ -111,7 +112,10 @@ apex {
|
|||||||
apps: [
|
apps: [
|
||||||
"ServiceConnectivityResources",
|
"ServiceConnectivityResources",
|
||||||
],
|
],
|
||||||
prebuilts: ["current_sdkinfo"],
|
prebuilts: [
|
||||||
|
"ot-daemon.init.34rc",
|
||||||
|
"current_sdkinfo",
|
||||||
|
],
|
||||||
manifest: "manifest.json",
|
manifest: "manifest.json",
|
||||||
key: "com.android.tethering.key",
|
key: "com.android.tethering.key",
|
||||||
// Indicates that pre-installed version of this apex can be compressed.
|
// Indicates that pre-installed version of this apex can be compressed.
|
||||||
|
|||||||
29
thread/apex/Android.bp
Normal file
29
thread/apex/Android.bp
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
//
|
||||||
|
// 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"],
|
||||||
|
}
|
||||||
|
|
||||||
|
// Versioned ot-daemon init file which will be processed by the system on 34+ devices.
|
||||||
|
// See https://android.googlesource.com/platform/system/core/+/HEAD/init/README.md#versioned-rc-files-within-apexs
|
||||||
|
// for details of versioned rc files.
|
||||||
|
prebuilt_etc {
|
||||||
|
name: "ot-daemon.init.34rc",
|
||||||
|
src: "ot-daemon.34rc",
|
||||||
|
filename: "init.34rc",
|
||||||
|
installable: false,
|
||||||
|
}
|
||||||
24
thread/apex/ot-daemon.34rc
Normal file
24
thread/apex/ot-daemon.34rc
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
# 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.
|
||||||
|
|
||||||
|
service ot-daemon /apex/com.android.tethering/bin/ot-daemon -I thread-wpan --auto-attach=0 threadnetwork_hal://binder?none
|
||||||
|
interface aidl ot_daemon
|
||||||
|
disabled
|
||||||
|
oneshot
|
||||||
|
updatable
|
||||||
|
class main
|
||||||
|
user thread_network
|
||||||
|
group thread_network inet system
|
||||||
|
seclabel u:r:ot_daemon:s0
|
||||||
|
override
|
||||||
Reference in New Issue
Block a user