How to Turn on Wi-Fi Automatically on Android (Pixel, Samsung, Xiaomi & No-Root Automation)

Add Quickfever on Google: Preferred Source Google Discover

Wi-Fi is everywhere and helps save mobile data on Android device. For example, Google Play store has this option to automatically update apps when connected to a Wi-Fi network, same as that WhatsApp automatically saves videos (perhaps you can control them). So it happens that you shift between some places, such as from home to office, cafe, friends home than home. Chances are you have a strong Wi-Fi network at your Home, so you’d probably want your phone to automatically connect to your Wi-Fi network as soon as you come home.

The new Android Oreo is frankly new, and only some of the Google devices are currently officially supported. But we have seen unofficial Android Oreo ports for popular devices. In the AOSP source code in Android Oreo, there are these lines that enable the option that reads “Turn on Wifi automatically”.

Back in Android 8 Oreo, “Turn on Wi-Fi automatically” was hidden on many devices and required ADB commands from a PC. On modern Android (Android 14, 15, 16, and 17), the feature is built right into system settings – though each manufacturer puts it in a different menu, and stricter Android permissions have changed how third-party automation apps like Tasker and MacroDroid toggle Wi-Fi.

Advertisement

Below is the complete guide to enabling automatic Wi-Fi on Pixel, Samsung, and Xiaomi, fixing Wi-Fi when it turns on (or drops) by itself, and automating custom Wi-Fi rules without root.

Required Step: Install ADB and Fastboot drivers on your computer

Enable USB debugging on your phone

Now connect your phone to computer via a USB cable. Open the ADB & Fastboot folder, press and hold the Shift key and then right-click and select “open command prompt from here” this will open the command prompt from the folder location. Alternatively, you can open a Command prompt and use the “cd /” command to set the directory, and it should be the ADB & fastboot driver folder.

Now you can type the following command to determine if your phone is connected to your PC and is recognized.

Adb devices

If you see a device name, well done go ahead and type the following command. Type the first command to make the option available in your Oreo than the second one to make it visible in Wifi settings.

adb shell
settings put global wifi_wakeup_available 1
settings put global wifi_wakeup_enabled 1

Now check under Wifi — Wi-Fi preference, you see a new option to turn on WiFi automatically.

To disable the option again.

adb shell
settings put global wifi_wakeup_available 0
settings put global wifi_wakeup_enabled 0

—


Enable “Turn on Wi-Fi Automatically” (Built-In Methods for various devices)

Google Pixel & Stock Android

If you want to do this in a Google Pixel or any phone that runs on stock Android follow these steps.

  1. Open Settings.
  2. Now go to Network & internet > Internet.
  3. Look for Network preferences.
  4. Set Turn on Wi-Fi automatically to ON.

Note: Even if you manually switch Wi-Fi off when leaving the house, your phone keeps low-power background Wi-Fi scanning active so it knows when you return to a trusted saved network.

Samsung Galaxy (One UI)

Samsung gives you two native ways to automate Wi-Fi – an adaptive AI toggle and custom location/time rules:

Option A: Intelligent Wi-Fi (Automatic based on usage)

  1. Open Settings > Connections > Wi-Fi.
  2. Tap the three-dot menu in the top-right corner and select Intelligent Wi-Fi.
  3. Toggle Turn Wi-Fi on/off automatically (or Turn Wi-Fi on automatically) to ON.

Option B: Modes and Routines (Exact location, time, or app triggers)

  1. Go to Settings > Modes and Routines.
  2. Switch to the Routines tab and tap + to create a new routine.
  3. Under If, choose a trigger such as Place (Home/Office), Time period, or App opened.
  4. Under Then, select Connections > Wi-Fi > On, then save.

Tip: Modes and Routines is usually more predictable than Intelligent Wi-Fi if your phone turns Wi-Fi on at places you do not want.

Xiaomi, Redmi & POCO (HyperOS / MIUI)

  1. Open Settings > Wi-Fi.
  2. Tap Additional settings (or Wi-Fi assistant depending on your HyperOS build).
  3. Enable Turn on WLAN automatically or smart network switching options if present.
    (Note: Some regional HyperOS builds hide the manual toggle and rely on system location triggers instead – if it is missing on your unit, jump to the MacroDroid/Shizuku section below.)

3. Automation: Tasker & MacroDroid with Shizuku

If you want custom rules – like “Turn Wi-Fi on when connected to home Bluetooth, and turn Hotspot on in the car” – you will quickly hit a modern Android wall. Starting around Android 15 and continuing through Android 16 and 17, Google restricted third-party apps from silently toggling Wi-Fi or reading configured networks directly. Even Tasker Settings recently hit fresh restrictions after Android Wi-Fi Mainline module updates (such as getConfiguredNetworks blocks in module update 373041260).

You do not need root to restore automation, though – Shizuku bridges the gap using Wireless Debugging.

Step A: Set Up Shizuku (No Root Required)

  1. Install Shizuku (setup guide: https://shizuku.rikka.app/guide/setup/) – or look into community forks like shizuku-next if you want reboot auto-start options.
  2. Open Settings > About phone and tap Build number 7 times to enable Developer options.
  3. Open Developer options and turn on Wireless debugging.
  4. Open Shizuku > Pairing > Developer options > Wireless debugging > Pair device with pairing code, and enter the 6-digit code in the Shizuku notification.
  5. Return to Shizuku and tap Start.

Step B: Automate Wi-Fi with Tasker + Tasker Settings

  1. Make sure you are running Tasker 6.6.11+ (which supports Shizuku integration for restricted toggles like Wi-Fi tethering/hotspot on Android 16+).
  2. Install Tasker Settings v2.0.0+ from GitHub (https://github.com/joaomgcd/TaskerSettings/releases) – note that older Android target-SDK blocks require installing via ADB with --bypass-low-target-sdk-block or Tasker’s guided install prompt (more details: https://shizustore.com/apps/tasker-settings).
  3. Grant Tasker access inside the Shizuku app under Authorized applications.
  4. Create a Tasker Profile (e.g., State > Net > Cell Near or Location) and link a Task using Net > WiFi > Set: On.

Step C: MacroDroid & Quick Settings UI Fallback (Works Even Without Tasker Settings)

If a newer Google Play System / Wi-Fi Mainline update temporarily breaks direct API toggles on your ROM:

  1. Use MacroDroid (simpler UI than Tasker) with a trigger like Location, Cell Tower, or Power Connected.
  2. Grant Accessibility permission to MacroDroid (or AutoInput in Tasker).
  3. Use a UI Interaction macro that wakes/unlocks or pulls down Quick Settings and taps the Internet / Wi-Fi tile automatically when triggered. It is slightly slower than a background API call, but immune to Google’s background Wi-Fi toggle restrictions.

Add a Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Google lets you pick your sources now

If this helped, add quickfever.com to your preferred sources. Our articles will show up higher when you search about tech. One click. Free. And it helps us more than you think.

Add to my Google sources