Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5934dbc9 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

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
parent c70c723c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -863,6 +863,7 @@ public class AccountManagerService
                        "User cannot modify accounts");
            } catch (RemoteException re) {
            }
            return;
        }

        long identityToken = clearCallingIdentity();