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

Commit 8ab374db authored by Rocky Fang's avatar Rocky Fang
Browse files

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
parent f5af722b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment