Keep wifi on during sleep to prevent mobile data usage on Pixel/8.1

  • Thread starter Android Central Question
  • Start date
A

Android Central Question

Device: Google Pixel
Android version 8.1.0

For the past couple of months, after some recent android update, I have not been able to keep my wifi on during sleep mode. The result of this is that my phone is sipping away at my very limited data plan all throughout the day and night.

I have gone through the process of setting the wifi_sleep_policy=2 using the following adb command:

adb shell setting put global wifi_sleep_policy 2

After a reboot, I have confirmed that the wifi_sleep_policy settings remains 2. This seems to be the setting that fixes the issue for most people, but it has not on my device.

I have also enabled the Wifi scanning option in Security-Location-Scanning.

What else do I need to change in order to keep wifi on during sleep?
 

floodwaker

New member
Jun 26, 2018
1
0
0
Visit site
OP here, I agree it is odd! I feel like I am missing something obvious. I have a pretty basic setup and have been through a recent factory reset. The wifi is definitely not on during sleep. When I wake up the phone, I see the wifi icon appear and connect. The issue persists regardless of location and wifi network. I have resorted to disabling mobile data until I need it, but that is pretty inconvenient as my phone doesn't retrieve an emails, etc while it is sleeping.