From 2525b88e401b8bff860db2e91fddc03bad1b2ab4 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: Tue, 15 Oct 2024 17:05:19 +0800 Subject: [PATCH] fix: AllowManageAllNotifications --- .../module/hook/systemui/AllowManageAllNotifications.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/sevtinge/hyperceiler/module/hook/systemui/AllowManageAllNotifications.java b/app/src/main/java/com/sevtinge/hyperceiler/module/hook/systemui/AllowManageAllNotifications.java index fb764d404..d15e2ccbc 100644 --- a/app/src/main/java/com/sevtinge/hyperceiler/module/hook/systemui/AllowManageAllNotifications.java +++ b/app/src/main/java/com/sevtinge/hyperceiler/module/hook/systemui/AllowManageAllNotifications.java @@ -39,10 +39,10 @@ public void init() throws NoSuchMethodException { try { // Android 14 中期开始变化为 getCloudDataString 方法 - findAndHookMethod("com.miui.systemui.NotificationCloudData$Companion", "getCloudDataString", Context.class, String.class, String.class, new MethodHook() { + findAndHookMethod("com.miui.systemui.CloudDataManager$Companion", "getCloudDataString", Context.class, String.class, String.class, new MethodHook() { @Override protected void before(MethodHookParam param) { - param.setResult(new ArrayList()); + param.setResult((new ArrayList()).toString()); } }); } catch (Throwable t) {