Actually, Samsung and Trustonic have a hardware-protected Trusted User Interface (TUI) that protects against man-in-the-middle attacks [1]. I work at Rivetz and we have developed software that displays in the TUI. Tapster looks like a great solution for automated testing for our environment.
[1] https://www.trustonic.com/news/blog/benefits-trusted-user-in...