sdm845-common: Import pocketmode app and SELinux rules for it

* Based off android_device_oneplus_msm8998-common pocketmode
  app but without fpc10xx support and using actual OnePlus
  pocketmode sensor.

Change-Id: I73eaf7e00afd08cdad71d323b6821eb8a0160cd2
This commit is contained in:
LuK1337
2018-07-19 16:21:45 +02:00
committed by Luca Stefani
parent ee329ad0bb
commit 4ed29836d8
11 changed files with 259 additions and 0 deletions

View File

@@ -5,3 +5,4 @@ type op1_file, file_type;
type op2_file, file_type;
type persist_file, file_type;
type proc_touchpanel, fs_type;
type sysfs_fpc_proximity, sysfs_type, fs_type;

View File

@@ -6,6 +6,9 @@
/op2(/.*)? u:object_r:op2_file:s0
/persist(/.*)? u:object_r:persist_file:s0
# Files in sysfs
/sys/devices/platform/soc/soc:goodix_fp/proximity_state u:object_r:sysfs_fpc_proximity:s0
# Lights
/system/bin/hw/android\.hardware\.light@2\.0-service\.oneplus_sdm845 u:object_r:hal_light_sdm845_exec:s0

View File

@@ -0,0 +1 @@
allow system_app sysfs_fpc_proximity:file w_file_perms;