Skip to content

Commit

Permalink
fix: AllowManageAllNotifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Sevtinge committed Oct 15, 2024
1 parent 4a54581 commit 2525b88
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>());
param.setResult((new ArrayList<String>()).toString());
}
});
} catch (Throwable t) {
Expand Down

0 comments on commit 2525b88

Please sign in to comment.