Loading services/core/java/com/android/server/accounts/AccountManagerService.java +5 −4 Original line number Diff line number Diff line Loading @@ -2118,13 +2118,14 @@ public class AccountManagerService userId)); } /* * Only the system or authenticator should be allowed to remove accounts for that * authenticator. This will let users remove accounts (via Settings in the system) but not * arbitrary applications (like competing authenticators). * Only the system, authenticator or profile owner should be allowed to remove accounts for * that authenticator. This will let users remove accounts (via Settings in the system) but * not arbitrary applications (like competing authenticators). */ UserHandle user = UserHandle.of(userId); if (!isAccountManagedByCaller(account.type, callingUid, user.getIdentifier()) && !isSystemUid(callingUid)) { && !isSystemUid(callingUid) && !isProfileOwner(callingUid)) { String msg = String.format( "uid %s cannot remove accounts of type: %s", callingUid, Loading Loading
services/core/java/com/android/server/accounts/AccountManagerService.java +5 −4 Original line number Diff line number Diff line Loading @@ -2118,13 +2118,14 @@ public class AccountManagerService userId)); } /* * Only the system or authenticator should be allowed to remove accounts for that * authenticator. This will let users remove accounts (via Settings in the system) but not * arbitrary applications (like competing authenticators). * Only the system, authenticator or profile owner should be allowed to remove accounts for * that authenticator. This will let users remove accounts (via Settings in the system) but * not arbitrary applications (like competing authenticators). */ UserHandle user = UserHandle.of(userId); if (!isAccountManagedByCaller(account.type, callingUid, user.getIdentifier()) && !isSystemUid(callingUid)) { && !isSystemUid(callingUid) && !isProfileOwner(callingUid)) { String msg = String.format( "uid %s cannot remove accounts of type: %s", callingUid, Loading