Treehugger Robot
406279f274
Merge "Remove obsolete relfector HAL policy." into main
2024-06-05 07:36:52 +00:00
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
Philip Quinn
256d37b5d7
Remove obsolete relfector HAL policy.
...
Bug: 343566773
Test: presubmit
Change-Id: Ie779a71dfdc9d198643f5eb95396085ea842b7a5
2024-05-30 01:59:29 +00:00
Philip Quinn
a19ae3354b
Include vendor/google/interfaces as a transitive dependency of twoshay.
...
Bug: 278909669
Test: presubmit
Change-Id: Ie9f2f76777407183e9e9e3792265cf00c3ecc204
2024-04-30 22:11:25 -07:00
Ravi Jain
a30f1bcfb4
Merge changes from topic "touch_dumpstate_priority-24D1-dev" into 24D1-dev am: 3defa6f8ea
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/26926316
Change-Id: I2d0bee71d89fa083110e177ddf4d4f3b06930300
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-19 06:14:22 +00:00
Ravi Jain
44c50aee79
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>
2024-04-19 06:14:18 +00:00
Ravi Jain
436222de27
dumpstate: touch: Init touch_predump service am: 8a52cae4dd
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/26919213
Change-Id: Idb6efba436e5d06eeff611428b2e9bd1f6b6eb0e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-19 06:14:12 +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
8d34b54167
dumpstate: touch: Add touch_predump for syna
...
go/touch_predump
Test: b/318578275
Test: Flash on dogfood and check touch dump logs
Bug: 287907308
Change-Id: I88c488dec5de85545ae5f33f5e65371883982e48
2024-04-18 06:35:29 +00:00
Ravi Jain
8a52cae4dd
dumpstate: touch: Init touch_predump service
...
go/touch_predump
Test: b/318578275
Test: Locally flash to check dump_touch logs on dogfood devices
Bug: 287907308
Change-Id: Ibc9df367549dd69c83936a7fd08465f7bb53ce80
2024-04-18 06:35:23 +00:00
Ravi Jain
42f418b147
touch: moving ical related sepolicies to independent folder am: ea5ec69b79
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/26957229
Change-Id: Ic92ed487646286266f021eedc4abf125e0d62549
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-16 02:53:34 +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
Super Liu
28754e355a
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
Signed-off-by: Super Liu <supercjliu@google.com>
2024-03-27 01:01:40 +00:00
Mark Chang
542efdc2b9
Move sepolicy files from hardware/google/pixel-sepolicy.
...
Bug: 325422902
Test: Manual, system booted without sepolicy denied error.
Change-Id: I2146a2b1524d6d5a3d4a17635cce21c29c56c248
Signed-off-by: Mark Chang <changmark@google.com>
2024-03-01 11:59:40 +00:00
Liana Kazanova
e2ec91ccbd
Revert "Move sepolicy files from hardware/google/pixel-sepolicy."
...
Revert submission 26288713-twoshay-sepolicy-24
Reason for revert: DroidMonitor: Potential culprit for b/327235315 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.
Reverted changes: /q/submissionid:26288713-twoshay-sepolicy-24
Bug: 327235315
Change-Id: I3529a6bc329b38f9a6b5a21c5d7c809636076eb5
2024-02-28 05:00:29 +00:00
Mark Chang
57384abb7e
Move sepolicy files from hardware/google/pixel-sepolicy.
...
Bug: 325422902
Test: Manual, system booted without sepolicy denied error.
Change-Id: I10d20c0b79acf938bd41dcd640a716369ecf779b
Signed-off-by: Mark Chang <changmark@google.com>
2024-02-26 11:46:42 +00:00
Mark Chang
14c6c627ef
Add AIDL manifests and FCMs for twoshay.
...
[169/186] DeviceManifest/SingleAidlTest#HalIsServed/com_google_input_ITouchContextService_default_V3_76: PASSED (4ms)
[170/186] DeviceManifest/SingleAidlTest#HalIsServed/com_google_input_algos_gril_IGrilAntennaTuningService_default_V3_77: PASSED (4ms)
[171/186] DeviceManifest/SingleAidlTest#HalIsServed/com_google_input_algos_spd_IScreenProtectorDetectorService_default_V3_78: PASSED (4ms)
Bug: 324214410
Test: atest vts_treble_vintf_vendor_test.
Test: Twoshay's AIDLs pass SingleAidlTest.
Change-Id: Ia307034a2f88011642d4bcf80e8aa4496266fd35
Signed-off-by: Mark Chang <changmark@google.com>
2024-02-09 05:29:06 +00:00
Wendly Li
21446e0139
Move wakeup to device's sepolicy settings
...
Bug: 320395939
Test: make sepolicy
Change-Id: I12af839756725bb0cfb2eba363c1e45cd0a6044a
Signed-off-by: Wendly Li <wendlyli@google.com>
2024-01-16 09:32:47 +00:00
Wendly Li
6954d18625
Create syna touch dump for spi19
...
Bug: 273154761
Test: adb bugreport
Change-Id: I87fd42e550e2aab83c3eb81ba9d4928396db2dde
Signed-off-by: Wendly Li <wendlyli@google.com>
2024-01-09 09:49:25 +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
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