Commit graph

60 commits

Author SHA1 Message Date
Michael Bestas
dc28234ecd
gs-common: Update init scripts from BP2A
Change-Id: Ibb8d3715ec6cb9ebb5d89e116374d468dfcad826
2025-06-23 19:29:30 +03:00
Michael Bestas
50929e081f aml_tz6_351400020 (13155446,com.google.android.go.tzdata6,com.google.android.tzdata6)
-----BEGIN PGP SIGNATURE-----
 
 iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZ9i73wAKCRDorT+BmrEO
 eCi5AKCHAzJVFdsm++eJGXcPb6LbaKIGTQCcDiWODLyLOWCK64nt7tfCwTgUFCE=
 =3OQU
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN SSH SIGNATURE-----
 U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgPpdpjxPACTIhnlvYz0GM4BR7FJ
 +rYv3jMbfxNKD3JvcAAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5
 AAAAQGzx1CwS4pcfih6dNJzdvsHLng+4M9qD8N/OatGRRJF0ck6x3Qwifdp45ItOlU7d0T
 52HZvmRrb/FCpQQR9Z/QE=
 -----END SSH SIGNATURE-----

Merge tag 'aml_tz6_351400020' into staging/lineage-23.0_merge-aml_tz6_351400020

aml_tz6_351400020 (13155446,com.google.android.go.tzdata6,com.google.android.tzdata6)

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZ9i73wAKCRDorT+BmrEO
# eCi5AKCHAzJVFdsm++eJGXcPb6LbaKIGTQCcDiWODLyLOWCK64nt7tfCwTgUFCE=
# =3OQU
# -----END PGP SIGNATURE-----
# gpg: Signature made Tue Mar 18 02:18:39 2025 EET
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [ultimate]

# By Jaegeuk Kim (6) and others
# Via Android (Google) Code Review (55) and others
* tag 'aml_tz6_351400020': (74 commits)
  Fix comment
  Adjust the version set in manifest xml and matrix xml
  Add astd sepolicy to gs-common for P26 factory builds
  Allow tachyon service to make binder calls to gca
  display: add drm_atomic_state to debug-build bugreport
  init.pixel-perf.rc: Setup default rampup multiplier and util_est
  Allow write for restorecon
  Dump F2FS disk_map and UFS phy version
  Fix UFS err_stats
  Fix selinux permission denials
  move common init perf settings to gs_common
  Revert "Set up access control rule for aocxd"
  16KB: Move CopyEfsTest to device/google/gs-common
  Revert^2 "Add Bluetooth extension HAL - CCO"
  gs-common: wlc: add tx update permission for hal_googlebattery
  Revert "Add Bluetooth extension HAL - CCO"
  storage: fix userdata_exp.ai partition selinux error
  Revert "move common init perf settings to gs_common"
  insmod-sh: Allow writing to kmsg
  RamdumpService: Fix the SELinux errors from introducing Firebase Analytics.
  ...

 Conflicts:
	display/dump_pixel_display.mk

Change-Id: Iaa05ef7e62a7b8320f320ad4db482998863fe136
2025-06-23 05:14:52 +03:00
Michael Bestas
afe59287ff Android 15.0.0 Release 21 (BP1A.250305.020)
-----BEGIN PGP SIGNATURE-----
 
 iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZ8fKCAAKCRDorT+BmrEO
 eMs3AJ95J96e0Kv/3dVWOrkTI5HXZjn+7QCfT8gs70sr9lbjAIKOoMKAueJM8y0=
 =K75U
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN SSH SIGNATURE-----
 U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgPpdpjxPACTIhnlvYz0GM4BR7FJ
 +rYv3jMbfxNKD3JvcAAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5
 AAAAQIRhGQGF/72GaYamROts4zqtuErZfylD49Os+O2IaHyRthj2oyNc/vzf6y6vE1EYic
 QnXbtRPS7ocAjwTM2oGgY=
 -----END SSH SIGNATURE-----

Merge tag 'android-15.0.0_r21' into staging/lineage-22.2_merge-android-15.0.0_r21

Android 15.0.0 Release 21 (BP1A.250305.020)

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZ8fKCAAKCRDorT+BmrEO
# eMs3AJ95J96e0Kv/3dVWOrkTI5HXZjn+7QCfT8gs70sr9lbjAIKOoMKAueJM8y0=
# =K75U
# -----END PGP SIGNATURE-----
# gpg: Signature made Wed Mar  5 05:50:32 2025 EET
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [ultimate]

