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

Commit 235aab5b authored by Daniel's avatar Daniel Committed by Alex Salo
Browse files

Fix race condition of lazy service binding

There is a race condition introduced by service binding and api calls,
checkAttention and onStartProximityUpdates. Fixing the race condition by
introducing a CountDownLatch that gets counted down on service binding
and reinitialized on service unbinding.

Bug: 219525510
Test: atest CtsAttentionServiceDeviceTestCases
Commented out and tested individual test at a time. Previous tests that
failed individually such as CheckAttentionSuccess or
ProximityUpdatesSuccess pass.

Change-Id: I168b325c65e8d82767f278c65d62268afa4060a1
(cherry picked from commit f6d7d7a7)
parent 5bb3da07
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