0

Starting with Android Pie, wifi scans are heavily throttled: the limit is up to four times every 2 minutes for a foreground app, and once every 30 minutes for all background apps combined. This has massive impact on apps that rely on WiFi for geolocation, mapping or other purposes (see e.g. this issue).

Does anyone happen to know if LineageOS (and its derivative LineageOS for microG) introduce any changes that relax these limits? (Especially since microG comes with location providers which utilize wifi.) Or do they simply copy that behavior?

  • Note that the used method for Wifi scanning WifiManager.startScan() has been marked deprecated. It will be removed in a future Android version. This means that may be starting with Android 10 (or 11) Wifi scanning is longer available to apps. – Robert Apr 2 at 18:27
  • I’m aware of that, also of the discussion surrounding it. Is there any other way for an app to find out which wifi networks are available nearby, with a frequency in the range of a few seconds? (How does Google solve it for their own network location service?) Though I realize that is probably a separate question… – user149408 Apr 3 at 22:40
  • According to an XDA article the next Android version (Q) will allow to disable throtteling via adb command: xda-developers.com/… – Robert May 28 at 18:25
  • Yep, I saw that already. However, according to Google (and unlike what is stated in the article), this requires a rooted device (source: issuetracker.google.com/issues/129900566#comment11). It may not work for others, but at least LineageOS provides a root add-on, thus any LineageOS user should be able to relax these limits. Still this is a setting which needs to be made per device. – user149408 May 29 at 13:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.