Merge changes from topic "touch_dumpstate_priority" into main
* changes: dumpstate: touch: Add touch_predump for focaltech dumpstate: touch: Add touch_predump for stm
This commit is contained in:
commit
4923764120
16 changed files with 64 additions and 0 deletions
|
@ -9,3 +9,11 @@ sh_binary {
|
|||
vendor: true,
|
||||
sub_dir: "dump",
|
||||
}
|
||||
|
||||
sh_binary {
|
||||
name: "predump_focaltech.sh",
|
||||
src: "dump_focaltech.sh",
|
||||
init_rc: ["init.touch.rc"],
|
||||
vendor: true,
|
||||
sub_dir: "dump_touch",
|
||||
}
|
||||
|
|
3
touch/focaltech/predump_focaltech.mk
Normal file
3
touch/focaltech/predump_focaltech.mk
Normal file
|
@ -0,0 +1,3 @@
|
|||
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/touch/focaltech/predump_sepolicy
|
||||
|
||||
PRODUCT_PACKAGES += predump_focaltech.sh
|
2
touch/focaltech/predump_sepolicy/file.te
Normal file
2
touch/focaltech/predump_sepolicy/file.te
Normal file
|
@ -0,0 +1,2 @@
|
|||
# touch predump script
|
||||
type proc_touch, proc_type, fs_type;
|
2
touch/focaltech/predump_sepolicy/file_contexts
Normal file
2
touch/focaltech/predump_sepolicy/file_contexts
Normal file
|
@ -0,0 +1,2 @@
|
|||
/vendor/bin/dump/predump_focaltech\.sh u:object_r:predump_touch_exec:s0
|
||||
|
3
touch/focaltech/predump_sepolicy/genfs_contexts
Normal file
3
touch/focaltech/predump_sepolicy/genfs_contexts
Normal file
|
@ -0,0 +1,3 @@
|
|||
genfscon proc /focaltech_touch u:object_r:proc_touch:s0
|
||||
|
||||
|
3
touch/focaltech/predump_sepolicy/predump_touch.te
Normal file
3
touch/focaltech/predump_sepolicy/predump_touch.te
Normal file
|
@ -0,0 +1,3 @@
|
|||
# touch predump script
|
||||
allow predump_touch proc_touch:dir search;
|
||||
allow predump_touch proc_touch:file rw_file_perms;
|
|
@ -8,3 +8,10 @@ sh_binary {
|
|||
vendor: true,
|
||||
sub_dir: "dump",
|
||||
}
|
||||
|
||||
sh_binary {
|
||||
name: "predump_stm.sh",
|
||||
src: "dump_stm.sh",
|
||||
vendor: true,
|
||||
sub_dir: "dump_touch",
|
||||
}
|
||||
|
|
3
touch/stm/predump_sepolicy/file.te
Normal file
3
touch/stm/predump_sepolicy/file.te
Normal file
|
@ -0,0 +1,3 @@
|
|||
# touch predump script
|
||||
type proc_touch, proc_type, fs_type;
|
||||
type sysfs_touch, sysfs_type, fs_type;
|
2
touch/stm/predump_sepolicy/file_contexts
Normal file
2
touch/stm/predump_sepolicy/file_contexts
Normal file
|
@ -0,0 +1,2 @@
|
|||
/vendor/bin/dump_touch/predump_stm\.sh u:object_r:predump_touch_exec:s0
|
||||
|
7
touch/stm/predump_sepolicy/genfs_contexts
Normal file
7
touch/stm/predump_sepolicy/genfs_contexts
Normal file
|
@ -0,0 +1,7 @@
|
|||
genfscon sysfs /devices/platform/111d0000.spi/spi_master/spi20/spi20.0 u:object_r:sysfs_touch:s0
|
||||
genfscon sysfs /devices/platform/10d40000.spi/spi_master/spi11/spi11.0 u:object_r:sysfs_touch:s0
|
||||
genfscon sysfs /devices/platform/10950000.spi/spi_master/spi6/spi6.0 u:object_r:sysfs_touch:s0
|
||||
|
||||
genfscon proc /fts/driver_test u:object_r:proc_touch:s0
|
||||
genfscon proc /fts_ext/driver_test u:object_r:proc_touch:s0
|
||||
|
6
touch/stm/predump_sepolicy/predump_touch.te
Normal file
6
touch/stm/predump_sepolicy/predump_touch.te
Normal file
|
@ -0,0 +1,6 @@
|
|||
# touch predump script
|
||||
allow predump_touch proc_touch:file rw_file_perms;
|
||||
allow predump_touch sysfs_touch:dir search;
|
||||
allow predump_touch sysfs_touch:file rw_file_perms;
|
||||
|
||||
get_prop(predump_touch vendor_touch_dump_path_prop)
|
2
touch/stm/predump_sepolicy/property.te
Normal file
2
touch/stm/predump_sepolicy/property.te
Normal file
|
@ -0,0 +1,2 @@
|
|||
# touch predump script
|
||||
vendor_internal_prop(vendor_touch_dump_path_prop)
|
2
touch/stm/predump_sepolicy/property_contexts
Normal file
2
touch/stm/predump_sepolicy/property_contexts
Normal file
|
@ -0,0 +1,2 @@
|
|||
ro.vendor.touch.dump. u:object_r:vendor_touch_dump_path_prop:s0
|
||||
|
2
touch/stm/predump_sepolicy/vendor_init.te
Normal file
2
touch/stm/predump_sepolicy/vendor_init.te
Normal file
|
@ -0,0 +1,2 @@
|
|||
# touch predump script
|
||||
set_prop(vendor_init, vendor_touch_dump_path_prop)
|
6
touch/stm/predump_stm20.mk
Normal file
6
touch/stm/predump_stm20.mk
Normal file
|
@ -0,0 +1,6 @@
|
|||
PRODUCT_VENDOR_PROPERTIES += ro.vendor.touch.dump.sys=/sys/class/spi_master/spi20/spi20.0
|
||||
PRODUCT_VENDOR_PROPERTIES += ro.vendor.touch.dump.proc=/proc/fts/driver_test
|
||||
|
||||
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/touch/stm/predump_sepolicy
|
||||
|
||||
PRODUCT_PACKAGES += predump_stm.sh
|
6
touch/stm/predump_stm6.mk
Normal file
6
touch/stm/predump_stm6.mk
Normal file
|
@ -0,0 +1,6 @@
|
|||
PRODUCT_VENDOR_PROPERTIES += ro.vendor.touch.dump.sys=/sys/class/spi_master/spi6/spi6.0
|
||||
PRODUCT_VENDOR_PROPERTIES += ro.vendor.touch.dump.proc=/proc/fts_ext/driver_test
|
||||
|
||||
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/touch/stm/predump_sepolicy
|
||||
|
||||
PRODUCT_PACKAGES += predump_stm.sh
|
Loading…
Add table
Add a link
Reference in a new issue