# By timmyli (6) and others
# Via Android (Google) Code Review (65) and others
* tag 'android-15.0.0_r21': (87 commits)
  Revert "Add amm experiment."
  Reduce the trace instance irq_gia_google's buffer size
  Remove code that just re-enables IRQ and GIA events
  Add amm experiment.
  storage: add missing bug_map
  Add apf experiment.
  modem_svc: add modem_svc_sit to solve sepolicy conflicts arising from different device versions
  modem_svc: move shared_modem_platform related sepolicy to gs-common
  Add Intelligence rc
  Always include camera calibration tools in debug builds.
  Add kswapd experiment.
  Add Proc Vendor Sched Sepolicy Fix
  Add recovery support for perf experiments.
  Revert "Allow tachyon service to make binder calls to GCA"
  Allow tachyon service to make binder calls to GCA
  Add libg3a logging initrc files.
  Rename aocx.IAoc to aocx.IAoc/default to support stable AIDL
  dump_chip_info: dump more tables from chip-info driver
  Introduce interrupts module for debug and trace
  Revert^2 "gs-common: Move cpufreq perf settings to gs-common"
  ...

 Conflicts:
	aoc/aoc.mk
	camera/lyric.mk

Change-Id: Ifd45cd3aa7799789ded7db2b0f24207c39367067
2025-03-09 10:58:51 +02:00
Hyungwoo Yang
3d542c3f96 Fix version mismatch in vintf manifest file
vintf manifest version doesn't match with acutal implementation.

Bug: 390520103
Test: atest vts_treble_vintf_vendor_test
Flag: EXEMPT vintf manifest version change

Change-Id: I25f77dcb6e2a344e44560ee9bcd408d650d7ae27
Signed-off-by: Hyungwoo Yang <hyungwooyang@google.com>
2025-01-19 22:21:10 +00:00
Hyungwoo Yang
f720f9e87e Add sepolicy for Twoshay Notification Service
Test: The notification service is successfully running.
Flag: com.google.android.input.twoshay.flags.enable_notification_service
Bug: 385001604

Change-Id: I8bb8a894ecc88d588e867022a0c61d8d8a5560ca
Signed-off-by: Hyungwoo Yang <hyungwooyang@google.com>
2025-01-08 07:16:16 +00:00
Kai Hsieh
a736c0013e Add feature recording critical timestamps to track to predump latency.
Test: Manually, flash and trigger predump and check the timestamp recorded under: /data/vendor/dump_touch/ folder
Bug: 387909187
Flag: EXEMPT log only update
Change-Id: Ib926efecb27e6df02927eba0353a1c18cb04d27d
Signed-off-by: Kai Hsieh <kaihsieh@google.com>
2025-01-05 22:54:40 -08:00
Leonardo Blanger
57c69f455f twoshay: Add AIDL api v4 to compat. matrices and manifest files
Bug: 384567963

Test: atest vts_treble_vintf_vendor_test

Flag: EXEMPT AIDL API version change

Change-Id: I01e1487a324c5d930364ff20fb5120a92db62afc
Signed-off-by: Leonardo Blanger <leoblanger@google.com>
2024-12-30 15:23:38 +08:00
Michael Bestas
4460098bc5 Android 15.0.0 Release 6 (AP4A.241205.013)
-----BEGIN PGP SIGNATURE-----
 
 iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZ1IssQAKCRDorT+BmrEO
 eIS/AJ9ojetnDXDlslBpaDU7nNPVrNv+WgCeMKWKeHmJn6acS37FiZBS9+jvpec=
 =JvPS
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQJLBAABCgA1FiEEHrBYPudH862glXQBzJUERRm+ZmkFAmdY7O4XHG1rYmVzdGFz
 QGxpbmVhZ2Vvcy5vcmcACgkQzJUERRm+ZmnGCw//XCwIcPsFqQSwygK76wo5ZsCO
 Mex6U5SdmtBecQ2VmIZKofe4/HIog9Wne3GFE6Xjj1bZHxtp/W4uURp6BQ8LuqA5
 zqhkzc/Ijz6W+8wJ7n4k+V+N33N9ZYrbxQdqmBbMzLO0kOv86vC0HbKHLLgvT5d4
 yYTe3TmGUMXTysky8+Y5YJoIHXqy847ohsOg7yzo9wtEzNZpDXLjDCfp4H8Gei8c
 RIw/g+P2WwXGEntlXMtt6lajLF5m2GOtGLL5S+IrtoskpISC6jOmnD+WDwG8VJRW
 dts4yqRtB47uz53sLE618zOXE/Tz3Akppq73bJ9I5dk3qHCx7NBVy5HLFE8O6rJL
 KVjMj88sMShd4wMbHEy+Sh0jVlcKXuxFJeU0MZ0bqoM5/MDDZXQvJDOOQK7noQHS
 RGnsXFwgZnLZEW375FJv4T8S19logSJqAYEkjSdrzU3oIUZqNgFHqQcGDLC8ukOc
 79PbK53RvmzyEedYonH7Zn/ImGwmJxlyVey5jFX+O1S9RsVD4AyrgT1dn3s0KniK
 1UiPi7sHBsL2yE4rp63UEysFZU9uj2gy3xf4PxBi97LV7mLUfE2YqsDwOrII82Ao
 xjyEKTxSMADdwHHI15yf52eNRCf3eBakL54TbZZJ184FZYeTGvOpvc5yCuiITqm9
 RauADk94HVdaaMJXyk4=
 =l74W
 -----END PGP SIGNATURE-----

