7 Commits

Author SHA1 Message Date
Peter (YM)
88203440b2 thermal: allow thermal_hal to read sysfs_gpu
Update the sepolicy for thermalhal to read sysfs_gpu to access the basic
gpu info.

Bug: 336698561
Test: Flash Build and boot to home, run adb shell dumpsys android.hardware.thermal.IThermal/default, check the cdevceiling and hardlimit number for gpu
Change-Id: I6e722e108284ee0d7a0c86a9e50749ecf4b354a5
Signed-off-by: Peter (YM) <peterym@google.com>
2024-04-29 05:37:09 +00:00
TeYuan Wang
2e4c437b43 sepolicy: allow setprop for thermal_controld
selinux denied log:
[   53.774820] type=1400 audit(1709683991.036:9): avc:  denied  { write } for  comm="setprop" name="property_service" dev="tmpfs" ino=842 scontext=u:r:pixel-thermal-control-sh:s0 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0

Bug: 328118301
Test: adb shell getprop vendor.disable.thermalhal.control
Change-Id: I590f05d1119d11400b0115fff63b3420790e7332
2024-03-11 19:00:11 +00:00
Ram Chandrasekar
90fd300e5f thermal-hal: Add thermal HAL configs
Add all thermal HAL sepolicy and makefile to the new common folder.

Bug: 289146743
Test: Compilation test

Change-Id: I133dcdac20a970e7ff4026fa503e46fd073be34f
Signed-off-by: Ram Chandrasekar <rchandrasekar@google.com>
2023-08-03 12:30:14 -06:00
Ram Chandrasekar
910ecf4ffa sepolicy: thermal: reorganize the source to folder
Reorganize the dump thermal script source and sepolicy to its own
folder. This is done as a part of moving all thermal product
makefiles to gs-common.

Bug: 289146743
Test: Compilation and bootup test

Change-Id: Ie9162b401c9bed57c3d2e2648edc17457ad8883e
Signed-off-by: Ram Chandrasekar <rchandrasekar@google.com>
2023-07-31 11:13:51 -06:00
Ziyi Cui
3add9b2b48 gs-common:dumpstate: Combine Temperature Residency bugreport to pixel_metrics
Bug: 246799997
Test: Test: "adb bugreport" includes temp residency metrics capture.
Change-Id: I51eb7f961bd1ddeb0b7cd7bb33d1a19fef9b2c92
2022-11-28 20:16:47 +00:00
Ziyi Cui
4a96ebedbf gs-common:dumpstate: Dump Temperature Residency at bugreport
At the bugreport, capture Temperature Residency metrics

Bug: 246799997
Test: Test: "adb bugreport" includes temp residency metrics capture.
Change-Id: I1cb1c9e53890f3175812e15a15f09bcb7fd9d6af
2022-11-24 00:12:48 +00:00
Adam Shih
486bbb9212 create thermal dump in gs-common
Bug: 257880034
Test: adb bugreport
Change-Id: I0d93796c2639148dfb00b0d739cbae483091bfd4
2022-11-15 15:36:01 +08:00