mirror of
https://github.com/Evolution-X-Devices/device_google_gs201
synced 2026-01-27 19:18:35 +00:00
review hal_usb
Bug: 201599187 Test: boot with hal_usb_impl started Change-Id: I77875c6911f6582454d666a57ed59cc1e386885b
This commit is contained in:
@@ -3,8 +3,6 @@
|
||||
#
|
||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.usb@1\.0-service32 u:object_r:hal_usb_default_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/vendor\.samsung_slsi\.hardware\.configstore@1\.0-service u:object_r:hal_configstore_default_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.usb@1\.3-service\.gs201 u:object_r:hal_usb_impl_exec:s0
|
||||
|
||||
|
||||
/vendor/bin/usf_stats u:object_r:vendor_usf_stats:s0
|
||||
/vendor/bin/usf_reg_edit u:object_r:vendor_usf_reg_edit:s0
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
type hal_usb_impl, domain;
|
||||
hal_server_domain(hal_usb_impl, hal_usb)
|
||||
hal_server_domain(hal_usb_impl, hal_usb_gadget)
|
||||
|
||||
type hal_usb_impl_exec, vendor_file_type, exec_type, file_type;
|
||||
init_daemon_domain(hal_usb_impl)
|
||||
|
||||
allow hal_usb_impl functionfs:dir { watch watch_reads };
|
||||
set_prop(hal_usb_impl, vendor_usb_config_prop)
|
||||
|
||||
allow hal_usb_impl sysfs_batteryinfo:dir r_dir_perms;
|
||||
allow hal_usb_impl sysfs_batteryinfo:file rw_file_perms;
|
||||
allow hal_usb_impl sysfs_extcon:dir search;
|
||||
@@ -2,7 +2,6 @@
|
||||
vendor_internal_prop(vendor_prop)
|
||||
vendor_internal_prop(sensors_prop)
|
||||
vendor_internal_prop(vendor_device_prop)
|
||||
vendor_internal_prop(vendor_usb_config_prop)
|
||||
# vendor defaults
|
||||
vendor_internal_prop(vendor_config_default_prop)
|
||||
vendor_internal_prop(vendor_ro_sys_default_prop)
|
||||
|
||||
@@ -12,10 +12,6 @@ vendor.debug.c2.level u:object_r:vendor_codec2_debug_prop:s0
|
||||
vendor.debug.c2.dump u:object_r:vendor_codec2_debug_prop:s0
|
||||
vendor.debug.c2.dump.opt u:object_r:vendor_codec2_debug_prop:s0
|
||||
|
||||
# USB HAL
|
||||
persist.vendor.usb. u:object_r:vendor_usb_config_prop:s0
|
||||
vendor.usb. u:object_r:vendor_usb_config_prop:s0
|
||||
|
||||
# for logger app
|
||||
vendor.pixellogger. u:object_r:vendor_logger_prop:s0
|
||||
persist.vendor.pixellogger. u:object_r:vendor_logger_prop:s0
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
/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 Firmwares
|
||||
/vendor/firmware(/.*)? u:object_r:vendor_fw_file:s0
|
||||
|
||||
4
whitechapel_pro/hal_usb_impl.te
Normal file
4
whitechapel_pro/hal_usb_impl.te
Normal file
@@ -0,0 +1,4 @@
|
||||
type hal_usb_impl, domain;
|
||||
|
||||
type hal_usb_impl_exec, vendor_file_type, exec_type, file_type;
|
||||
init_daemon_domain(hal_usb_impl)
|
||||
@@ -12,4 +12,5 @@ vendor_internal_prop(vendor_secure_element_prop)
|
||||
vendor_internal_prop(vendor_battery_profile_prop)
|
||||
vendor_internal_prop(vendor_battery_defender_prop)
|
||||
vendor_internal_prop(vendor_camera_prop)
|
||||
vendor_internal_prop(vendor_usb_config_prop)
|
||||
|
||||
|
||||
@@ -4,6 +4,10 @@ persist.vendor.sys.diag. u:object_r:vendor_diag_prop:s0
|
||||
vendor.sys.dmd. u:object_r:vendor_diag_prop:s0
|
||||
vendor.sys.diag. u:object_r:vendor_diag_prop:s0
|
||||
|
||||
# USB HAL
|
||||
persist.vendor.usb. u:object_r:vendor_usb_config_prop:s0
|
||||
vendor.usb. u:object_r:vendor_usb_config_prop:s0
|
||||
|
||||
# for slog
|
||||
vendor.sys.silentlog. u:object_r:vendor_slog_prop:s0
|
||||
vendor.sys.exynos.slog. u:object_r:vendor_slog_prop:s0
|
||||
|
||||
Reference in New Issue
Block a user