mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-23 04:25:33 -04:00
universal7885: Add Glove Mode support
* Ref: e8b16f2cc2
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
This commit is contained in:
parent
73f856920a
commit
62d8b28aa1
6 changed files with 26 additions and 0 deletions
1
sepolicy/private/file.te
Normal file
1
sepolicy/private/file.te
Normal file
|
|
@ -0,0 +1 @@
|
|||
type sysfs_sec_tsp, fs_type, sysfs_type;
|
||||
|
|
@ -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
|
||||
|
|
|
|||
1
sepolicy/private/genfs_contexts
Normal file
1
sepolicy/private/genfs_contexts
Normal file
|
|
@ -0,0 +1 @@
|
|||
genfscon sysfs /devices/virtual/sec/tsp u:object_r:sysfs_sec_tsp:s0
|
||||
8
sepolicy/private/hal_touch_samsung.te
Normal file
8
sepolicy/private/hal_touch_samsung.te
Normal 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;
|
||||
Loading…
Reference in a new issue