diff options
| author | 2023-01-23 13:05:35 +0000 | |
|---|---|---|
| committer | 2023-01-23 13:05:35 +0000 | |
| commit | a62cc29ccec74c403a808c4223fd1b898f21a969 (patch) | |
| tree | 66c0ae30bef2cbe85625484f9917b6f1cf11bfd5 | |
| parent | 468352a821ec3b709af993f9666328432d847226 (diff) | |
| parent | a6f366e392f8a3b3050918bcf6d99d60601a65cf (diff) | |
Merge "Revert "Replace security exception with silent log in system ui."" into tm-qpr-dev
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java b/packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java index 4e9f69ce7d35..17583793701c 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java @@ -53,7 +53,6 @@ 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; @@ -1271,8 +1270,7 @@ public class CommandQueue extends IStatusBar.Stub implements public void showMediaOutputSwitcher(String packageName) { int callingUid = Binder.getCallingUid(); if (callingUid != 0 && callingUid != Process.SYSTEM_UID) { - Slog.e(TAG, "Call only allowed from system server."); - return; + throw new SecurityException("Call only allowed from system server."); } synchronized (mLock) { SomeArgs args = SomeArgs.obtain(); |