24 Commits

Author SHA1 Message Date
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
7b9d0c41c3 Merge "touch: Set permissions for interactive_calibration" into udc-qpr-dev 2023-09-21 20:14:24 +00: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
Yen-Chao Chen
95c6e18b0c sepolicy: fix avc denied for sysfs_wakeup
avc:  denied  { open } for  path="/sys/devices/platform/
111d0000.spi/spi_master/spi20/spi20.0/synaptics_tcm.0/wakeup/
wakeup94" dev="sysfs" ino=94635 scontext=u:r:system_suspend:s0
tcontext=u:object_r:sysfs:s0 tclass=dir permissive=1

Bug: 285245943
Bug: 285289426
Bug: 285328094
Test: trigger bugreport and check logs.

Change-Id: I0baaeb3b8f3f29e9659fd6d3e18a26051dab0535
Signed-off-by: Yen-Chao Chen <davidycchen@google.com>
2023-08-22 15:37:57 +08:00
Yen-Chao Chen
13fee29a40 Create syna touch dump for spi20
Bug: 285327052
Bug: 285247095
Bug: 285323846
Test: trigger dump

Change-Id: Ide1ea7597f829494a1b2401ca35525f7bc92058a
Signed-off-by: Yen-Chao Chen <davidycchen@google.com>
2023-07-31 01:57:20 +00: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
516aa3c8d8 dump_gti: Support dual-panel am: 90f0d9bb3d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/22873636

Change-Id: I23c99783cfee515bf3017b95615ea0111459526c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-08 21:07:32 +00:00
Wendly Li
2378b8e3f4 Dump touch info for multiple panel support am: 23b2692172
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/22817176

Change-Id: I7dc3db54ae05f672bb8214a1bd03eabbf3fe6f2e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-08 21:07:27 +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
Yen-Chao Chen
d5e44df4bb touch: provide permission for TouchInspector app
avc:  denied  { write } for  name="driver_test" dev="proc"
ino=4026535975 scontext=u:r:platform_app:s0:c512,c768
tcontext=u:object_r:proc_touch:s0 tclass=file permissive=1
app=com.google.touch.touchinspector

avc:  denied  { open } for  path="/proc/fts/driver_test" dev="proc"
ino=4026535975 scontext=u:r:platform_app:s0:c512,c768
tcontext=u:object_r:proc_touch:s0 tclass=file permissive=1
app=com.google.touch.touchinspector

avc:  denied  { getattr } for  path="/proc/fts/driver_test"
dev="proc" ino=4026535975 scontext=u:r:platform_app:s0:c512,c768
tcontext=u:object_r:proc_touch:s0 tclass=file permissive=1
app=com.google.touch.touchinspector

avc:  denied  { read } for  name="driver_test" dev="proc"
ino=4026535975 scontext=u:r:platform_app:s0:c512,c768
tcontext=u:object_r:proc_touch:s0 tclass=file permissive=1
app=com.google.touch.touchinspector

Bug: 279675034
Test: trigger touch calibration by the app.

Change-Id: Ib1621aa0fd3f10c2e12d7ec8930908ca77c615bb
Signed-off-by: Yen-Chao Chen <davidycchen@google.com>
2023-05-02 14:39:23 +08:00
Alex Hong
1853f664dd Allow vendor_init to set the touch properties
Bug: 211547922
Test: SELinuxUncheckedDenialBootTest
Change-Id: I88f9b05cedb6aff7baf9e350b3512d14c92b53da
2023-01-13 22:10:17 +08: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
Super Liu
ed4ed5c6ea Add sepolicy for sysfs_touch type.
Bug: 263108813
Test: TreeHugger build pass.
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: I337863e7df3195deecc6de0202cded610118bfe0
2023-01-04 02:15:51 +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
561d23c356 create touch stm dump
Bug: 256521567
Test: adb bugreport
Change-Id: Ib48d12272a40fc37a90768f8cec940133e74039e
2022-11-28 12:57:59 +08:00
Adam Shih
d92e8d74bf create gti dump
Bug: 256521567
Test: adb bugreport
Change-Id: I0da3eaac96b436e11444c2677b12b8947a4ddcef
2022-11-21 12:56:16 +08:00
Adam Shih
d8180e5dfe create focaltech folder for touch
Bug: 256521567
Test: adb bugreport
Change-Id: Ibff80f64ca78bd81a5cb5542183866d9a0863ec5
2022-11-18 13:48:41 +08:00
Adam Shih
e74c980648 Merge "Create syna touch dump" 2022-11-17 07:09:28 +00:00
Adam Shih
dbd4baff00 Create syna touch dump
Bug: 256521567
Test: adb bugreport
Change-Id: I408111e25ccee494d576dbdcbec3cb15e0ddae6d
2022-11-16 05:58:16 +00:00
Adam Shih
a4d16cf5a0 create raven touch dump
Bug: 256521567
Test: adb bugreport
Change-Id: Ibf5d74936605f7b0a3a2124bb7df094c60644c23
2022-11-16 12:59:29 +08:00