diff options
| author | 2023-01-18 09:39:18 +0000 | |
|---|---|---|
| committer | 2023-01-18 09:39:18 +0000 | |
| commit | 44943f3c2a709b85d96937328c1e880d39746fa8 (patch) | |
| tree | f7fa4cbbdca0b48c3c73b3aeb6cf35badfcc9ebc | |
| parent | 02fab80b665c5ec946434f2f7daac8c746bcbc9e (diff) | |
| parent | ccac562611a126c179ea6adb6d51aa1d5a70ad73 (diff) | |
Merge "Replace security exception with silent log in system ui." into tm-qpr-dev am: ccac562611
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21019189
Change-Id: I0bd8151ee328f0d386981fbf665c9ada87860b0b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java b/packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java index cd423dc13c9b..a66247412517 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java @@ -55,6 +55,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.InsetsVisibilities; @@ -1273,7 +1274,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(); |