Uh, if `WindowManager` isn't there then nothing could work correctly on the phone..
`var currentApp = WindowManager.getDisplayedApp()`; should be enough.