Loading services/core/java/com/android/server/accounts/AccountManagerService.java +14 −6 Original line number Diff line number Diff line Loading @@ -4616,6 +4616,9 @@ public class AccountManagerService opPackageName, visibleAccountTypes, includeUserManagedNotVisible); } catch (SQLiteException e) { Log.w(TAG, "Could not get accounts for user " + userId, e); return new Account[]{}; } finally { restoreCallingIdentity(identityToken); } Loading Loading @@ -4703,6 +4706,7 @@ public class AccountManagerService public Account[] getSharedAccountsAsUser(int userId) { userId = handleIncomingUser(userId); try { UserAccounts accounts = getUserAccounts(userId); synchronized (accounts.dbLock) { List<Account> accountList = accounts.accountsDb.getSharedAccounts(); Loading @@ -4710,6 +4714,10 @@ public class AccountManagerService accountList.toArray(accountArray); return accountArray; } } catch (SQLiteException e) { Log.w(TAG, "Could not get shared accounts for user " + userId, e); return new Account[]{}; } } @Override Loading Loading
services/core/java/com/android/server/accounts/AccountManagerService.java +14 −6 Original line number Diff line number Diff line Loading @@ -4616,6 +4616,9 @@ public class AccountManagerService opPackageName, visibleAccountTypes, includeUserManagedNotVisible); } catch (SQLiteException e) { Log.w(TAG, "Could not get accounts for user " + userId, e); return new Account[]{}; } finally { restoreCallingIdentity(identityToken); } Loading Loading @@ -4703,6 +4706,7 @@ public class AccountManagerService public Account[] getSharedAccountsAsUser(int userId) { userId = handleIncomingUser(userId); try { UserAccounts accounts = getUserAccounts(userId); synchronized (accounts.dbLock) { List<Account> accountList = accounts.accountsDb.getSharedAccounts(); Loading @@ -4710,6 +4714,10 @@ public class AccountManagerService accountList.toArray(accountArray); return accountArray; } } catch (SQLiteException e) { Log.w(TAG, "Could not get shared accounts for user " + userId, e); return new Account[]{}; } } @Override Loading