Tethering: add in-process vs out-of-process flag
This change results in the existence of either: /apex/com.android.tethering/etc/flag/out-of-process (Phones with mainline updatable Tethering in network_stack process) or /apex/com.android.tethering/etc/flag/in-process (Android Go with InProcessTethering in system_server process) These flags provide an easy way for the BpfLoader to detect the required selinux context for /sys/fs/bpf/tethering directory. Bug: 190523685 Bug: 236925089 Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I8e66806d81893885a5ebe8a6dd4194c5b9dae219
This commit is contained in:
parent
bf28a595f2
commit
760d1ed08a
|
@ -18,6 +18,20 @@ package {
|
|||
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "TetheringInProcessFlag",
|
||||
src: "in-process",
|
||||
filename_from_src: true,
|
||||
sub_dir: "flag",
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "TetheringOutOfProcessFlag",
|
||||
src: "out-of-process",
|
||||
filename_from_src: true,
|
||||
sub_dir: "flag",
|
||||
}
|
||||
|
||||
// Defaults to enable/disable java targets which uses development APIs. "enabled" may have a
|
||||
// different value depending on the branch.
|
||||
java_defaults {
|
||||
|
@ -82,6 +96,7 @@ apex {
|
|||
prebuilts: [
|
||||
"current_sdkinfo",
|
||||
"privapp_allowlist_com.android.tethering",
|
||||
"TetheringOutOfProcessFlag",
|
||||
],
|
||||
manifest: "manifest.json",
|
||||
key: "com.android.tethering.key",
|
||||
|
@ -187,4 +202,9 @@ override_apex {
|
|||
"ServiceConnectivityResources",
|
||||
"InProcessTethering",
|
||||
],
|
||||
prebuilts: [
|
||||
"current_sdkinfo",
|
||||
"privapp_allowlist_com.android.tethering",
|
||||
"TetheringInProcessFlag",
|
||||
],
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue