13 Commits

Author SHA1 Message Date
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