android.hardware.usb.IUsb AIDL migration am: fc08341bd6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201-sepolicy/+/17009127 Change-Id: Ib469d2785c355195621edc4a509f3db07d11ea54
This commit is contained in:
commit
b68d5b153c
5 changed files with 34 additions and 1 deletions
|
@ -91,3 +91,6 @@ type sysfs_st33spi, sysfs_type, fs_type;
|
|||
|
||||
# GPU
|
||||
type sysfs_gpu, sysfs_type, fs_type;
|
||||
|
||||
# USB-C throttling stats
|
||||
type sysfs_usbc_throttling_stats, sysfs_type, fs_type;
|
|
@ -34,7 +34,8 @@
|
|||
/vendor/bin/hw/android\.hardware\.biometrics\.fingerprint-service\.goodix u:object_r:hal_fingerprint_default_exec:s0
|
||||
/vendor/bin/hw/android\.hardware\.nfc@1\.2-service\.st u:object_r:hal_nfc_default_exec:s0
|
||||
/vendor/bin/hw/vendor\.google\.wireless_charger@1\.3-service-vendor u:object_r:hal_wlc_exec:s0
|
||||
/vendor/bin/hw/android\.hardware\.usb@1\.3-service\.gs201 u:object_r:hal_usb_impl_exec:s0
|
||||
/vendor/bin/hw/android\.hardware\.usb-service u:object_r:hal_usb_impl_exec:s0
|
||||
/vendor/bin/hw/android\.hardware\.usb\.gadget-service u:object_r:hal_usb_gadget_impl_exec:s0
|
||||
/vendor/bin/hw/rild_exynos u:object_r:rild_exec:s0
|
||||
/vendor/bin/hw/hardware\.qorvo\.uwb-service u:object_r:hal_uwb_vendor_default_exec:s0
|
||||
/vendor/bin/rlsservice u:object_r:rlsservice_exec:s0
|
||||
|
|
|
@ -218,3 +218,8 @@ genfscon sysfs /module/gs_thermal/parameters/tmu_sub_reg_dump_fall_thres u:obj
|
|||
# Camera
|
||||
genfscon sysfs /devices/platform/17000030.devfreq_intcam/devfreq/17000030.devfreq_intcam/min_freq u:object_r:sysfs_camera:s0
|
||||
genfscon sysfs /devices/platform/17000060.devfreq_tnr/devfreq/17000060.devfreq_tnr/min_freq u:object_r:sysfs_camera:s0
|
||||
|
||||
# USB-C throttling stats
|
||||
genfscon sysfs /devices/platform/google,usbc_port_cooling_dev/cleared_time u:object_r:sysfs_usbc_throttling_stats:s0
|
||||
genfscon sysfs /devices/platform/google,usbc_port_cooling_dev/hysteresis_time u:object_r:sysfs_usbc_throttling_stats:s0
|
||||
genfscon sysfs /devices/platform/google,usbc_port_cooling_dev/trip_time u:object_r:sysfs_usbc_throttling_stats:s0
|
||||
|
|
10
whitechapel_pro/hal_usb_gadget_impl.te
Normal file
10
whitechapel_pro/hal_usb_gadget_impl.te
Normal file
|
@ -0,0 +1,10 @@
|
|||
type hal_usb_gadget_impl, domain;
|
||||
hal_server_domain(hal_usb_gadget_impl, hal_usb)
|
||||
hal_server_domain(hal_usb_gadget_impl, hal_usb_gadget)
|
||||
|
||||
type hal_usb_gadget_impl_exec, vendor_file_type, exec_type, file_type;
|
||||
init_daemon_domain(hal_usb_gadget_impl)
|
||||
|
||||
allow hal_usb_gadget_impl configfs:dir { create rmdir };
|
||||
allow hal_usb_gadget_impl functionfs:dir { watch watch_reads };
|
||||
set_prop(hal_usb_gadget_impl, vendor_usb_config_prop)
|
|
@ -10,3 +10,17 @@ allow hal_usb_impl functionfs:dir { watch watch_reads };
|
|||
|
||||
allow hal_usb_impl sysfs_batteryinfo:dir r_dir_perms;
|
||||
allow hal_usb_impl sysfs_batteryinfo:file rw_file_perms;
|
||||
|
||||
# Needed for reporting Usb Overheat suez event through statsd
|
||||
allow hal_usb_impl fwk_stats_service:service_manager find;
|
||||
binder_call(hal_usb_impl, servicemanager)
|
||||
|
||||
# Needed for monitoring usb port temperature
|
||||
allow hal_usb_impl self:capability2 wake_alarm;
|
||||
wakelock_use(hal_usb_impl);
|
||||
|
||||
# For interfacing with ThermalHAL
|
||||
hal_client_domain(hal_usb_impl, hal_thermal);
|
||||
|
||||
# For reading the usb-c throttling stats
|
||||
allow hal_usb_impl sysfs_usbc_throttling_stats:file r_file_perms;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue