Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9cfbd5e authored by Jooyung Han's avatar Jooyung Han
Browse files

Cleanup: move VINTF fragment into VAPEX

Bug: 296524155
Test: m && launch_cvd
    # usb hal service is running
Change-Id: I5aebf03e1f651b8cd2753627ad55022be9eba8d6
parent d7447ae6
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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 {
+1 −1
Original line number Diff line number Diff line
@@ -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
+3 −0
Original line number Diff line number Diff line
(/.*)?                                                 u:object_r:vendor_file:s0
# Permission XMLs
/etc/permissions(/.*)?                         u:object_r:vendor_configs_file:s0
# binary
/etc(/.*)?                                             u:object_r:vendor_configs_file:s0
/bin/hw/android\.hardware\.usb-service\.example        u:object_r:hal_usb_default_exec:s0
 No newline at end of file