commit | 6d2e37562f38d69ac78e5a0ab21565e7e90c474a | [log] [tgz] |
---|---|---|
author | Brian Duddie <bduddie@google.com> | Thu May 30 09:52:28 2019 -0700 |
committer | Brian Duddie <bduddie@google.com> | Thu May 30 14:52:58 2019 -0700 |
tree | 3694acbaa20598dfae793aca4a565f45f9f94a93 | |
parent | 8e6f31c1a712dac6303052f1ead05a38ac1666c2 [diff] |
Avoid deadlock if HAL dies at init The SensorDevice constructor is invoked with the Singleton lock held, so ensure we won't attempt to call getInstance() from this context via handleHidlDeath(). Bug: 133445520 Test: use custom HAL that crashes at first getSensorList query, verify framework does not deadlock Change-Id: Ia0903412cdb30474c962687bc95b8df6bf2df25e