commit | 9c946cfc144f1b7a2f476376b8c2f98a7a05bfe5 | [log] [tgz] |
---|---|---|
author | Amit Mahajan <amitmahajan@google.com> | Thu Jun 17 11:46:22 2021 -0700 |
committer | Amit Mahajan <amitmahajan@google.com> | Thu Jun 17 19:33:22 2021 +0000 |
tree | 6fd438d8b3a8a0bfa6856bfe87f8f66e8cbd636d | |
parent | 7f98e18768911a4d3179cb6a1b054dac0b4f65d5 [diff] |
Handle bindService() response on a new thread. Earlier it was being handled on the default thread which is the main thread. That was causing a deadlock as main thread was waiting for another lock that was held by the delete() method (all main methods in TelephonyProvider are synchronized). Test: manually verified logs and the failing scenario Test: atest TelephonyProviderTest Bug: 160421742 Change-Id: Iaa8d92b9167b24340c79e82a268ad3819f4b76df