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

Commit 2a383b6e authored by Atneya Nair's avatar Atneya Nair
Browse files

[hotword] Fix async updateServiceIdentity

The callback used to updated the HDS identity is oneway, which means it
doesn't execute sync with respect to the other connection startup tasks,
and the service can be marked as ready before the identity is updated.

This can lead to some races with permission checks for HDS. Switch the
binder callback to non-oneway, and enqueue all the tasks on a dedicated
handler thread to avoid clogging the main thread.

Test: manual assistant enable/disable and functionality
Test: atest AlwaysOnHotwordDetectorTest
Bug: 384399959
Flag: EXEMPT bugfix
Change-Id: Ib527e28a1b0a0b2f7521a7ef505705db547eca9c
parent c82f67a6
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