OSDN Git Service

[Fix Potential for error]:
authorSimranjit Singh Kohli <simranjit@google.com>
Tue, 19 May 2015 17:58:01 +0000 (10:58 -0700)
committerSimranjit Singh Kohli <simranjit@google.com>
Wed, 20 May 2015 00:38:10 +0000 (17:38 -0700)
commit6a184878f801f8511f25515eda482e8905495f17
tree89862bc6fd8013d31cc8e25f1dbfcf8ef759fda0
parent00d1fcf7372155510930a2ea759d08bf8db93b61
[Fix Potential for error]:

Init for accounts maybe called when non-system app asks for accounts.
That might lead to deletion of accounts and broadcast from the user,
which requires permission. Hence, we should clear calling identity
before requesting it.

Bug: 21140169

Change-Id: I057ac6778ea53d3f96b3e5c42fe3a2fe60c3cf28
services/core/java/com/android/server/accounts/AccountManagerService.java