review hal_usb

Bug: 201599187
Test: boot with hal_usb_impl started
Change-Id: I77875c6911f6582454d666a57ed59cc1e386885b
This commit is contained in:
Adam Shih
2021-09-30 11:00:43 +08:00
parent 7ac4d6ae8c
commit 82cdc92c84
8 changed files with 10 additions and 20 deletions

View File

@@ -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

View File

@@ -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;

View File

@@ -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)

View File

@@ -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

View File

@@ -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

View 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)

View File

@@ -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)

View File

@@ -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