From 324cb51012a37cc79f5add94bf763c313cf3b72f Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Thu, 21 Mar 2019 10:13:02 -0700 Subject: [PATCH] Remove unnecessary called from system process warning. This method takes the UserHandle, so we don't need to warn that the system process is calling the method without UserHandle. Test: treehugger Change-Id: I68b0ffc75e11ee2d45faec510ea63e446830a378 --- core/java/android/app/ContextImpl.java | 1 - 1 file changed, 1 deletion(-) diff --git a/core/java/android/app/ContextImpl.java b/core/java/android/app/ContextImpl.java index b607f9adebbe1..c269d5bbfc764 100644 --- a/core/java/android/app/ContextImpl.java +++ b/core/java/android/app/ContextImpl.java @@ -1082,7 +1082,6 @@ class ContextImpl extends Context { @Override public void sendBroadcastAsUserMultiplePermissions(Intent intent, UserHandle user, String[] receiverPermissions) { - warnIfCallingFromSystemProcess(); String resolvedType = intent.resolveTypeIfNeeded(getContentResolver()); try { intent.prepareToLeaveProcess(this);