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

Commit 83f45af9 authored by Alice Wang's avatar Alice Wang
Browse files

keymint-in-vm: Rely on libbinder's new connection retry logic

Previously, a transient connection error when establishing the
accessor service would immediately fail in `libbinder`. This would
require higher-level clients, like KeyMint, to implement their own
retry mechanisms to be robust.

As `libbinder` now handles these accessor connection errors by
retrying internally, this cl leverages that new functionality by
switching from `get_interface` to `wait_for_interface`. This allows
KeyMint HAL to delegate the responsibility of retrying to the
underlying library, simplifying the client code and removing the
need for a custom, high-level retry loop.

Bug: 432582317
Test: Launch Trusty on qemu with Security VM

Change-Id: I5f8f724ed15238c2f8bff5d848719710206b1dec
parent 9d0b350b
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