Loading services/core/java/com/android/server/accounts/AccountManagerService.java +3 −0 Original line number Diff line number Diff line Loading @@ -3144,6 +3144,9 @@ public class AccountManagerService DevicePolicyManager dpm = (DevicePolicyManager) mContext .getSystemService(Context.DEVICE_POLICY_SERVICE); String[] typesArray = dpm.getAccountTypesWithManagementDisabledAsUser(userId); if (typesArray == null) { return true; } for (String forbiddenType : typesArray) { if (forbiddenType.equals(accountType)) { return false; Loading Loading
services/core/java/com/android/server/accounts/AccountManagerService.java +3 −0 Original line number Diff line number Diff line Loading @@ -3144,6 +3144,9 @@ public class AccountManagerService DevicePolicyManager dpm = (DevicePolicyManager) mContext .getSystemService(Context.DEVICE_POLICY_SERVICE); String[] typesArray = dpm.getAccountTypesWithManagementDisabledAsUser(userId); if (typesArray == null) { return true; } for (String forbiddenType : typesArray) { if (forbiddenType.equals(accountType)) { return false; Loading