isDeadSystemException

Checks if the given Throwable is a DeadSystemRuntimeException or DeadObjectException, which indicates that the Bluetooth system service has died unexpectedly.

This can happen when the Android Bluetooth stack crashes and restarts. When this occurs, all pending BLE operations will fail and the app should gracefully handle the error by potentially resetting the BLE platform.

We check by class name because DeadSystemRuntimeException is a hidden API class that may not be directly importable in all Android SDK versions.

Return

true if this throwable represents a dead system condition, false otherwise.