Validates if a device is compromised, checking if it is rooted/jailbroken and doesn't have a pin, pattern, or password set. If the device is compromise a message is shown to the user and the app exits.
The current version of the plugin throws an uncaught NPE on checkDevice().
The first time the app is executed, the checkDevice is called from initialize() but immediately after the onResume() is executed and checkDevice() is called once again and, because the view has been already removed from its parent view, attempting to call remove on it will throw an NPE.