sensorservice: Add retry logic for ISensors acquisition
Address a race condition where the sensors HAL may crash after the
binder is retrieved but before the ISensors interface is acquired,
leaving the sensor service in a broken state.
This change introduces a retry loop to make the connection more robust.
If the connection still fails after all retries, the service will
intentionally crash via a CHECK, allowing for recovery through a service
restart.
Test: Presubmit
Bug: 438588978
Flag: EXEMPT bugfix
Change-Id: Id3d5d096e90f892e8d806563becf0ead55ac657c
1 file changed