0
0
Fork 0
mirror of https://github.com/YTVanced/VancedMicroG synced 2024-11-27 13:43:00 +00:00

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 {