Merge tag 'android-15.0.0_r6' into staging/lineage-22.0_merge-android-15.0.0_r6

Android 15.0.0 Release 6 (AP4A.241205.013)

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZ1IssQAKCRDorT+BmrEO
# eIS/AJ9ojetnDXDlslBpaDU7nNPVrNv+WgCeMKWKeHmJn6acS37FiZBS9+jvpec=
# =JvPS
# -----END PGP SIGNATURE-----
# gpg: Signature made Fri Dec  6 00:44:01 2024 EET
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [marginal]
# gpg: initial-contribution@android.com: Verified 2483 signatures in the past
#      3 years.  Encrypted 4 messages in the past 2 years.
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 4340 D135 70EF 945E 8381  0964 E8AD 3F81 9AB1 0E78

# By Randall Huang (12) and others
# Via Android (Google) Code Review (58) and others
* tag 'android-15.0.0_r6': (91 commits)
  gsc: Change the criteria for building GSC targets
  sepolicy: remove irregular policy
  Revert^2 "Allow devices that use HIDL to find AIDL radio_ext_service"
  Revert "Allow devices that use HIDL to find AIDL radio_ext_service"
  gs-common: add rules for euiccpixel_app
  audio: allow set_prop for vendor_audio_prop_restricted
  Allow devices that use HIDL to find AIDL radio_ext_service
  Add sepolicy for NNAPI HAL to access hal_graphics_allocator_service, This is required for AHardwareBuffer allocation.
  storage: fix ota selinux error
  Storage: add sepolicy for recovery mode
  Add sepolicy for gcam app
  check_current_prebuilt: Symlink current prebuilt folder to android root
  shamp: Update shared_modem_platform HAL version to 3
  dumpstate: gsa: Add GSA logs to dumpstate
  storage: fix vendor_init avc denied
  storage: fix vold avc denied
  storage: fix adb bugreport and refactor the existing rules
  storage: fix PowerStats avc denied
  storage: move sepolicy to common folder
  shamp: Update shared_modem_platform HAL version to 2
  ...

 Conflicts:
	camera/lyric.mk
	storage/init.storage.rc

Change-Id: I5ed6cff3b54261c949ec6ba60b32820b264b4ec2
2024-12-11 03:37:46 +02:00
Super Liu
21b3ed1922 touch: Support SW_LID event from sensor HAL
Bug: 353360211
Flag: EXEMPT bugfix
Test: Manual local test.
Change-Id: Ie071f0aaf19956f1a472693baf19cbeb0c73b186
Signed-off-by: Super Liu <supercjliu@google.com>
2024-10-07 01:04:53 +00:00
Ravi Jain
297158486d dumpstate: touch: Add touch_predump for focaltech
10-01 21:39:00.372 11262 11262 I sh      : type=1400 audit(0.0:20): avc:
denied  { write } for  name="driver_test" dev="proc" ino=4026536282
scontext=u:r:predump_touch:s0 tcontext=u:object_r:proc_touch:s0
tclass=file permissive=1

10-01 21:40:03.076  6244  6244 I sh      : type=1400 audit(0.0:21): avc:
denied  { search } for  name="focaltech_touch" dev="proc" ino=4026535873
scontext=u:r:predump_touch:s0 tcontext=u:object_r:proc_touch:s0
tclass=dir permissive=1

Test: b/318578275
Test: Flash on dogfood device and check touch dump logs
Bug: 287907308
Flag: EXEMPT bugfix
Change-Id: I1652ecc1054b50946159d4c3c0f3995cefa896f5
2024-10-02 03:43:39 +00:00
Ravi Jain
7d245967c1 dumpstate: touch: Add touch_predump for stm
10-01 21:39:00.372 11262 11262 I sh      : type=1400 audit(0.0:20): avc:
denied  { write } for  name="driver_test" dev="proc" ino=4026536282
scontext=u:r:predump_touch:s0 tcontext=u:object_r:proc_touch:s0
tclass=file permissive=1

