From 8f8428d61801d1d14f23ad783436da2234bf7bbc Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Fri, 29 Apr 2022 13:44:00 -0700 Subject: [PATCH 1/2] Dumpstate: get fsck log Bug: 241641121 Signed-off-by: Jaegeuk Kim Change-Id: Iaadb166fe9194518b2db75080cddc02526bdf2bb --- dumpstate/DumpstateDevice.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp index e20065ae..29103eca 100644 --- a/dumpstate/DumpstateDevice.cpp +++ b/dumpstate/DumpstateDevice.cpp @@ -885,6 +885,7 @@ void DumpstateDevice::dumpMemorySection(int fd) { static void DumpF2FS(int fd) { DumpFileToFd(fd, "F2FS", "/sys/kernel/debug/f2fs/status"); + DumpFileToFd(fd, "F2FS", "/dev/fscklogs/fsck"); RunCommandToFd(fd, "F2FS - fsck time (ms)", {"/vendor/bin/sh", "-c", "getprop ro.boottime.init.fsck.data"}); RunCommandToFd(fd, "F2FS - checkpoint=disable time (ms)", {"/vendor/bin/sh", "-c", "getprop ro.boottime.init.mount.data"}); } From f121ec6625acebf43ab5d91ab487f82278d60168 Mon Sep 17 00:00:00 2001 From: David Chao Date: Thu, 18 Aug 2022 16:32:51 +0800 Subject: [PATCH 2/2] thermal: move charger thermal HAL setup into project Move charger pixel-thermal-symlink from common to project folder to prevent the GKI version dependencies from blocking init. Bug: 240897207 Test: thermal_symlinks worked properly in charging mode Change-Id: I0d3b03c9add57b14f255eb66a1a7a46fa6c4b257 --- conf/init.gs101.rc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/conf/init.gs101.rc b/conf/init.gs101.rc index 84d55d69..e41668a5 100644 --- a/conf/init.gs101.rc +++ b/conf/init.gs101.rc @@ -972,6 +972,18 @@ on charger write /proc/vendor_sched/sys_uclamp_min 0 write /proc/vendor_sched/sys_prefer_idle 0 + # Use charger thermal config + setprop vendor.thermal.config "thermal_info_config_charge.json" + + # Wait for insmod_sh to finish all common modules + wait_for_prop vendor.common.modules.ready 1 + + # Create thermal symlink in off charging mode + mkdir /dev/thermal 0750 system system + mkdir /dev/thermal/tz-by-name 0750 system system + mkdir /dev/thermal/cdev-by-name 0750 system system + start vendor.thermal.symlinks + on property:vendor.disable.bcl.control=1 write /sys/devices/virtual/pmic/mitigation/instruction/enable_mitigation 0