The problem is that AquaMail's useragent includes "Chrome". Even when you tap manual and type another User Agent, it only extends the current UserAgent, instead of replacing it, therefore still gets matched as a WIA capable device.
The login "window" is an Android WebView which is basically Chrome and it has its own user agent.
The "user agent" setting that you're referring to is used when sending EWS commands (over http) and is not used here.
Our corporate ADFS system matches the following User Agent strings:
... and was not allowing logins from Chrome -> was working "as intended" 🙂