It's a server check that Google offers to any developer to see if you're using the genuine version of their apps.
Of course the modded version couldn't be the same as of vanilla and the server check failed, giving a crash or error.
That's the reason why Dokkan and Legends are more laggy now.
It's like a "Denuvo" for Android, so shitty problem.