Merge "Add sepolicy for SystemUIGoogle to write to lhbm" into sc-dev am: 75d0cce94f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/14105113 Change-Id: Iaaf7aacccae46d584eacc2f687f31583d6c605b2
This commit is contained in:
commit
d22884d3cd
3 changed files with 15 additions and 0 deletions
4
whitechapel/vendor/google/file.te
vendored
4
whitechapel/vendor/google/file.te
vendored
|
@ -188,3 +188,7 @@ type sysfs_bcmdhd, sysfs_type, fs_type;
|
|||
|
||||
# Video
|
||||
type sysfs_video, sysfs_type, fs_type;
|
||||
|
||||
# TODO(b/184768835): remove this once the bug is fixed
|
||||
# LHBM (Local High Brightness Mode)
|
||||
type sysfs_lhbm, sysfs_type, fs_type, mlstrustedobject;
|
||||
|
|
4
whitechapel/vendor/google/genfs_contexts
vendored
4
whitechapel/vendor/google/genfs_contexts
vendored
|
@ -111,6 +111,10 @@ genfscon sysfs /devices/platform/1c2d0000.drmdsim/1c2d0000.drmdsim.0/gamma
|
|||
genfscon sysfs /devices/platform/1c2c0000.drmdsim/hs_clock u:object_r:sysfs_display:s0
|
||||
genfscon sysfs /devices/platform/1c2d0000.drmdsim/hs_clock u:object_r:sysfs_display:s0
|
||||
|
||||
# TODO(b/184768835): remove this once the bug is fixed
|
||||
# Display / LHBM (Local High Brightness Mode)
|
||||
genfscon sysfs /devices/platform/1c2c0000.drmdsim/1c2c0000.drmdsim.0/backlight/panel0-backlight/local_hbm_mode u:object_r:sysfs_lhbm:s0
|
||||
|
||||
# Modem
|
||||
genfscon sysfs /devices/platform/cp-tm1/cp_temp u:object_r:sysfs_modem:s0
|
||||
|
||||
|
|
7
whitechapel/vendor/google/platform_app.te
vendored
7
whitechapel/vendor/google/platform_app.te
vendored
|
@ -15,3 +15,10 @@ binder_call(platform_app, twoshay)
|
|||
|
||||
# Fingerprint (UDFPS) GHBM/LHBM toggle
|
||||
get_prop(platform_app, fingerprint_ghbm_prop)
|
||||
|
||||
# TODO(b/184768835): remove this once the bug is fixed
|
||||
# Fingerprint (UDFPS) LHBM access
|
||||
userdebug_or_eng(`
|
||||
allow platform_app sysfs_leds:dir search;
|
||||
allow platform_app sysfs_lhbm:file rw_file_perms;
|
||||
')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue