Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a6f366e3 authored by Bishoy Gendy's avatar Bishoy Gendy Committed by Android (Google) Code Review
Browse files

Revert "Replace security exception with silent log in system ui."

This reverts commit 7f22a4d5.

Reason for revert: Exception is caught by Binder, so SystemUI won't crash.

Change-Id: Ie82a61b9e297ea01447192557436e1a0b9505be5
parent 7f22a4d5
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -55,7 +55,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;
@@ -1274,8 +1273,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();