Merge "Cleanup: move VINTF fragment into VAPEX" into main am: e8d679e223

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

Change-Id: Ibb8d555c3847ced83d1c591b59de4c2724400755
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Jooyung Han 2023-10-19 02:25:53 +00:00 committed by Automerger Merge Worker
commit 65a3102d41
5 changed files with 8 additions and 8 deletions

View file

@ -43,9 +43,11 @@ cc_binary {
],
}
filegroup {
prebuilt_etc {
name: "android.hardware.usb-service.example.xml",
srcs: ["android.hardware.usb-service.example.xml"],
src: "android.hardware.usb-service.example.xml",
sub_dir: "vintf",
installable: false,
}
filegroup {

View file

@ -30,8 +30,8 @@ apex {
"com.android.hardware.usb.rc", // init .rc
"android.hardware.usb.accessory.prebuilt.xml",
"android.hardware.usb.host.prebuilt.xml",
"android.hardware.usb-service.example.xml",
],
vintf_fragments: [":android.hardware.usb-service.example.xml"],
}
// Replace the binary path from /vendor/bin to /apex/{name}/bin in the init .rc file

View file

@ -0,0 +1,3 @@
(/.*)? u:object_r:vendor_file:s0
/etc(/.*)? u:object_r:vendor_configs_file:s0
/bin/hw/android\.hardware\.usb-service\.example u:object_r:hal_usb_default_exec:s0

View file

@ -1,5 +0,0 @@
(/.*)? u:object_r:vendor_file:s0
# Permission XMLs
/etc/permissions(/.*)? u:object_r:vendor_configs_file:s0
# binary
/bin/hw/android\.hardware\.usb-service\.example u:object_r:hal_usb_default_exec:s0