Merge "Allow unexported receiver registration for sandbox" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b24001b123
@@ -12945,7 +12945,12 @@ public class ActivityManagerService extends IActivityManager.Stub
|
||||
public Intent registerReceiverWithFeature(IApplicationThread caller, String callerPackage,
|
||||
String callerFeatureId, String receiverId, IIntentReceiver receiver,
|
||||
IntentFilter filter, String permission, int userId, int flags) {
|
||||
enforceNotIsolatedOrSdkSandboxCaller("registerReceiver");
|
||||
// Allow Sandbox process to register only unexported receivers.
|
||||
if ((flags & Context.RECEIVER_NOT_EXPORTED) != 0) {
|
||||
enforceNotIsolatedCaller("registerReceiver");
|
||||
} else {
|
||||
enforceNotIsolatedOrSdkSandboxCaller("registerReceiver");
|
||||
}
|
||||
ArrayList<Intent> stickyIntents = null;
|
||||
ProcessRecord callerApp = null;
|
||||
final boolean visibleToInstantApps
|
||||
|
||||
Reference in New Issue
Block a user