commit | 7ceb724d0f792897e66fca8566fcabca969c5b57 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Fri Aug 16 13:20:57 2019 -0700 |
committer | Yifan Hong <elsk@google.com> | Fri Aug 16 13:40:43 2019 -0700 |
tree | 9a7804cbc23e9a90cb6c144761331af99e06e12b | |
parent | ce98a32755d817a0163bdff2fea5a1f6245f5c80 [diff] |
BatteryService: scheduleUpdate asynchronously IBatteryPropertiesRegistrar.scheduleUpdate calls IHealth.update() asynchronously. BatteryStatsImpl calls scheduleUpdate while holding a lock, which may lead to deadlocks if the remote process calls back to the framework. Fixes: 139503418 Test: monitor HealthScheduleUpdate trace points Change-Id: I8168d7c4e4a0b1d31343360d2c7f6d36c7aa692a