Skip to content

Commit 175c73c

Browse files
authored
BroadcastFix: update condition (#220)
1 parent 0024ac7 commit 175c73c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/src/main/java/com/kooritea/fcmfix/xposed/BroadcastFix.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ protected void beforeHookedMethod(MethodHookParam methodHookParam) {
137137
return;
138138
}
139139
Intent intent = (Intent) methodHookParam.args[finalIntent_args_index];
140-
if(intent.getFlags() != Intent.FLAG_INCLUDE_STOPPED_PACKAGES && isFCMIntent(intent)){
140+
// 介入条件:Intent未包含唤醒停止的pkg 且 Intent是FCM
141+
if((intent.getFlags() & Intent.FLAG_INCLUDE_STOPPED_PACKAGES) == 0 && isFCMIntent(intent)){
141142
String target;
142143
if (intent.getComponent() != null) {
143144
target = intent.getComponent().getPackageName();

0 commit comments

Comments
 (0)