15 Commits

Author SHA1 Message Date
Super Liu
70f4b0431e touch: Add the capability to simulate HW failure
Usage:
  $> setprop vendor.touch.gti0.ical.override.result RESULT
  The designate RESULT to be used for the designate CMD.
  If no RESULT assign, the default value will be "0 - -2147483648".

  $> setprop vendor.touch.gti0.ical.override.cmd CMD
  The result of designate CMD(e.g. 202 or 301) to be overrode by the
  designate RESULT. If the CMD is "xxx", the result of any CMD will
  be overode with the designate RESULT.

Bug: 341021854
Test: manual test
Change-Id: I3d24618e240b4a966b5a76a33ed9ab96503a3257
Signed-off-by: Super Liu <supercjliu@google.com>
2024-06-04 00:46:26 +00:00
Ravi Jain
f7bacf5322 dumpstate: touch: Add touch_predump for gti
go/touch_predump

Test: b/318578275
Test: Locally flash and check dump logs on dogfood device
Bug: 287907308
Change-Id: I4a35a9a57c1331d67dfcd1863b57d75a9b804c32
2024-04-18 06:35:29 +00:00
Ravi Jain
ea5ec69b79 touch: moving ical related sepolicies to independent folder
Bug: 331139251
Test: Manually verify the result.
Change-Id: I53b5c8eb73f1ce775ec83a06b43c0b4993f31e69
2024-04-15 03:49:41 +00:00
Super Liu
58b64ca3fb touch: init service to access gti interactive_calibrate sysfs
Write usage: setprop vendor.touch.gti0.ical VALUE

Any VALUE(e.g. 20X or 30X) set through this property will write
into gti interactive_calibrate sysfs except for the VALUE `read`.

Read usage: setprop vendor.touch.gti0.ical read
            getprop vendor.touch.gti0.ical.result
setprop with VALUE `read` will read the gti
interactive_calibrate sysfs and save the result to
vendor.touch.gti0.ical.result.

Besides, please add your DOMAIN to access vendor_gti_prop.
set_prop(DOMAIN, vendor_gti_prop)

Bug: 331139251
Test: Manually verify the result.
Change-Id: I6296b9533dd0209e66832bfbbed6030a30077b96
Merged-In: I6296b9533dd0209e66832bfbbed6030a30077b96
Signed-off-by: Super Liu <supercjliu@google.com>
(cherry picked from commit 28754e355a847ce62b4e465c7afaa0f61e90b865)
2024-03-28 07:27:32 +00:00
Yen-Chao Chen
643719c2ac touch/init: change file owner after sys.boot_completed=1
It's possible that the gti sysfs node is not ready when
vendor.device.modules.ready is set so change the gti file owner
at later stage.

Bug: 285327052
Bug: 285247095
Bug: 285323846
Test: trigger bugreport and the dump succeed.

Change-Id: If1921aeb351603b52164c66bc9c7b3651d171287
Signed-off-by: Yen-Chao Chen <davidycchen@google.com>
2023-12-26 14:31:49 +08:00
Steve Pfetsch
d2e98ea1ea touch: Set permissions for interactive_calibration
Enable the interactive_calibration node to be accessed by non-owners,
with SEPolicy restricting access to the diagnosticstool priv-app.

Bug: 230050981
Change-Id: I7d2ec8e7aba2aa744a1198ba504db536f872e491
Signed-off-by: Steve Pfetsch <spfetsch@google.com>
2023-09-18 16:47:04 -07:00
Wendly Li
476373ef30 dump_gti: fix I/O error when touch fails to resume
Bug: 289680312
Test: dump_gti works properly
Change-Id: I8881102161d6e69fa9c188c751f332f5762bf7c7
Signed-off-by: Wendly Li <wendlyli@google.com>
2023-07-14 04:06:14 +00:00
Super Liu
e4ff073ffd dump_gti: Add procfs dump logs
Bug: 288835055
Test: check the bugreport with abtd build.
Change-Id: I54e9206416d6667851e35368f9f6c641e97cd2fc
Signed-off-by: Super Liu <supercjliu@google.com>
2023-06-27 06:17:46 +00:00
Wendly Li
90f0d9bb3d dump_gti: Support dual-panel
Bug: 278023960
Test: adb bugreport
Change-Id: Idab07391086e04378e7722ac0ff4218a2d09478d
Signed-off-by: Wendly Li <wendlyli@google.com>
2023-05-08 17:10:22 +00:00
Wendly Li
23b2692172 Dump touch info for multiple panel support
Bug: 278023960
Test: adb bugreport
Change-Id: Ife9402e216f6ba6b36764c682bbe71a85335a888
Signed-off-by: Wendly Li <wendlyli@google.com>
2023-05-08 17:10:05 +00:00
Super Liu
dc8a407491 Support gti proc dump.
Bug: 262796907
Test: TreeHugger build pass.
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: I3dd73b9832c737f7c60639af649ae882e206aa15
2023-01-06 08:38:29 +00:00
Adam Shih
161893e2d4 change type name to avoid duplicated declaration
Bug: 256521567
Test: build pass
Change-Id: I76ea453bd87803b2ff23ca1f914a5f2f383354f9
2022-12-02 10:27:34 +08:00
Adam Shih
d8bb9c3c2b move gti config to gs-common
Bug: 256521567
Test: build pass on all devices
Change-Id: I910bfa1aef3dbad1987d0aee8e1df226fb72e583
2022-11-30 09:31:38 +08:00
Adam Shih
5944633044 Move sysfs_touch to gs-common
Bug: 256521567
Test: adb bugreport
Change-Id: I2690b19ba1729af53a7d6e4f3f6c4d87f2ebd7eb
2022-11-29 07:28:50 +08:00
Adam Shih
d92e8d74bf create gti dump
Bug: 256521567
Test: adb bugreport
Change-Id: I0da3eaac96b436e11444c2677b12b8947a4ddcef
2022-11-21 12:56:16 +08:00