by Pat Matthews
Check if app has a running process in foreground or background too.
Solved by using a superuser shell command "pidof"
You should edit the flow to add your package name after pidof superuser shell.
Note: Dont forget to connect flows.