AgentM "Improving your user experience" 🙄
The commit message provides a lot more detail:
Add stub for RoleManager.getRoleHolders
GmsCore 26.40 queries holders of android.app.role.SUPERVISION when it builds a GetToken request. Once the server-side flags that enable this check are on, it no longer catches the SecurityException that getRoleHolders() throws without MANAGE_ROLE_HOLDERS or GET_ROLE_HOLDERS.
As a result, every network token fetch fails as soon as the cached intermediate tokens expire. Google apps then report that there is no internet connection, and the accountstate GcmTaskChimeraService crashes GmsCore.
Which has me looking like Dr. Evil in that "riight.." scene.
But anyway, something to do with Google Play Services playing nicely within it's sandbox, I guess? 🤓