Skip to content

Commit

Permalink
opt: sf - DisableMiuiLite
Browse files Browse the repository at this point in the history
  • Loading branch information
Sevtinge committed Jul 16, 2024
1 parent 8405e7e commit 5e8ebfe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
*/
package com.sevtinge.hyperceiler.module.hook.systemframework;

import static de.robv.android.xposed.XposedHelpers.setStaticBooleanField;

import com.sevtinge.hyperceiler.module.base.BaseHook;

public class DisableMiuiLite extends BaseHook {
Expand All @@ -29,5 +31,8 @@ protected void before(final MethodHookParam param) throws Throwable {
param.setResult(false);
}
});
setStaticBooleanField(findClassIfExists("miui.util.DeviceLevel"), "IS_MIUI_GO_VERSION", false);
setStaticBooleanField(findClassIfExists("miui.util.DeviceLevel"), "IS_MIUI_LITE_VERSION", false);
setStaticBooleanField(findClassIfExists("miui.util.DeviceLevel"), "IS_MIUI_MIDDLE_VERSION", false);
}
}
2 changes: 1 addition & 1 deletion app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@
<string name="system_framework_background_blur_supported">强制启用高级材质</string>
<string name="system_framework_background_blur_toast">Toast 高级材质</string>
<string name="system_framework_background_blur_supported_more">开启此功能后请在系统设置中控制高级材质开关,可能需要重启两次系统</string>
<string name="system_framework_disablt_miuilite_check">禁用 MIUI Lite 检查</string>
<string name="system_framework_disablt_miuilite_check">禁用精简版系统检查</string>
<string name="system_framework_posted_clipboard">禁止显示剪贴板粘贴 Toast</string>
<string name="system_framework_allow_manage_all_notifications">允许管理所有通知</string>
<string name="system_framework_quick_screenshot">秒截图</string>
Expand Down

0 comments on commit 5e8ebfe

Please sign in to comment.