Roy Luo 5a75cda76d Add udc sysfs to udc_sysfs fs context
Meeded for system server to monitor usb gadget state.
Grant hal_usb_impl read access as it's needed by UsbDataSessionMonitor.
Starting at board level api 202504 due to its dependency on aosp/3337514

10956 10956 W android.hardwar: type=1400 audit(0.0:327): avc:  denied  { read } for  name="state" dev="sysfs" ino=84394 scontext=u:r:hal_usb_impl:s0 tcontext=u:object_r:sysfs_udc:s0 tclass=file permissive=0

Bug: 339241080
Test: tested on Oriole
Flag: android.hardware.usb.flags.enable_udc_sysfs_usb_state_update
Change-Id: Iac9384cc81090d71e0cda8a6ba83476af865fe33
2025-02-05 11:32:57 -08:00
2022-01-05 23:08:07 -08:00
2021-06-24 14:17:29 +08:00
2024-12-09 03:32:04 +00:00
2023-05-10 01:48:48 +00:00
Description
No description provided
494 MiB
Languages
C++ 69.9%
Makefile 28.1%
Java 2%