Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Due to the Android Wi-Fi Driver issue, I like to disable the Wi-Fi during the boot time. Even if Wi-Fi is enabled in the setting, it should be disabled forcefully. User have to enable it after booting the device. Is there any specific property setting is available? If yes, how to disable during boot time?

share|improve this question

If you've got root access and you're running a custom ROM you should be able to run scripts at boot time. Here is a thread on xda that discusses boot time scripts.

Then you'd just need to figure out the commands to disable wifi. On my Desire HD the wireless interface is called eth0. This command should disable wireless:

ifconfig eth0 down

Whether or not that will disable it permanently i.e. the system won't just do the equivalent of:

ifconfig eth0 up

in the background, I do not know... I'm afraid I don't know much about how the android system handles networking, or at least not enough to help more directly with what to put in the the script!

share|improve this answer
Thanks Ben. I am trying this on a Beagle Board and not on mobile device. – Midson Mar 30 '11 at 13:24
If that's the case you'll have to manually patch the boot.img to either run scripts from a specified folder, or just have the wireless disabled there. The former would obviously allow for greater options. See… for how to unpack and repack the boot.img – Ben Griffiths Mar 30 '11 at 16:20

You can try to automate this with Tasker by setting up a task to disable WiFi during device boot-up:

  1. Tap "New" to create a new profile, and give it a name, e.g. "No WiFi on Boot".
  2. Select the "Event" from the "First Context" pop-up.
  3. Select the "System" category, and then "Device Boot" event.
  4. Tap "New Task" and give it a descriptive name like "WiFi Off" for example.
  5. Tap the "+" button, select the "Net" category, then "WiFi" net action, change the "Set" drop-down to "Off", and tap the "Done" button.
  6. Tap the "Done" button on the "Task Edit / Test" screen.
  7. Ensure the "On" option is enabled (bottom-right of the screen), and tap the "Apply" button.

Tasker is not free, but worth every penny, IMHO.

share|improve this answer

sqlite3 /data/data/ "UPDATE secure
SET name='mobile_data',value='0'
WHERE name='mobile_data'"

You can add this as init.d script, if your ROM supports init.d. Or else you can patch boot.img with autobootimage patcher from xda. The above script is for mobile data: for Wi-Fi, change mobile_data to wifi_on.

share|improve this answer

I found a much easier solution to disabling Wifi on my Android "Jelly Bean" phone - the Google Play Store has an app called "AutomateIt" -configure the app to stop the switching on at boot time. Even has a Pro version you can buy!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.