Abort removing account if prohibited by policy

Bug: 13077993

If an EDU device was marked as prohibited from adding/removing accounts, it was throwing
an error but still continuing to remove the account. This fixes the problem by aborting
the removeAccount steps.

Change-Id: Ie7f157c5397a7391aab6f37c8a4331479f1b451b
This commit is contained in:
Amith Yamasani
2014-02-20 15:23:36 -08:00
parent c70c723cf8
commit 5934dbc9f1

View File

@@ -863,6 +863,7 @@ public class AccountManagerService
"User cannot modify accounts");
} catch (RemoteException re) {
}
return;
}
long identityToken = clearCallingIdentity();