I am looking for a way to kill the foreground Dalvik App(actively running) from the linux kernel(using it's process ID)?
How can I achieve this? any ideas? Does the kernel see the pid of a running App?
How does for eg. process Manager/Task manager in Android achieve this?
Any leads?
Edited:
The problem I'm looking at is a way to kill an App that "behaves differently than intended".
This "different behaviour" is always fixed. Think of it like sending a message to a particular port.
How can I kill an App by staying outside of it and still having permissions to kill it? That is why I was wondering if I have to make this module sit on the framework if not right in the kernel.