commit | a3721e1cc855436c6048ca58134997bfce12ad1a | [log] [tgz] |
---|---|---|
author | Carlos Valdivia <carlosvaldivia@google.com> | Mon Aug 10 18:40:06 2015 -0700 |
committer | Carlos Valdivia <carlosvaldivia@google.com> | Tue Aug 11 15:12:22 2015 -0700 |
tree | ffff91681e93b390e4ea77fdefc733737a21ca3b | |
parent | 7d85b5435d01f8d4856a718d655e30fb5a703560 [diff] |
Fix deadlock. AccountManagerService can't ever synchronize on mUsers within a block of code locked by UserAccounts.cacheLock. That will lead to deadlocks. This change fixes a case where we were doing that in getAccountsInternal(). Also I have purgeOldGrantsAll() run off the the main thread. Bug: 23036400 Change-Id: I8634691ca54c57a6e83633baba549226fdcd1064