Skip to content

Commit 5c6756f

Browse files
committed
Revert "Protect LOGIN_ACCOUNTS_CHANGED receiver in SyncManager"
This reverts commit cf2bd348e73e880fe5bfc7a025732d4ec606ff1f. Reverted because for account removal the AccountManagerService delegates the sending of LOGIN_ACCOUNTS_CHANGED to the authenticator. See b/17511110. Change-Id: Ic03016af98070b4add5f7a5ec1fdff32ba63298e
1 parent d594197 commit 5c6756f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

services/core/java/com/android/server/content/SyncManager.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.android.server.content;
1818

19-
import android.Manifest;
2019
import android.accounts.Account;
2120
import android.accounts.AccountAndUser;
2221
import android.accounts.AccountManager;
@@ -481,7 +480,7 @@ public void onStatusChanged(int which) {
481480
mContext.registerReceiverAsUser(mAccountsUpdatedReceiver,
482481
UserHandle.ALL,
483482
new IntentFilter(AccountManager.LOGIN_ACCOUNTS_CHANGED_ACTION),
484-
Manifest.permission.ACCOUNT_MANAGER, null);
483+
null, null);
485484
}
486485

487486
// Pick a random second in a day to seed all periodic syncs

0 commit comments

Comments
 (0)