Loading services/core/java/com/android/server/accounts/AccountManagerService.java +17 −15 Original line number Diff line number Diff line Loading @@ -5912,6 +5912,7 @@ public class AccountManagerService } private boolean canUserModifyAccountsForType(int userId, String accountType, int callingUid) { return Binder.withCleanCallingIdentity(() -> { // the managing app can always modify accounts if (isProfileOwner(callingUid)) { return true; Loading @@ -5928,6 +5929,7 @@ public class AccountManagerService } } return true; }); } private boolean isProfileOwner(int uid) { Loading Loading
services/core/java/com/android/server/accounts/AccountManagerService.java +17 −15 Original line number Diff line number Diff line Loading @@ -5912,6 +5912,7 @@ public class AccountManagerService } private boolean canUserModifyAccountsForType(int userId, String accountType, int callingUid) { return Binder.withCleanCallingIdentity(() -> { // the managing app can always modify accounts if (isProfileOwner(callingUid)) { return true; Loading @@ -5928,6 +5929,7 @@ public class AccountManagerService } } return true; }); } private boolean isProfileOwner(int uid) { Loading