Loading usb/aidl/default/Android.bp +4 −2 Original line number Diff line number Diff line Loading @@ -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 { Loading usb/apex/Android.bp→usb/aidl/default/apex/Android.bp +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading usb/apex/file_contexts→usb/aidl/default/apex/file_contexts +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 usb/apex/manifest.json→usb/aidl/default/apex/manifest.json +0 −0 File moved. View file Loading
usb/aidl/default/Android.bp +4 −2 Original line number Diff line number Diff line Loading @@ -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 { Loading
usb/apex/Android.bp→usb/aidl/default/apex/Android.bp +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
usb/apex/file_contexts→usb/aidl/default/apex/file_contexts +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