Snap for 8978248 from 0425df9d4a
to udc-release
Change-Id: I0c998d1f4dccdfb60dd7264c22b7427366c4c9d2
This commit is contained in:
commit
6e9bb4774e
2 changed files with 14 additions and 0 deletions
|
@ -970,6 +970,19 @@ on property:vendor.thermal.link_ready=1
|
||||||
chmod 664 /dev/thermal/cdev-by-name/usbc-port/cur_state
|
chmod 664 /dev/thermal/cdev-by-name/usbc-port/cur_state
|
||||||
chown system system /dev/thermal/cdev-by-name/usbc-port/cur_state
|
chown system system /dev/thermal/cdev-by-name/usbc-port/cur_state
|
||||||
|
|
||||||
|
on charger
|
||||||
|
# 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
|
on property:vendor.disable.bcl.control=1
|
||||||
write /sys/devices/virtual/pmic/mitigation/instruction/enable_mitigation 0
|
write /sys/devices/virtual/pmic/mitigation/instruction/enable_mitigation 0
|
||||||
|
|
||||||
|
|
|
@ -940,6 +940,7 @@ void Dumpstate::dumpMemorySection(int fd) {
|
||||||
|
|
||||||
static void DumpF2FS(int fd) {
|
static void DumpF2FS(int fd) {
|
||||||
DumpFileToFd(fd, "F2FS", "/sys/kernel/debug/f2fs/status");
|
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 - 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"});
|
RunCommandToFd(fd, "F2FS - checkpoint=disable time (ms)", {"/vendor/bin/sh", "-c", "getprop ro.boottime.init.mount.data"});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue