dumpstate: touch: Add touch_predump for gti am: f7bacf5322

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

Change-Id: I29b6676a78c0cd54d50f7f1f8d07dd75518cf197
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:18 +00:00 committed by Automerger Merge Worker
commit 44c50aee79
8 changed files with 43 additions and 0 deletions

View file

@ -33,3 +33,19 @@ cc_binary {
],
vendor: true,
}
sh_binary {
name: "predump_gti0.sh",
src: "dump_gti0.sh",
init_rc: ["init.touch.gti0.rc"],
vendor: true,
sub_dir: "dump_touch",
}
sh_binary {
name: "predump_gti1.sh",
src: "dump_gti1.sh",
init_rc: ["init.touch.gti1.rc"],
vendor: true,
sub_dir: "dump_touch",
}

7
touch/gti/predump_gti.mk Normal file
View file

@ -0,0 +1,7 @@
include device/google/gs-common/touch/predump/predump_touch.mk
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/touch/gti/predump_sepolicy
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/touch/gti/ical/sepolicy
PRODUCT_PACKAGES += predump_gti0.sh
PRODUCT_PACKAGES += touch_gti_ical

View file

@ -0,0 +1,6 @@
include device/google/gs-common/touch/gti/predump_gti.mk
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/touch/gti/predump_sepolicy_gti_dual
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/touch/gti/ical/sepolicy_gti_dual
PRODUCT_PACKAGES += predump_gti1.sh

View file

@ -0,0 +1,3 @@
type proc_touch_gti, proc_type, fs_type;
type sysfs_touch_gti, sysfs_type, fs_type;

View file

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

View file

@ -0,0 +1,4 @@
# Touch
genfscon sysfs /devices/virtual/goog_touch_interface u:object_r:sysfs_touch_gti:s0
genfscon proc /goog_touch_interface u:object_r:proc_touch_gti:s0

View file

@ -0,0 +1,4 @@
allow predump_touch proc_touch_gti:dir r_dir_perms;
allow predump_touch proc_touch_gti:file rw_file_perms;
allow predump_touch sysfs_touch_gti:dir r_dir_perms;
allow predump_touch sysfs_touch_gti:file rw_file_perms;

View file

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