diff --git a/library/core/src/main/res/values-zh-rCN/strings_app.xml b/library/core/src/main/res/values-zh-rCN/strings_app.xml index 34b466a8dc..a98957ad0a 100644 --- a/library/core/src/main/res/values-zh-rCN/strings_app.xml +++ b/library/core/src/main/res/values-zh-rCN/strings_app.xml @@ -1428,6 +1428,7 @@ 电量与性能 自定义高刷新率应用 锁定当前刷新率上限 + 锁定当前温控刷新率上限 尝试不要杀死后台应用 可能使耗电量增加 禁止恢复电池优化白名单 diff --git a/library/core/src/main/res/values/strings_app.xml b/library/core/src/main/res/values/strings_app.xml index db3ac8106e..2025f3a093 100644 --- a/library/core/src/main/res/values/strings_app.xml +++ b/library/core/src/main/res/values/strings_app.xml @@ -1475,6 +1475,7 @@ Battery and performance Custom high refresh rate apps Lock max FPS + Lock thermal max FPS Try don\'t kill apps May increase power consumption Prevent recovery of battery optimization whitelist diff --git a/library/core/src/main/res/xml/powerkeeper.xml b/library/core/src/main/res/xml/powerkeeper.xml index 53312163b4..562bb30a8f 100644 --- a/library/core/src/main/res/xml/powerkeeper.xml +++ b/library/core/src/main/res/xml/powerkeeper.xml @@ -31,6 +31,11 @@ android:key="prefs_key_powerkeeper_lock_max_fps" android:defaultValue="false" /> + + . + + * Copyright (C) 2023-2026 HyperCeiler Contributions +*/ +package com.sevtinge.hyperceiler.libhook.rules.powerkeeper + +import com.sevtinge.hyperceiler.libhook.base.BaseHook +import io.github.lingqiqi5211.ezhooktool.core.findAllMethods +import io.github.lingqiqi5211.ezhooktool.xposed.dsl.createHook + +object LockThermalMaxFps : BaseHook() { + override fun init() { + findClass("com.miui.powerkeeper.feedbackcontrol.ThermalManager").findAllMethods { name("displayControl"); paramCount(1) }.single().createHook { + returnConstant(null) + } + } +}