Home » Technology » How to setup automatic / scheduled reboot in Android phones?

How to setup automatic / scheduled reboot in Android phones?

Script Manager - Script Config

written by Anand July 22, 2011

I rooted my Motorola Droid 2 last year but have since installed custom ROMS, that have taken the capabilities of my phone to a whole new level. But what I am going to talk about today is how to set up automatic scheduled reboot on android phones.

Android experts (which I am not) would argue that android OS does not require reboot and it is capable of handling the resources intelligently. While they may be right, my personal experience is that rebooting clears up the occasional sluggishness of my phone. Then I thought how it would be to wake up everyday and have a phone that had just rebooted and is ready to go. I did some research and accomplished it as described below.

My first possible solution was to try RFRSH for Android. But then I explored more to find a solution that is free. I stumbled up on Script Manager. It is an awesome app that allows you to run custom scripts and schedule them as well. So here it goes:

Note: Your phone should be rooted for this to work.

Search the market and install Script Manager. There is a free version as well as an ad-sponsored version.

Script Manager App

Script Manager App

Save the following codes to a file named "reboot" (or anything you like). You can write it on your phone using Script Manager or any text editor or on your PC and move it to your SD card on the phone.

#!/system/bin/sh
reboot

Then open Script Manager and go to "Advanced Options" and select "Scheduler".

Script Manager Options

Script Manager Options

Schedule the script to run as shown below. Of course, choose the run time that works for you.

Script Manager Scheduler

Script Manager Scheduler

After adding the reboot script, it should appear in the list below (as shown in the picture above). Long-press it and select "Config". Choose "Run as root" and "Is Script", as shown in the picture below. Be careful NOT to select "Run at boot" or your phone will go on a reboot loop.

Script Manager - Script Config

Script Manager - Script Config

Save and exit all the way out. Thats it. Your phone should automatically reboot at the scheduled time. If you like you can add a reboot shortcut to your homescreen using the Script Manager widget.

Another alternative if you do not want to do a full system reboot is to schedule a hot reboot as described in another post. Check it out and enjoy!

Write for Us: Competitive pay. Familiar with Smart Home Automation, Media Streaming, HTPC, and Home Server topics? Tinkerers and hobbyists preferred. Writing experience not required. APPLY HERE.
Did this post help you?
SmartHomeBeginner brings in-depth tutorials easy enough to understand even for beginners. If you are reading this, please consider buying us a coffee (or two) as a token of appreciation.

Related Articles