I don’t quite get what you want to achieve. On Android Apps might run Tasks or be active in the background. But on Linux programs usually dont have a background task, if you close them they are gone. (Unless they “minimize to taskbar”)
Then, when I kill the process, have it automatically lose all privileges and become “frozen”.
So, when you kill the process it’s gone. Removing permission won’t change anything for not running programms.
Maybe you can explain a bit more?
Sounds like a temporary problem.