I think this is a fool’s errand. Once a device is jailbroken, all bets are off. Unless an environment chooses to provide a clue, an app can’t even know if it’s running on a real device or an emulator.
But then for financial apps, Security testing is necessary and a very important point is that the app shouldn’t run on rooted android and jailbroken iOS devices. Any solution to this?