GCM: Do not require receiver permission for target app

This commit is contained in:
Marvin W 2020-07-09 11:39:43 +02:00
parent ac5f7457bd
commit 74213474b5
No known key found for this signature in database
GPG Key ID: 072E9235DB996F2A

View File

@ -555,7 +555,7 @@ public class McsService extends Service implements Handler.Callback {
}
targetIntent.setComponent(new ComponentName(resolveInfo.activityInfo.packageName, resolveInfo.activityInfo.name));
if (resolveInfo.activityInfo.packageName.equals(packageName)) {
sendOrderedBroadcast(targetIntent, receiverPermission);
sendOrderedBroadcast(targetIntent, null);
} else if (receiverPermission != null) {
sendOrderedBroadcast(targetIntent, receiverPermission);
} else {