How do I force quit an app while it is on the foreground? I have a malfunctioning security app. It's benign, but it has enabled its proactive security mode when I removed it from the device administrators. This is good, and what that means is that it put the phone in sleep mode and overrid the lock screen to require my password. This what it's supposed to do, but it doesn't accept my password.

Here's the situation:


I removed the app from device administrators.
It put the phone in sleep mode and changed the lock screen.
It disabled the menu buttons.
I cannot exit the screen without entering my password, which it does not accept.


So my plan is to force stop the app, like you can do in iOS. For obvious reasons, I cannot enter the settings app and force quit the app conventionally.
If your USB Debugging is enabled, the you can force close an app using ADB.

adb shell am force-stop com.my.app.package


This command will force close the application.
But you need to know the specific package name. If you are not sure about the package name please google for Application's apk file, u can easily find package name there.
In case you are not familiar with ADB at all please use installer described here