Page 1 of 1

Problem with killing app in Bluestack

Posted: 03 Nov 2019 23:06
by sandbo
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.

Re: Problem with killing app in Bluestack

Posted: 05 Nov 2019 17:47
by Desmanto
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.

Re: Problem with killing app in Bluestack

Posted: 05 Nov 2019 18:32
by sandbo
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!