Full solution to kill process (with Services too! Full FORCE STOP!) with back button like back on cyanogenMod days, Works on automate and APK Module so you don't have to give your automate root access.
- Load .flo in automate
- Give permissions
- Start Flow
- In automate settings enable "Run on system startup"
- Set automate as voice assistant
- Bind "Long press back button" to Search Assistant (NOT VOICE SEARCH!)
- Install APK file (You can compile it yourself!)
- Give APK root access. (So only protected one-liner has root access, not entire automate which COULD be exploited.)
Why this instead of built in back button solution?
FORCE STOP VS KILL APP DIFFERENCE!
Force stop disables services too!
And App remains in recents history so you can use:
- Long press back
- Double tap recents
- And you made a full reboot of an app! With services too (which built-in lineageos module DOESN'T DO!)
Another use case: Long press back when someone calls at whatsapp/telegram/signal, and they will not see you online, rather "no signal" cutoff. With extra benefit of silence untill you open it manually.