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

Commit f35d9d00 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Stop logging RuntimeException in IMMS#onTransact()" into main

parents 23fa27f4 8a75baf9
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
@@ -92,7 +92,6 @@ import android.os.IBinder;
import android.os.LocaleList;
import android.os.Looper;
import android.os.Message;
import android.os.Parcel;
import android.os.Process;
import android.os.RemoteException;
import android.os.ResultReceiver;
@@ -1868,21 +1867,6 @@ public final class InputMethodManagerService extends IInputMethodManager.Stub
                        false /* enabledOnly */));
    }

    @Override
    public boolean onTransact(int code, Parcel data, Parcel reply, int flags)
            throws RemoteException {
        try {
            return super.onTransact(code, data, reply, flags);
        } catch (RuntimeException e) {
            // The input method manager only throws security exceptions, so let's
            // log all others.
            if (!(e instanceof SecurityException)) {
                Slog.wtf(TAG, "Input Method Manager Crash", e);
            }
            throw e;
        }
    }

    /**
     * TODO(b/32343335): The entire systemRunning() method needs to be revisited.
     */