create gti dump
Bug: 256521567 Test: adb bugreport Change-Id: I0da3eaac96b436e11444c2677b12b8947a4ddcef
This commit is contained in:
parent
d8180e5dfe
commit
d92e8d74bf
10
touch/gti/Android.bp
Normal file
10
touch/gti/Android.bp
Normal file
@ -0,0 +1,10 @@
|
||||
package {
|
||||
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||
}
|
||||
|
||||
sh_binary {
|
||||
name: "dump_gti.sh",
|
||||
src: "dump_gti.sh",
|
||||
vendor: true,
|
||||
sub_dir: "dump",
|
||||
}
|
32
touch/gti/dump_gti.sh
Normal file
32
touch/gti/dump_gti.sh
Normal file
@ -0,0 +1,32 @@
|
||||
#!/vendor/bin/sh
|
||||
path="/sys/devices/virtual/goog_touch_interface/gti.0"
|
||||
|
||||
echo "------ Force Touch Active ------"
|
||||
echo 1 > $path/force_active
|
||||
|
||||
echo "------ Touch Firmware Version ------"
|
||||
cat $path/fw_ver
|
||||
|
||||
echo "------ Get Mutual Sensing Data - Baseline ------"
|
||||
cat $path/ms_base
|
||||
|
||||
echo "------ Get Mutual Sensing Data - Delta ------"
|
||||
cat $path/ms_diff
|
||||
|
||||
echo "------ Get Mutual Sensing Data - Raw ------"
|
||||
cat $path/ms_raw
|
||||
|
||||
echo "------ Get Self Sensing Data - Baseline ------"
|
||||
cat $path/ss_base
|
||||
|
||||
echo "------ Get Self Sensing Data - Delta ------"
|
||||
cat $path/ss_diff
|
||||
|
||||
echo "------ Get Self Sensing Data - Raw ------"
|
||||
cat $path/ss_raw
|
||||
|
||||
echo "------ Self Test ------"
|
||||
cat $path/self_test
|
||||
|
||||
echo "------ Disable Force Touch Active ------"
|
||||
echo 0 > $path/force_active
|
3
touch/gti/gti.mk
Normal file
3
touch/gti/gti.mk
Normal file
@ -0,0 +1,3 @@
|
||||
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/touch/gti/sepolicy
|
||||
|
||||
PRODUCT_PACKAGES += dump_gti.sh
|
6
touch/gti/sepolicy/dump_gti.te
Normal file
6
touch/gti/sepolicy/dump_gti.te
Normal file
@ -0,0 +1,6 @@
|
||||
pixel_bugreport(dump_gti)
|
||||
|
||||
allow dump_gti sysfs_touch:dir r_dir_perms;
|
||||
allow dump_gti sysfs_touch:file rw_file_perms;
|
||||
allow dump_gti vendor_toolbox_exec:file execute_no_trans;
|
||||
|
2
touch/gti/sepolicy/file_contexts
Normal file
2
touch/gti/sepolicy/file_contexts
Normal file
@ -0,0 +1,2 @@
|
||||
/vendor/bin/dump/dump_gti\.sh u:object_r:dump_gti_exec:s0
|
||||
|
Loading…
x
Reference in New Issue
Block a user