Merge "Convert Nlinterceptor HAL to Vendor Apex (CF)" into main am: cf4cbd0b9b

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2798153

Change-Id: I5ade17306ca8aca2d6720f06fa45f8402d288e9b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Kenn Frankel 2023-11-07 19:41:22 +00:00 committed by Automerger Merge Worker
commit 51f4d2506d
6 changed files with 42 additions and 6 deletions

View file

@ -25,8 +25,6 @@ package {
cc_binary {
name: "android.hardware.net.nlinterceptor-service.default",
init_rc: ["nlinterceptor-default.rc"],
vintf_fragments: ["nlinterceptor-default.xml"],
vendor: true,
relative_install_path: "hw",
defaults: ["nlinterceptor@defaults"],
@ -45,4 +43,35 @@ cc_binary {
"service.cpp",
"util.cpp",
],
installable: false, // installed in APEX
}
apex {
name: "com.android.hardware.net.nlinterceptor",
vendor: true,
manifest: "apex_manifest.json",
file_contexts: "apex_file_contexts",
key: "com.android.hardware.key",
certificate: ":com.android.hardware.certificate",
updatable: false,
binaries: [
"android.hardware.net.nlinterceptor-service.default",
],
prebuilts: [
"nlinterceptor.rc",
"nlinterceptor.xml",
],
}
prebuilt_etc {
name: "nlinterceptor.rc",
src: "nlinterceptor.rc",
installable: false,
}
prebuilt_etc {
name: "nlinterceptor.xml",
src: "nlinterceptor.xml",
sub_dir: "vintf",
installable: false,
}

View file

@ -0,0 +1,3 @@
(/.*)? u:object_r:vendor_file:s0
/etc(/.*)? u:object_r:vendor_configs_file:s0
/bin/hw/android\.hardware\.net\.nlinterceptor-service\.default u:object_r:hal_nlinterceptor_default_exec:s0

View file

@ -0,0 +1,4 @@
{
"name": "com.android.hardware.net.nlinterceptor",
"version": 1
}

View file

@ -1,4 +0,0 @@
service nlinterceptor /vendor/bin/hw/android.hardware.net.nlinterceptor-service.default
class hal
user root
group system inet

View file

@ -0,0 +1,4 @@
service nlinterceptor /apex/com.android.hardware.net.nlinterceptor/bin/hw/android.hardware.net.nlinterceptor-service.default
class hal
user root
group system inet