From 45e5417dc678fc820c26ab43b58287280cfadbcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=80=E6=BC=93=E4=B8=A8Sevtinge?= <89193494+Sevtinge@users.noreply.github.com> Date: Mon, 22 Jan 2024 03:50:26 +0800 Subject: [PATCH] Update AllowThirdLockScreenUseFace.java --- .../hook/systemui/lockscreen/AllowThirdLockScreenUseFace.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/sevtinge/hyperceiler/module/hook/systemui/lockscreen/AllowThirdLockScreenUseFace.java b/app/src/main/java/com/sevtinge/hyperceiler/module/hook/systemui/lockscreen/AllowThirdLockScreenUseFace.java index 87cc97c552..52156d9c46 100644 --- a/app/src/main/java/com/sevtinge/hyperceiler/module/hook/systemui/lockscreen/AllowThirdLockScreenUseFace.java +++ b/app/src/main/java/com/sevtinge/hyperceiler/module/hook/systemui/lockscreen/AllowThirdLockScreenUseFace.java @@ -8,13 +8,13 @@ public void init() throws NoSuchMethodException { findAndHookMethod("com.android.keyguard.KeyguardUpdateMonitor", "isUnlockWithFacePossible", int.class, new MethodHook(){ @Override protected void before(MethodHookParam param) throws Throwable { - param.setResult(false); + param.setResult(true); } }); findAndHookMethod("miui.stub.MiuiStub$3", "isUnlockWithFingerprintPossible", int.class, new MethodHook(){ @Override protected void before(MethodHookParam param) throws Throwable { - param.setResult(false); + param.setResult(true); } }); }