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

Commit f1d202bd authored by Adrian Roos's avatar Adrian Roos Committed by Android (Google) Code Review
Browse files

Merge "ZeroJankProxy: Fix system_server crash when on bad app calls." into main

parents 26ca5ef9 34730c43
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -101,7 +101,6 @@ public class ZeroJankProxy extends IInputMethodManager.Stub {
    }

    private void offloadInner(Runnable r) {
        boolean useThrowingRunnable = r instanceof ThrowingRunnable;
        final long identity = Binder.clearCallingIdentity();
        try {
            mExecutor.execute(() -> {
@@ -110,14 +109,9 @@ public class ZeroJankProxy extends IInputMethodManager.Stub {
                Binder.restoreCallingIdentity(identity);
                try {
                    try {
                        if (useThrowingRunnable) {
                            ((ThrowingRunnable) r).runOrThrow();
                        } else {
                        r.run();
                        }
                    } catch (Exception e) {
                        Slog.e(TAG, "Error in async call", e);
                        throw ExceptionUtils.propagate(e);
                        Slog.e(TAG, "Error in async IMMS call", e);
                    }
                } finally {
                    Binder.restoreCallingIdentity(inner);