Common interfaces & sepolicies for tensor-based Google Pixel devices
Find a file
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
aoc Fix aocx selinux dumpstate permissions 2024-06-14 15:36:14 -07:00
audio sepolicy: add permission for Speaker Version of pixelstats-vend. 2024-06-11 05:53:07 +00:00
battery_mitigation sepolicy: allow dumpstate to call battery_mitigation 2024-04-16 03:54:45 +00:00
bcmbt [BT] Add sepolicy of power stats 2024-05-27 09:14:28 +00:00
betterbug Remove BetterBug (and BetterBugStub) from aosp & factory build targets. 2024-05-15 06:50:55 +00:00
bootctrl gs-common: bootctrl: integrate blowAR() for gs101 & zuma 2023-12-05 09:14:48 +08:00
camera Merge "Move definition for vendor_camera_lyricconfigprovider_service into product" into main 2024-06-19 02:31:58 +00:00
chre Allow sensor hal to connect to CHRE HAL 2024-02-07 15:36:08 -08:00
dauntless mDL: Remove mDL HAL 2024-04-02 06:46:01 +00:00
display Add dump of panel_pwr_vreg 2023-10-27 07:46:17 +00:00
display_logbuffer dumpstate: add logbuffer support for display 2023-12-13 06:12:51 +00:00
edgetpu Merge "Add missing SEPolicy for audio HAL to use EdgeTpu lib" into main 2024-05-15 21:32:54 +00:00
fingerprint gs-common: add fingerprint dump 2024-06-11 13:35:04 +00:00
gear Create an isolated copy of vendor dumpstate from all devices 2024-05-20 01:59:27 +00:00
gps Merge "gps: Add pps_assert sepolicy" into main 2024-07-02 06:51:49 +00:00
gpu Add pixel mapper service context 2024-03-20 18:12:29 +00:00
gs_watchdogd gs_watchdogd: Use timeout defined by platform 2024-06-24 11:45:43 +08:00
gxp Limit maxGxpDebugDumps to 4 2024-05-09 12:33:01 +00:00
gyotaku_app [dump_gyotaku] Add collect odpm logs for dump_gyotaku. 2024-06-07 03:33:43 +00:00
insmod Add a different implementation of insmod.sh 2024-05-09 09:46:55 -07:00
led create led dump 2023-02-13 12:48:47 +08:00
mediacodec Update policy for ECOService switch to NDK binder 2024-02-11 22:24:39 +00:00
misc_writer Sepolicy: allow vendor_misc_writer to get sota_prop 2023-06-29 20:47:51 +00:00
modem shamp: Add SEPolicy and compat matrix for shamp 2024-03-14 01:50:33 +00:00
mte Revert "Enable MTE workaround for b/324412910" 2024-03-20 14:54:04 +00:00
pcie dumpstate: Collect PCIe link statistics 2023-02-10 09:08:10 -06:00
performance Dump bts information am: 15538c9845 2024-05-15 02:16:45 +00:00
pixel_metrics gs-common: dumpstate: Add RT Runnable stats into bugreport 2023-11-13 17:53:18 +00:00
pixel_ril pixel_ril: make VINTF target level specify by device 2023-05-10 18:43:58 +08:00
pixelsupport Add SEPolicy domain for cavalry app 2024-03-28 09:43:36 +00:00
power Create power folder and align pm_freeze_timeout settings with p22 2024-06-27 02:36:28 +08:00
powerstats powerstats: sort frequencies in descending order 2023-12-25 15:04:50 +08:00
radio Move the sysfs_modem_state from a product folder to gs-common 2024-03-28 21:10:23 +00:00
ramdump_and_coredump Remove unused apps (RamdumpService and SSRestartDetector) from factory build targets. 2024-05-06 19:58:06 +08:00
recorder Recorder: add sepolicy for Google Recorder app 2024-06-04 14:57:11 +08:00
sensors Allow sensor hal to connect to CHRE HAL 2024-02-07 15:36:08 -08:00
sepolicy create a folder for pixel sepolicy operations 2023-05-10 01:44:25 +00:00
soc Change bash script to C++ implementation 2023-07-19 13:20:59 +08:00
sota_app Add a factoryota-watch.mk file to include the OtaClient for wearable 2024-03-27 03:11:31 +00:00
storage Merge "Make foreground and background I/O priority different" into main am: 56b74041e3 am: a24099e61b 2024-06-19 00:22:02 +00:00
thermal thermal: allow thermal_hal to read sysfs_gpu 2024-04-29 05:37:09 +00:00
touch Support touch sepolicy for spi20 2024-07-02 14:15:46 +00:00
trusty rpmb_dev: add rpmb_dev package 2024-03-13 17:49:16 +01:00
tts Updates TTS voice packs in gs-common 2024-04-10 07:07:03 +00:00
umfw_stat dump_umfw_stat: Reduce timeout to 0.5 seconds 2024-04-25 16:43:16 +00:00
widevine Respect RELEASE_PACKAGE_WIDEVINE back in device.mk 2024-05-02 17:42:27 +00:00
wireless_charger sepolicy: allow hal_wlcservice call 2024-05-19 13:34:15 +00:00
wlan create wlan dump 2023-03-31 06:28:07 +08:00
Android.bp gs-common: add device_google_gs-common_license 2023-12-05 00:46:19 +08:00
device.mk Revert^2 "Add one variable to decide if need TTS voice packs" 2024-06-13 01:37:43 +00:00
MK_OWNERS Add MK_OWNERS as owners file for makefile 2024-05-24 08:01:37 +00:00
NOTICE gs-common: add device_google_gs-common_license 2023-12-05 00:46:19 +08:00
OWNERS Add MK_OWNERS as owners file for makefile 2024-05-24 08:01:37 +00:00
README.txt add owners to manage gs-common 2022-08-12 09:55:21 +08:00

Please refer to go/pixel-recycle to modularize your code in this space.