universal7885: Add Glove Mode support

* Ref: e8b16f2cc2

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
This commit is contained in:
SamarV-121 2020-10-22 18:29:33 +05:30 committed by roynatech2544
commit 62d8b28aa1
6 changed files with 26 additions and 0 deletions

1
sepolicy/private/file.te Normal file
View file

@ -0,0 +1 @@
type sysfs_sec_tsp, fs_type, sysfs_type;

View file

@ -1,5 +1,8 @@
# Block device for ZRAM
/dev/block/zram0 u:object_r:swap_block_device:s0
# HALs
/system/bin/hw/lineage\.touch@1\.0-service\.samsung u:object_r:hal_touch_samsung_exec:s0
# Vendor overlay
/(product|system/product)/vendor_overlay/[0-9]+/etc(/.*)? u:object_r:vendor_configs_file:s0

View file

@ -0,0 +1 @@
genfscon sysfs /devices/virtual/sec/tsp u:object_r:sysfs_sec_tsp:s0

View file

@ -0,0 +1,8 @@
type hal_touch_samsung, domain, coredomain;
hal_server_domain(hal_touch_samsung, hal_lineage_touch)
type hal_touch_samsung_exec, system_file_type, exec_type, file_type;
init_daemon_domain(hal_touch_samsung)
allow hal_touch_samsung sysfs_sec_tsp:dir search;
allow hal_touch_samsung sysfs_sec_tsp:file rw_file_perms;