diff options
| author | 2025-03-03 20:18:10 -0800 | |
|---|---|---|
| committer | 2025-03-05 10:52:05 -0800 | |
| commit | 2a383b6e9ebe9e416a6991efb464bb95e15b8835 (patch) | |
| tree | 14a6e399b28241715caba7798f09fef3b7915f55 /libs/androidfw/StringPool.cpp | |
| parent | c82f67a637f0c9d230c9839619f00a112fe018f3 (diff) | |
[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
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions