Kill app on touch

Hi Frank, is there a trick to kill an app on a touch.

I like to have a touch event start an app and Killing an other.

Thanks!

Android doesnt allow an app to kill another unless its run by the same user (which means is actually the same app in most cases), this was possible in the past but removed in recent android versions. Root access would allow this but this is not available in Kustom, if you have it you can use $sh()$ command and "su - kill XX" to kill a pid through a touch action if you want.

Thanks Frank,

It's rooted so I'm going to give it a try.

Regard

Hi Frank,

it's a bit more difficult for me. Can you give me an example of this Shell command and where to enter it ?

Thanks and regards,

Rolof

Hi, I'm very interested in the subject, but I do not understand how to do it.
How can I nest the pid of the process I want to finish inside the kill?
I would greatly appreciate an example.
a greeting