Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
410154425 authored Mar 24, 2023
1 parent 61896a2 commit 06587e7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions module.prop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id=MiuiVariableThermal
name=MIUI动态温控
version=20230320
versionCode=2023032000
version=20230324
versionCode=2023032400
author=top大佬(酷安)
description=[ 当前温控:未知 ] 利用MIUI云温控,使充电场景、游戏场景在温控层面用不同档位的快充和性能无限制,普通场景自动恢复系统默认温控,可配置MIUI旁路供电、锁定屏幕刷新率,配置路径:/data/adb/modules/MiuiVariableThermal/config.conf,日志log.log。
# ##
10 changes: 5 additions & 5 deletions mvt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -631,15 +631,15 @@ if [ "$screen_on" != 'false' ]; then
if [ "$thermal_app" = "1" ]; then
app_list="$(echo "$config_conf" | egrep '^app_list=' | sed -n 's/app_list=//g;$p')"
if [ -n "$app_list" ]; then
dumpsys_window="$(dumpsys window displays | egrep 'mCurrentFocus')"
dumpsys_window="$(dumpsys window displays | egrep 'mCurrentFocus' | sed -n '$p')"
if [ -n "$dumpsys_window" ]; then
activity_window="$(echo "$dumpsys_window" | egrep "$app_list")"
activity_window="$(echo "$dumpsys_window" | egrep "$app_list")"
else
activity_window="$(dumpsys window | egrep 'mCurrentFocus' | egrep "$app_list")"
activity_window="$(dumpsys window | egrep 'mCurrentFocus' | sed -n '$p' | egrep "$app_list")"
fi
if [ -f "$MODDIR/mCurrentFocus" ]; then
if [ ! -n "$activity_window" ]; then
activity_window="$(dumpsys activity | egrep 'mResumedActivity|mTopFullscreen' | egrep "$app_list")"
activity_window="$(dumpsys activity | egrep 'mResumedActivity|mTopFullscreen' | sed -n '$p' | egrep "$app_list")"
fi
fi
if [ -n "$activity_window" ]; then
Expand Down Expand Up @@ -763,5 +763,5 @@ if [ -f "$MODDIR/thermal/thermal-default.conf" ]; then
fi
thermal_conf
exit 0
#version=2023032000
#version=2023032400
# ##
2 changes: 1 addition & 1 deletion upmvt.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
MVT_update,http://z23r562938.iask.in/MVT_magisk,[2023032000]
MVT_update,http://z23r562938.iask.in/MVT_magisk,[2023032400]
网盘:https://topdalao.lanzoui.com/b02dn57fg
密码:1111

0 comments on commit 06587e7

Please sign in to comment.