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

Commit 4e8a44c8 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Correctly detect dead soundtrigger HAL process"

parents 584b0dc9 ff7fe379
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -192,10 +192,7 @@ public class SoundTriggerHw2Enforcer implements ISoundTriggerHw2 {
    }

    private static RuntimeException handleException(RuntimeException e) {
        // TODO(b/160169016): There is currently no other way to distinguish dead object from other
        //   exceptions.
        if (e.getCause() instanceof RemoteException &&
                e.getCause().getMessage().equals("HwBinder Error: (-32)")) {
        if (e.getCause() instanceof DeadObjectException) {
            // Server is dead, no need to reboot.
            Log.e(TAG, "HAL died");
        } else {