Merge changes from topic "touch_dumpstate_priority-24D1-dev" into 24D1-dev am: 3defa6f8ea

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/26926316

Change-Id: I2d0bee71d89fa083110e177ddf4d4f3b06930300
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Ravi Jain 2024-04-19 06:14:22 +00:00 committed by Automerger Merge Worker
commit a30f1bcfb4
10 changed files with 32 additions and 0 deletions

View File

@ -10,3 +10,10 @@ sh_binary {
sub_dir: "dump",
}
sh_binary {
name: "predump_syna.sh",
src: "dump_syna.sh",
init_rc: ["init.touch.syna.rc"],
vendor: true,
sub_dir: "dump_touch",
}

View File

@ -0,0 +1,2 @@
type sysfs_touch, sysfs_type, fs_type;

View File

@ -0,0 +1,2 @@
/vendor/bin/dump_touch/predump_syna\.sh u:object_r:predump_touch_exec:s0

View File

@ -0,0 +1,3 @@
genfscon sysfs /devices/platform/10d10000.spi/spi_master/spi0/spi0.0/synaptics_tcm.0/sysfs u:object_r:sysfs_touch:s0
genfscon sysfs /devices/platform/111c0000.spi/spi_master/spi19/spi19.0/synaptics_tcm.0/sysfs u:object_r:sysfs_touch:s0
genfscon sysfs /devices/platform/111d0000.spi/spi_master/spi20/spi20.0/synaptics_tcm.0/sysfs u:object_r:sysfs_touch:s0

View File

@ -0,0 +1,5 @@
allow predump_touch sysfs_touch:dir r_dir_perms;
allow predump_touch sysfs_touch:file rw_file_perms;
get_prop(predump_touch, vendor_touch_dump_path_prop)

View File

@ -0,0 +1 @@
vendor_internal_prop(vendor_touch_dump_path_prop)

View File

@ -0,0 +1 @@
ro.vendor.touch.dump. u:object_r:vendor_touch_dump_path_prop:s0

View File

@ -0,0 +1 @@
set_prop(vendor_init, vendor_touch_dump_path_prop)

View File

@ -0,0 +1,5 @@
PRODUCT_VENDOR_PROPERTIES += ro.vendor.touch.dump.sys=/sys/class/spi_master/spi19/spi19.0/synaptics_tcm.0/sysfs
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/touch/syna/predump_sepolicy
PRODUCT_PACKAGES += predump_syna.sh

View File

@ -0,0 +1,5 @@
PRODUCT_VENDOR_PROPERTIES += ro.vendor.touch.dump.sys=/sys/devices/platform/111d0000.spi/spi_master/spi20/spi20.0/synaptics_tcm.0/sysfs
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/touch/syna/predump_sepolicy
PRODUCT_PACKAGES += predump_syna.sh