Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How often does android system scan wifi

Tags:

android

wifi

How often does Android system scan Wi-Fi?

In following 2 cases:

When device is connected to a network

or

When device is not connected to any network. Is it different from android OS version?

Is there any one know about that information?

like image 763
giangqaz Avatar asked Apr 01 '15 03:04

giangqaz


1 Answers

How often does Android system scan Wi-Fi?

It depends on the application implementation and on the Android OS version (so yes is the answer to your second question).

Let's go more in the details:

you can use an instance of WifiManager to start your wifi scan by startScan() method. Thats could allow you to start all the scans you want, draining battery very fast.

Is for this reason that from Android 8.0 (API 26) there are restrictions on scan frequency.

The following limitations apply to the frequency of scans using WifiManager.startScan().

Android 8.0 and Android 8.1:

Each background app can scan one time in a 30-minute period.

Android 9 and later:

Each foreground app can scan four times in a 2-minute period. This allows for a burst of scans in a short time.

All background apps combined can scan one time in a 30-minute period.

REFERENCES:

like image 57
Maicake Avatar answered Oct 11 '22 09:10

Maicake