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:
commit
51f4d2506d
6 changed files with 42 additions and 6 deletions
|
@ -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,
|
||||
}
|
||||
|
|
3
wifi/netlinkinterceptor/aidl/default/apex_file_contexts
Normal file
3
wifi/netlinkinterceptor/aidl/default/apex_file_contexts
Normal 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
|
4
wifi/netlinkinterceptor/aidl/default/apex_manifest.json
Normal file
4
wifi/netlinkinterceptor/aidl/default/apex_manifest.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"name": "com.android.hardware.net.nlinterceptor",
|
||||
"version": 1
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
service nlinterceptor /vendor/bin/hw/android.hardware.net.nlinterceptor-service.default
|
||||
class hal
|
||||
user root
|
||||
group system inet
|
4
wifi/netlinkinterceptor/aidl/default/nlinterceptor.rc
Normal file
4
wifi/netlinkinterceptor/aidl/default/nlinterceptor.rc
Normal 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
|
Loading…
Reference in a new issue