If you are a fan of the popular game "Clash of Clans," you have probably been on marathon raids where you try to raid as much gold and elixir as you possibly can. Every five minutes you tirelessly press the "reload game" button so that you don't get raided. Then you have to go somewhere for just a few minutes and when you come back to your game you find that "you have have been disconnected due to inactivity" and you have just been raided. All of the gold and elixir you have been raiding for the past hour or two is now gone.
If only there was a way "Clash of Clans" would never log you out for inactivity... There is! And it is awesome!
One way you could keep Clash of Clans from logging out is by hiring a monkey to press the screen every minute or so. Not very practical. OR, you could build a machine that does that very thing. That would be cool, but again, not too practical. Another option would be to have an app that keeps the game alive for you. Now we are talking.
Currently, there are a handful of apps that act as a shield for your game and keeps your game alive so that you do not get raided. Just to name a few; "Shield for CoC," "TH Shield - COC Tool," and "Clan Guard." These apps all work in a similar manner, you push a button and it continuously opens the game "Clash of Clans" for you.
While all these apps work, they have some drawbacks. For one, in order to use them, you must go to the app, then turn it on; after you are done playing, you have to return to the app and turn it off. Not a huge deal; perhaps a slight annoyance. Another drawback is that you cannot use other apps on your phone when this is activated; each time you open another app, "Clash of Clans" comes back on the screen disrupting whatever it was you were doing.
Today I have been testing an app that I think works better than all the other apps.
It is called Llama.
We will set Llama so that each time "Clash of Clans" is open, it will continue to reopen the "Clash of Clans" app every four minutes. Because the app is already open, the screen will not change and the inactivity clock resets on the game so you will never get logged out for being inactive. You can leave the game on your desk all day, never touching it, without getting raided.
After you have downloaded Llama, you need to open the app and go to the "events" tab. Click on the "+" icon to add a new event.
Give your event a name. I named mine "Clash of Clans." Press OK.
Press the "Add Condition" button. Conditions are what Llama will be looking for to be true before applying an event action.
Scroll until you see the "Active application" condition and click on it.
Here you have two options. If you want "Clash of Clans" to only stay on when you have the app up and running, select "App started or in foreground." If you want "Clash of Clans" to continually open even if you are trying to run another app, then select "App stopped or in background."
I personally prefer "App started or in foreground."
After you select this, you can press the "Choose an app" button.
Scroll until you find "Clash of Clans" and select it.
Step 8 (optional)
Add another condition (see Step 3). Scroll until you see "Charging or Unplugged" and select it.
Step 9 (optional)
Select "Charging from any source."
What is going on here:
I am adding this condition so that the permanent shield hack will stay on only when I am playing Clash of Clans, and only when I am charging my phone. If you opt out of steps 8 and 9, it will still work, but it will drain your battery rapidly. I have noticed that when I charge from USB doing this, the battery still drains, just at a slower rate then running simply off battery. I suggest that you always use this hack when you are charging from AC (in fact, you may even wish to choose the "Charging from AC" option).
Press the "Add Action" button.
Scroll until you find the "Run Application" button, then press it.
Scroll until you find "Clash of Clans" option then select it.
Press the "Advanced..." option.
Scroll down until you see the "Repeat event" option and make sure it is checked. Now press the "Repeat interval" option.
Select 1,2,3,4, or 5. It does not matter what you select as long as it is 5 minutes or below.
"Clash of Clans" logs you out due to inactivity every five minutes. What we are doing now is reopening up the game every [whatever you selected] minutes. Whenever the game is reopened, the inactivity timer is reset.
In my first experiment I selected 5 minutes. It worked but I saw that the inactivity window came up right before the game restarted. Anything less than 5 minutes, the game does not actually restart (though you might notice a flicker on the screen when the game "opens" up again even though it is already open). For this reason I think 4 minutes is best.
Press the "back" button on your phone a time or two. This will save the changes you have made. When you go back to the Llama home screen it will say "You have edited a repeated event. Do you want to check if its conditions are valid so that it can start repeating?"
You can select either yes or no. (Not all conditions will be correct because "Clash of Clans" is not active on the screen.)
When you look at your events now, you should notice that the conditions are written in red or green text. The red text means that the condition is not being met, green means that the condition is being met. If you look at the screenshot below, you can see that my phone is charging (green text).
You are done! You can now open "Clash of Clans" and as long as you have it charging (if you selected that option) and have the game open, you will never be logged out due to inactivity.