Merge "Replace security exception with silent log in system ui." into tm-qpr-dev am: ccac562611 am: 44943f3c2a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21019189 Change-Id: I6db38d613dd891419f9be5e9a0ee1446b4a40edc Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -53,6 +53,7 @@ import android.os.ParcelFileDescriptor;
|
||||
import android.os.Process;
|
||||
import android.os.RemoteException;
|
||||
import android.util.Pair;
|
||||
import android.util.Slog;
|
||||
import android.util.SparseArray;
|
||||
import android.view.InsetsState.InternalInsetsType;
|
||||
import android.view.WindowInsets.Type.InsetsType;
|
||||
@@ -1270,7 +1271,8 @@ public class CommandQueue extends IStatusBar.Stub implements
|
||||
public void showMediaOutputSwitcher(String packageName) {
|
||||
int callingUid = Binder.getCallingUid();
|
||||
if (callingUid != 0 && callingUid != Process.SYSTEM_UID) {
|
||||
throw new SecurityException("Call only allowed from system server.");
|
||||
Slog.e(TAG, "Call only allowed from system server.");
|
||||
return;
|
||||
}
|
||||
synchronized (mLock) {
|
||||
SomeArgs args = SomeArgs.obtain();
|
||||
|
||||
Reference in New Issue
Block a user