OSDN Git Service

[Fix extra data in cache]
authorSimranjit Singh Kohli <simranjit@google.com>
Fri, 7 Aug 2015 20:34:09 +0000 (13:34 -0700)
committerSimranjit Singh Kohli <simranjit@google.com>
Thu, 18 Feb 2016 03:08:25 +0000 (19:08 -0800)
commita666d74d4bc7e1298314c516d1309571fb87c212
tree9be359727ee506847607d8717b1e607f1cb3d46c
parentf0c5b7af6f062e6e064af22ee58e9eb6b549a6ce
[Fix extra data in cache]

It seems that some account authenticators call getData before account
is added, which initializes the cache for that account.
1. We now don't initialize the cache if the account is not on the device.
2. We now use locking.

Bug: 23018710
Bug: 20071745
Change-Id: Ie59ca6b4e575f524a9d3bf286c3bd95abce4a596
services/core/java/com/android/server/accounts/AccountManagerService.java