Problem with killing app in Bluestack

Post your questions and help other users.

Moderator: Martin

Post Reply
sandbo
Posts: 4
Joined: 03 Nov 2019 08:41

Problem with killing app in Bluestack

Post by sandbo » 03 Nov 2019 23:06

Hi,

I am doing some game coin farming on Bluestack, after evaluating multiple automation software like Tasker, I found Automagic to have the best interface in terms of control (imho).
However, I did encounter a problem when I was trying to restart an app on a regular interval by executing a kill followed by a launch.

If I stay in the game, when the interval is met and Automagic tries to kill the game, the game very briefly pause for 0.2 second but then simply continue. However, if I move to the Automagic interface, when the interval is met the game is indeed killed (which I can check by then switching to the game and saw it has restarted). Later on I found that if, instead of using "kill app", I use "kill app process" with root then it does work even with I stay in the game.

While overall it works out, I guess it maybe useful to investigate which part may have prevented Automagic from working properly with the normal "kill app" action.
Kindly let me know if any info will be helpful.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Problem with killing app in Bluestack

Post by Desmanto » 05 Nov 2019 17:47

Without root, kill app only works when the app you wanna kill is being background. This is android protection, so you can't simply just kill a foreground app (the game is currently active). To kill the game when the time come, you can simply issue show home screen, which makes the game become background and kill it. So just an additional show homescreen before kill app.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

sandbo
Posts: 4
Joined: 03 Nov 2019 08:41

Re: Problem with killing app in Bluestack

Post by sandbo » 05 Nov 2019 18:32

Desmanto wrote:
05 Nov 2019 17:47
Without root, kill app only works when the app you wanna kill is being background. This is android protection, so you can't simply just kill a foreground app (the game is currently active). To kill the game when the time come, you can simply issue show home screen, which makes the game become background and kill it. So just an additional show homescreen before kill app.
I see, this makes a lot of sense and I think it is very easy to implement.
Thanks a lot for the help!

Post Reply