kill app doesnt work but force stop does

212 views
Skip to first unread message

Matt R

unread,
Apr 1, 2013, 2:28:00 PM4/1/13
to tas...@googlegroups.com
Probably because they use different methods. Try the kill app plugin (search on this forum to find the exact name of it). I don't use it myself out I've heard others have had success with it.

Matt

J.

unread,
Apr 1, 2013, 3:38:23 PM4/1/13
to tas...@googlegroups.com
'Task Kill' plugin for Locale/Tasker in the Play store!

PC

unread,
May 6, 2013, 11:02:12 PM5/6/13
to tas...@googlegroups.com
I was having this problem with Songza, and with this plug-in, was able to actually close it without it restarting itself.

Here's a +1 for this plug-in! :)

Bhavin Matreja

unread,
Jul 23, 2014, 8:09:57 AM7/23/14
to tas...@googlegroups.com
You can just run a shell command for this.

Run Shell
Command: am force-stop <Package Name> Use Root: Yes
i.e. am force-stop com.google.android.music



Jeremy Harris

unread,
Jul 23, 2014, 3:48:51 PM7/23/14
to tas...@googlegroups.com
+1

I prefer to use the script because even the Task Kill pluggin won't kill certain apps, like Google apps... I use the task below to kill anything... is triggered by a variety of profiles...shake/proximity/AutoVoice... Works 100% but does require root, and also one needs to change the If statement to match their own launcher.

Kill Current App (77)
A1: Run Shell [ Command:dumpsys window windows | grep -E 'mCurrentFocus' Timeout (Seconds):0 Use Root:On Store Output In:%RawDump Store Errors In: Store Result In: Continue Task After Error:On ]
A2: Variable Search Replace [ Variable:%RawDump Search:\S+\. Ignore Case:Off Multi-Line:Off One Match Only:Off Store Matches In:%RawDump Replace Matches:Off Replace With: ]
A3: Variable Split [ Name:%RawDump1 Splitter:/ Delete Base:Off ]
A4: Variable Set [ Name:%CURRENTAPP To:%RawDump11 Do Maths:Off Append:Off ]
A5: If [ %CURRENTAPP !~ com.sec.android.app.launcher ]
A6: If [ %CURRENTAPP !~ com.teslacoilsw.launcher ]
A7: Run Shell [ Command:am force-stop %CURRENTAPP Timeout (Seconds):0 Use Root:On Store Output In: Store Errors In: Store Result In: Continue Task After Error:On ]
A8: Flash [ Text:%CURRENTAPP killed Long:Off ]
A9: End If
A10: End If
A11: Stop [ With Error:Off Task: ]

Reply all
Reply to author
Forward
0 new messages