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

Commit dceef495 authored by Atneya Nair's avatar Atneya Nair
Browse files

Add unhandled exception listener to STService

Bug: 150808347
Test: SoundTriggerManagerTest with injected exceptions
Test: compiles
Flag: EXEMPT safe, addtl logging, no abort in system_server
Change-Id: I89b3e125dde679493082aee197363bea860453a1
parent 4fcd881d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -504,6 +504,11 @@ public class SoundTriggerService extends SystemService {
            pw.println("\n##Sound Model Stats dump:\n");
            mSoundModelStatTracker.dump(pw);
        }

        @Override
        protected void onUnhandledException(int code, int flags, Exception e) {
            Slog.wtf(TAG, "Unhandled exception code: " + code, e);
        }
    }

    class SoundTriggerSessionStub extends ISoundTriggerSession.Stub {