sdm845-common: Switch to common Trust HAL implementation
* OnePlus's OTG switch sysfs doesn't act the same as 'deny_new_usb' node breaking OTG entirely in some situations. Change-Id: I4f67d5cec5ded72ee835bfed9d34407eba1612d1
This commit is contained in:
@@ -14,7 +14,6 @@ type sysfs_battery_supply, sysfs_type, fs_type;
|
||||
type sysfs_fpc_proximity, sysfs_type, fs_type;
|
||||
type sysfs_graphics, sysfs_type, fs_type;
|
||||
type sysfs_oem, sysfs_type, fs_type;
|
||||
type sysfs_usb_supply, sysfs_type, fs_type;
|
||||
|
||||
# data
|
||||
type display_misc_file, file_type, data_file_type, core_data_file_type;
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
/system/bin/hw/android\.hardware\.light@2\.0-service\.oneplus_sdm845 u:object_r:hal_light_sdm845_exec:s0
|
||||
/system/bin/hw/lineage\.livedisplay@2\.0-service\.oneplus_sdm845 u:object_r:hal_livedisplay_sdm845_exec:s0
|
||||
/system/bin/hw/lineage\.touch@1\.0-service\.oneplus_sdm845 u:object_r:hal_touch_sdm845_exec:s0
|
||||
/system/bin/hw/lineage\.trust@1\.0-service\.oneplus_sdm845 u:object_r:hal_trust_sdm845_exec:s0
|
||||
/system/bin/hw/lineage\.trust@1\.0-service u:object_r:hal_trust_default_exec:s0
|
||||
|
||||
# Modules
|
||||
/system/lib/modules/wlan\.ko u:object_r:vendor_file:s0
|
||||
|
||||
5
sepolicy/private/hal_trust_default.te
Normal file
5
sepolicy/private/hal_trust_default.te
Normal file
@@ -0,0 +1,5 @@
|
||||
type hal_trust_default, coredomain, domain;
|
||||
hal_server_domain(hal_trust_default, hal_lineage_trust)
|
||||
|
||||
type hal_trust_default_exec, exec_type, file_type;
|
||||
init_daemon_domain(hal_trust_default)
|
||||
@@ -1,9 +0,0 @@
|
||||
type hal_trust_sdm845, coredomain, domain;
|
||||
hal_server_domain(hal_trust_sdm845, hal_lineage_trust)
|
||||
|
||||
type hal_trust_sdm845_exec, exec_type, file_type;
|
||||
init_daemon_domain(hal_trust_sdm845)
|
||||
|
||||
# Allow access to otg toggle node
|
||||
allow hal_trust_sdm845 sysfs_usb_supply:dir search;
|
||||
allow hal_trust_sdm845 sysfs_usb_supply:file rw_file_perms;
|
||||
Reference in New Issue
Block a user