Loading
workaccount: Eliminate call to `AccountManager.addAccount`
Intune now sets a policy such that users are not allowed to create work profiles anymore. This is good in principle because users are never supposed to do this manually (and are, in fact, incapable of doing so). Our code is also affected because `WorkAccountService` triggered sign-in flow in `WorkAccountAuthenticator` through `AccountManager.addAccount`, which is the action prohibited by the policy. We can still (and need to) call `AccountManager.addAccountExplicitly` to register the account with the system.