mirror of
https://github.com/Evolution-X-Devices/device_google_zuma
synced 2026-02-01 07:08:55 +00:00
Merge "Add udc sysfs to udc_sysfs fs context" into main
This commit is contained in:
5
vendor/genfs_contexts
vendored
5
vendor/genfs_contexts
vendored
@@ -346,3 +346,8 @@ genfscon sysfs /devices/platform/13200000.ufs/pixel/boot_lun_enabled u
|
||||
# CPU
|
||||
genfscon sysfs /kernel/metrics/cpuidle_histogram/cpuidle_histogram u:object_r:sysfs_cpu:s0
|
||||
genfscon sysfs /kernel/metrics/cpuidle_histogram/cpucluster_histogram u:object_r:sysfs_cpu:s0
|
||||
|
||||
# USB
|
||||
starting_at_board_api(202504, `
|
||||
genfscon sysfs /devices/platform/11210000.usb/11210000.dwc3/udc/11210000.dwc3/state u:object_r:sysfs_udc:s0
|
||||
')
|
||||
|
||||
3
vendor/hal_usb_impl.te
vendored
3
vendor/hal_usb_impl.te
vendored
@@ -20,6 +20,9 @@ hal_client_domain(hal_usb_impl, hal_thermal);
|
||||
# For monitoring usb sysfs attributes
|
||||
allow hal_usb_impl sysfs_wakeup:dir search;
|
||||
allow hal_usb_impl sysfs_wakeup:file r_file_perms;
|
||||
starting_at_board_api(202504, `
|
||||
allow hal_usb_impl sysfs_udc:file r_file_perms;
|
||||
')
|
||||
|
||||
# For metrics upload
|
||||
allow hal_usb_impl fwk_stats_service:service_manager find;
|
||||
|
||||
Reference in New Issue
Block a user