sdm845-common -> sm8250-common
This commit is contained in:
@@ -14,9 +14,9 @@
|
||||
|
||||
# HALs
|
||||
/(product|system/product)/vendor_overlay/[0-9]+/bin/hw/android\.hardware\.light@2\.0-service u:object_r:hal_light_default_exec:s0
|
||||
/system/bin/hw/lineage\.biometrics\.fingerprint\.inscreen@1.0-service\.oneplus_fajita u:object_r:hal_fod_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\.biometrics\.fingerprint\.inscreen@1.0-service\.oneplus_kona u:object_r:hal_fod_kona_exec:s0
|
||||
/system/bin/hw/lineage\.livedisplay@2\.0-service\.oneplus_kona u:object_r:hal_livedisplay_kona_exec:s0
|
||||
/system/bin/hw/lineage\.touch@1\.0-service\.oneplus_kona u:object_r:hal_touch_kona_exec:s0
|
||||
|
||||
# DASH
|
||||
/system/bin/dashd u:object_r:dashd_exec:s0
|
||||
|
||||
23
sepolicy/private/hal_fod_kona.te
Normal file
23
sepolicy/private/hal_fod_kona.te
Normal file
@@ -0,0 +1,23 @@
|
||||
type hal_fod_kona, coredomain, domain;
|
||||
hal_server_domain(hal_fod_kona, hal_lineage_fod)
|
||||
|
||||
type hal_fod_kona_exec, system_file_type, exec_type, file_type;
|
||||
init_daemon_domain(hal_fod_kona)
|
||||
|
||||
# Allow access to the HALs
|
||||
hal_client_domain(hal_fod_kona, hal_fingerprint)
|
||||
|
||||
# Allow binder communication with hal_display_default
|
||||
binder_call(hal_fod_kona, hal_display_default)
|
||||
|
||||
# Allow binder communication with hal_fingerprint
|
||||
binder_call(hal_fod_kona, hal_fingerprint)
|
||||
|
||||
# Allow hal_fod_kona to hal_display_hwservice
|
||||
allow hal_fod_kona hal_display_hwservice:hwservice_manager find;
|
||||
|
||||
# Allow hal_fod_kona to hal_fingerprint_hwservice
|
||||
allow hal_fod_kona hal_fingerprint_hwservice:hwservice_manager find;
|
||||
|
||||
# Allow hal_fod_kona to read and write to sysfs_fod
|
||||
allow hal_fod_kona sysfs_fod:file rw_file_perms;
|
||||
@@ -1,23 +0,0 @@
|
||||
type hal_fod_sdm845, coredomain, domain;
|
||||
hal_server_domain(hal_fod_sdm845, hal_lineage_fod)
|
||||
|
||||
type hal_fod_sdm845_exec, system_file_type, exec_type, file_type;
|
||||
init_daemon_domain(hal_fod_sdm845)
|
||||
|
||||
# Allow access to the HALs
|
||||
hal_client_domain(hal_fod_sdm845, hal_fingerprint)
|
||||
|
||||
# Allow binder communication with hal_display_default
|
||||
binder_call(hal_fod_sdm845, hal_display_default)
|
||||
|
||||
# Allow binder communication with hal_fingerprint
|
||||
binder_call(hal_fod_sdm845, hal_fingerprint)
|
||||
|
||||
# Allow hal_fod_sdm845 to hal_display_hwservice
|
||||
allow hal_fod_sdm845 hal_display_hwservice:hwservice_manager find;
|
||||
|
||||
# Allow hal_fod_sdm845 to hal_fingerprint_hwservice
|
||||
allow hal_fod_sdm845 hal_fingerprint_hwservice:hwservice_manager find;
|
||||
|
||||
# Allow hal_fod_sdm845 to read and write to sysfs_fod
|
||||
allow hal_fod_sdm845 sysfs_fod:file rw_file_perms;
|
||||
12
sepolicy/private/hal_livedisplay_kona.te
Normal file
12
sepolicy/private/hal_livedisplay_kona.te
Normal file
@@ -0,0 +1,12 @@
|
||||
type hal_livedisplay_kona, coredomain, domain;
|
||||
hal_server_domain(hal_livedisplay_kona, hal_lineage_livedisplay)
|
||||
|
||||
type hal_livedisplay_kona_exec, system_file_type, exec_type, file_type;
|
||||
init_daemon_domain(hal_livedisplay_kona)
|
||||
|
||||
# Allow LiveDisplay to store files under /data/misc/display and access them
|
||||
allow hal_livedisplay_kona display_misc_file:dir rw_dir_perms;
|
||||
allow hal_livedisplay_kona display_misc_file:file create_file_perms;
|
||||
|
||||
# Grant access over LiveDisplay tuneables
|
||||
allow hal_livedisplay_kona sysfs_livedisplay_tuneable:file rw_file_perms;
|
||||
@@ -1,12 +0,0 @@
|
||||
type hal_livedisplay_sdm845, coredomain, domain;
|
||||
hal_server_domain(hal_livedisplay_sdm845, hal_lineage_livedisplay)
|
||||
|
||||
type hal_livedisplay_sdm845_exec, system_file_type, exec_type, file_type;
|
||||
init_daemon_domain(hal_livedisplay_sdm845)
|
||||
|
||||
# Allow LiveDisplay to store files under /data/misc/display and access them
|
||||
allow hal_livedisplay_sdm845 display_misc_file:dir rw_dir_perms;
|
||||
allow hal_livedisplay_sdm845 display_misc_file:file create_file_perms;
|
||||
|
||||
# Grant access over LiveDisplay tuneables
|
||||
allow hal_livedisplay_sdm845 sysfs_livedisplay_tuneable:file rw_file_perms;
|
||||
9
sepolicy/private/hal_touch_kona.te
Normal file
9
sepolicy/private/hal_touch_kona.te
Normal file
@@ -0,0 +1,9 @@
|
||||
type hal_touch_kona, coredomain, domain;
|
||||
hal_server_domain(hal_touch_kona, hal_lineage_touch)
|
||||
|
||||
type hal_touch_kona_exec, system_file_type, exec_type, file_type;
|
||||
init_daemon_domain(hal_touch_kona)
|
||||
|
||||
# Allow access to gesture enable nodes
|
||||
allow hal_touch_kona proc_touchpanel:dir search;
|
||||
allow hal_touch_kona proc_touchpanel:file rw_file_perms;
|
||||
@@ -1,9 +0,0 @@
|
||||
type hal_touch_sdm845, coredomain, domain;
|
||||
hal_server_domain(hal_touch_sdm845, hal_lineage_touch)
|
||||
|
||||
type hal_touch_sdm845_exec, system_file_type, exec_type, file_type;
|
||||
init_daemon_domain(hal_touch_sdm845)
|
||||
|
||||
# Allow access to gesture enable nodes
|
||||
allow hal_touch_sdm845 proc_touchpanel:dir search;
|
||||
allow hal_touch_sdm845 proc_touchpanel:file rw_file_perms;
|
||||
Reference in New Issue
Block a user