10-01 21:39:00.432 11265 11265 I cat     : type=1400 audit(0.0:22): avc:
denied  { search } for  name="spi20.0" dev="sysfs" ino=55787
scontext=u:r:predump_touch:s0 tcontext=u:object_r:sysfs_touch:s0
tclass=dir permissive=1

10-01 21:39:00.444 11262 11262 I sh      : type=1400 audit(0.0:25): avc:
denied  { write } for  name="stm_fts_cmd" dev="sysfs" ino=112798
scontext=u:r:predump_touch:s0 tcontext=u:object_r:sysfs_touch:s0
tclass=file permissive=1

Test: b/318578275
Test: Flash on dogfood device and check touch dump logs
Bug: 287907308
Flag: EXEMPT bugfix
Change-Id: I9dade94f96879a269b5db2ebbe9595ea0e099acc
2024-10-02 03:37:22 +00:00
Michael Bestas
d26fdcfef2
Disable userdebug diagnostics
Change-Id: Icbdc3a61ab7b27f2aa0a6a07181b96edd9ee191a
2024-09-24 23:51:36 +03:00
Prochin Wang
956edf0d26 Label touch_property_type to associate with vendor_gti_prop
Pass ROM build of all git_main targets:
https://android-build.googleplex.com/builds/abtd/run/L52500030006128092/
https://android-build.corp.google.com/abtd/run/L93900030006078492/
https://android-build.corp.google.com/abtd/run/L15800030006086232/
https://android-build.corp.google.com/abtd/run/L27700030006086619/

Bug: 361237875
Test: mm and flash rom
Flag: build.RELEASE_PIXEL_BOOST_DATALAYER_PSA_ENABLED
Change-Id: I518ff7c05fc1fa279cd7300cb77673a86ff3e35b
2024-08-28 23:20:52 +00:00
Super Liu
8aaaec0793 Refine the GTI dump order
Adjust the order to get the touch snapshot as soon as possible.
This will avoid the following operations to overwrite the touch
statistics for further analysis.

Bug: 356993163
Flag: EXEMPT bugfix
Test: Manual test.
Change-Id: I012544849868ca7b81c11ffa13858eaa209af5c5
Signed-off-by: Super Liu <supercjliu@google.com>
2024-08-09 01:47:32 +00:00
Super Liu
bb0d0ca8ff touch: gti support sysfs_wakeup
07-03 02:59:22.526   517   517 W binder:517_5: type=1400 audit(0.0:18): avc:  denied  { read } for  name="wakeup36" dev="sysfs" ino=98946 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs_touch_gti:s0 tclass=dir permissive=0
07-03 02:59:22.531   517  1547 E android.system.suspend-service: Error opening kernel wakelock stats for: wakeup36 (../../devices/virtual/goog_touch_interface/gti.0/wakeup36): Permission denied

Test: TH build pass
Bug: 335839116
Change-Id: I1840dc5433fd2bfd0722852e6b721c20ff14e39b
Signed-off-by: Super Liu <supercjliu@google.com>
2024-07-03 03:02:35 +00:00
Super Liu
f897a71294 Support touch sepolicy for spi20
avc denied logs:
07-02 13:17:48.412     1     1 I auditd  : type=1107 audit(0.0:4): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc:  denied  { read } for property=persist.sys.tap_gesture pid=0 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:gesture_prop:s0 tclass=file permissive=0'
07-02 13:17:56.204   315   315 I auditd  : type=1400 audit(0.0:20): avc:  denied  { write } for  comm="init" name="nvt_heatmap" dev="proc" ino=4026536248 scontext=u:r:vendor_init:s0 tcontext=u:object_r:proc:s0 tclass=file permissive=0

vendor_init change to access sysfs_touch from sysfs:
07-02 13:17:56.680     1     1 I init    : Command 'write /sys/devices/virtual/goog_touch_interface/gti.0/vendor_input/nvt_dttw_mode 1' action=vendor.all.modules.ready=1 (/vendor/etc/init/hw/init.rc:127) took 462ms and succeeded
ls -lZ /sys/devices/virtual/goog_touch_interface/gti.0/vendor_input/nvt_dttw_mode
-rw-r--r-- 1 system system u:object_r:sysfs:s0  4096 2024-07-02 13:17 /sys/devices/virtual/goog_touch_interface/gti.0/vendor_input/nvt_dttw_mode

Bug: 335839116
Test: TH pass
Change-Id: If1890defcb9400405071b1c669098d9d62bc56e4
Signed-off-by: Super Liu <supercjliu@google.com>
2024-07-02 14:15:46 +00:00
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 28754e355a)
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