Merge "Revert "Replace security exception with silent log in system ui."" into tm-qpr-dev am: a62cc29cce

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21057583

Change-Id: Ia03e3881b2aab4584bf20e47bec13bd2356ed858
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Bishoy Gendy
2023-01-23 13:59:20 +00:00
committed by Automerger Merge Worker

View File

@@ -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();