From f19950adda2f5b43280d884ce70d2140f60e9c64 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Wed, 25 Jan 2023 02:19:25 +0800 Subject: [PATCH] Notify module if request scope fails to send notification --- .../org/lsposed/lspd/service/LSPNotificationManager.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/daemon/src/main/java/org/lsposed/lspd/service/LSPNotificationManager.java b/daemon/src/main/java/org/lsposed/lspd/service/LSPNotificationManager.java index fb82e547..58c18a6d 100644 --- a/daemon/src/main/java/org/lsposed/lspd/service/LSPNotificationManager.java +++ b/daemon/src/main/java/org/lsposed/lspd/service/LSPNotificationManager.java @@ -294,7 +294,11 @@ public class LSPNotificationManager { nm.enqueueNotificationWithTag("android", opPkg, modulePackageName, pushAndGetNotificationId(SCOPE_CHANNEL_ID, modulePackageName, moduleUserId), notification, 0); - } catch (RemoteException e) { + } catch (Throwable e) { + try { + callback.onScopeRequestFailed(scopePackageName, e.getMessage()); + } catch (RemoteException ignored) { + } Log.e(TAG, "request module scope", e); } }