Expose CONNECTIVITY_ACTION to Instant Apps
Test: Broadcast is visible to Instant Apps Bug: 69421898 Change-Id: I8435e7723cf7a722668b97ff087d1f4453d3e7b7
This commit is contained in:
@@ -1705,6 +1705,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||||||
ni != null ? ni.getState().toString() : "?");
|
ni != null ? ni.getState().toString() : "?");
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
}
|
}
|
||||||
|
intent.addFlags(Intent.FLAG_RECEIVER_VISIBLE_TO_INSTANT_APPS);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
mContext.sendStickyBroadcastAsUser(intent, UserHandle.ALL, options);
|
mContext.sendStickyBroadcastAsUser(intent, UserHandle.ALL, options);
|
||||||
|
|||||||
Reference in New Issue
Block a user