Repository: VREMSoftwareDevelopment/WiFiAnalyzer

Issue #269: Scanning WIFI takes too long during cold start (Android 9)
Created: 2019-12-04T05:46:58Z
How to report a bug
Please search issues (open and closed) to see the issues has already been reported.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Note
Some behaviour only occurs on certain devices or versions of Android, please provide the following screenshots/information Device/Android OS (Settings → About Phone) and WiFi Analyzer version (Menu -> About)
Additional context
Add any other context about the problem here.
Provide Device/Android OS information
Phone Model: Honor V9
APP Version：2.1.1

Duplicate issue #278: Android 9+ WiFi scan throttling
Created: 2020-01-18T18:58:29Z
Describe the bug
When scanning, the signal does not change. I go around the house in different rooms the signal is the same. signal level does not change. I wait a long time but the signal does not change.
To Reproduce
Steps to reproduce the behavior:

turn on wi-fi
turn on geolocation
I launch the program
I go to different rooms
I wait a long time
No signal changes (but in the status bar I see that the signal is changing)

Provide Device/Android OS information
WiFiAnalyzer ver: 2.1.1 (51)
Smartphone: Xiaomi Redmi Note 7
firmware: HavocOS 2.9 (Android 9) (my first phone)
firmware: MIUI 10 (Android 9)  (second phone brother)
On another phone, the same version also works fine and shows incorrect data. on 9 android does not work.
there is a suspicion that there is a lack of necessary google services. tell us what services are needed for normal operation. tell me whether the program depends on google services?

******* log:
01-18 21:09:40.464: I/ActivityManager(1265):  Start proc 5756:com.vrem.wifianalyzer/u0a296 for activity com.vrem.wifianalyzer/.SplashActivity
01-18 21:09:40.464: W/ActivityManager(1265):  Slow operation: 182ms so far, now at startProcess: starting to update pids map
01-18 21:09:40.464: W/ActivityManager(1265):  Slow operation: 182ms so far, now at startProcess: done updating pids map
01-18 21:09:40.440: I/chatty  (818):  uid=1000(system) /system/bin/surfaceflinger identical 4 lines
01-18 21:09:40.440: I/ConfigStore(818):  android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
01-18 21:09:40.484: E/em.wifianalyze(5756):  Not starting debugger since process cannot load the jdwp agent.
01-18 21:09:40.599: I/ActivityManager(1265):  START u0 {cmp=com.vrem.wifianalyzer/.MainActivity} from uid 10296
01-18 21:09:40.638: W/ActivityThread(5756):  handleWindowVisibility: no activity for token android.os.BinderProxy@4e87da4
01-18 21:09:40.755: I/ConfigStore(818):  android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
01-18 21:09:40.757: I/chatty  (818):  uid=1000(system) /system/bin/surfaceflinger identical 3 lines
01-18 21:09:40.757: I/ConfigStore(818):  android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
01-18 21:09:40.797: I/WifiService(1265):  startScan uid=10296
01-18 21:09:40.806: D/OpenGLRenderer(5756):  Skia GL Pipeline
01-18 21:09:40.810: I/ViewRootImpl(5756):  CPU Rendering VSync enable = false
01-18 21:09:40.825: I/WifiService(1265):  startScan uid=10296
01-18 21:09:40.856: I/Adreno  (5756):  QUALCOMM build                   : cf57c9c, I1cb5c4d1cc
01-18 21:09:40.856: I/Adreno  (5756):  Build Date                       : 09/23/18
01-18 21:09:40.856: I/Adreno  (5756):  OpenGL ES Shader Compiler Version: EV031.25.03.01
01-18 21:09:40.856: I/Adreno  (5756):  Local Branch                     :
01-18 21:09:40.856: I/Adreno  (5756):  Remote Branch                    :
01-18 21:09:40.856: I/Adreno  (5756):  Remote Branch                    :
01-18 21:09:40.856: I/Adreno  (5756):  Reconstruct Branch               :
01-18 21:09:40.856: I/Adreno  (5756):  Build Config                     : S L 6.0.7 AArch64
01-18 21:09:40.859: I/Adreno  (5756):  PFP: 0x005ff112, ME: 0x005ff066
01-18 21:09:40.864: I/ConfigStore(5756):  android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
01-18 21:09:40.864: I/ConfigStore(5756):  android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
01-18 21:09:40.865: I/OpenGLRenderer(5756):  Initialized EGL, version 1.4
01-18 21:09:40.865: D/OpenGLRenderer(5756):  Swap behavior 2
01-18 21:09:40.942: I/ActivityManager(1265):  Displayed com.vrem.wifianalyzer/.MainActivity: +672ms
01-18 21:09:40.943: W/SurfaceFlinger(818):  Attempting to set client state on removed layer: Splash Screen com.vrem.wifianalyzer#0
01-18 21:09:40.943: W/SurfaceFlinger(818):  Attempting to destroy on removed layer: Splash Screen com.vrem.wifianalyzer#0
01-18 21:09:41.054: I/WifiHAL (799):  Fate Tx-Rx: Packet fate stats stop received
01-18 21:09:41.222: I/ConfigStore(818):  android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
01-18 21:09:41.223: I/chatty  (818):  uid=1000(system) /system/bin/surfaceflinger identical 3 lines
01-18 21:09:41.224: I/ConfigStore(818):  android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
01-18 21:09:41.833: I/WifiService(1265):  startScan uid=10296
01-18 21:09:42.847: I/WifiService(1265):  startScan uid=10296
01-18 21:09:42.984: I/DPMJ    (2310):  |REQ:RCVR| DPM creating socket
01-18 21:09:43.360: D/WificondControl(1265):  Scan result ready event
01-18 21:09:43.369: I/WifiScanRequestProxy(1265):  No ongoing scan request. Don't send scan broadcast.
01-18 21:09:43.370: I/chatty  (1265):  uid=1000(system) WifiStateMachin identical 1 line
01-18 21:09:43.371: I/WifiScanRequestProxy(1265):  No ongoing scan request. Don't send scan broadcast.
01-18 21:09:43.796: E/ANDR-PERF-MPCTL(804):  Invalid profile no. 0, total profiles 0 only
01-18 21:09:43.858: I/WifiService(1265):  startScan uid=10296
01-18 21:09:43.859: I/WifiScanRequestProxy(1265):  Scan request from com.vrem.wifianalyzer throttled
01-18 21:09:43.859: E/WifiService(1265):  Failed to start scan
01-18 21:09:44.863: I/WifiService(1265):  startScan uid=10296
01-18 21:09:44.864: I/WifiScanRequestProxy(1265):  Scan request from com.vrem.wifianalyzer throttled
01-18 21:09:44.864: E/WifiService(1265):  Failed to start scan
01-18 21:09:45.874: I/WifiService(1265):  startScan uid=10296
01-18 21:09:45.876: I/WifiScanRequestProxy(1265):  Scan request from com.vrem.wifianalyzer throttled
01-18 21:09:45.876: E/WifiService(1265):  Failed to start scan
01-18 21:09:45.929: E/ANDR-PERF-MPCTL(804):  Invalid profile no. 0, total profiles 0 only
01-18 21:09:46.890: I/WifiService(1265):  startScan uid=10296
01-18 21:09:46.891: I/WifiScanRequestProxy(1265):  Scan request from com.vrem.wifianalyzer throttled
01-18 21:09:46.892: E/WifiService(1265):  Failed to start scan
01-18 21:09:46.985: I/DPMJ    (2310):  |REQ:RCVR| DPM creating socket
01-18 21:09:47.409: E/ANDR-PERF-MPCTL(804):  Invalid profile no. 0, total profiles 0 only
01-18 21:09:47.582: I/WifiService(1265):  startScan uid=10296
01-18 21:09:47.582: I/WifiScanRequestProxy(1265):  Scan request from com.vrem.wifianalyzer throttled
01-18 21:09:47.583: E/WifiService(1265):  Failed to start scan
01-18 21:09:47.657: I/WifiService(1265):  startScan uid=10296
01-18 21:09:47.658: I/WifiScanRequestProxy(1265):  Scan request from com.vrem.wifianalyzer throttled
01-18 21:09:47.659: E/WifiService(1265):  Failed to start scan
01-18 21:09:47.900: I/WifiService(1265):  startScan uid=10296
01-18 21:09:47.901: I/WifiScanRequestProxy(1265):  Scan request from com.vrem.wifianalyzer throttled
01-18 21:09:47.901: E/WifiService(1265):  Failed to start scan
01-18 21:09:48.910: I/WifiService(1265):  startScan uid=10296
01-18 21:09:48.912: I/WifiScanRequestProxy(1265):  Scan request from com.vrem.wifianalyzer throttled
01-18 21:09:48.913: E/WifiService(1265):  Failed to start scan
01-18 21:09:49.928: I/WifiService(1265):  startScan uid=10296
01-18 21:09:49.930: I/WifiScanRequestProxy(1265):  Scan request from com.vrem.wifianalyzer throttled
01-18 21:09:49.931: E/WifiService(1265):  Failed to start scan
01-18 21:09:50.942: I/WifiService(1265):  startScan uid=10296
01-18 21:09:50.944: I/WifiScanRequestProxy(1265):  Scan request from com.vrem.wifianalyzer throttled
01-18 21:09:50.945: E/WifiService(1265):  Failed to start scan
01-18 21:09:50.990: I/DPMJ    (2310):  |REQ:RCVR| DPM creating socket
01-18 21:09:51.964: I/WifiService(1265):  startScan uid=10296
01-18 21:09:51.966: I/WifiScanRequestProxy(1265):  Scan request from com.vrem.wifianalyzer throttled
01-18 21:09:51.967: E/WifiService(1265):  Failed to start scan
01-18 21:09:52.979: I/WifiService(1265):  startScan uid=10296
01-18 21:09:52.983: I/WifiScanRequestProxy(1265):  Scan request from com.vrem.wifianalyzer throttled
01-18 21:09:52.984: E/WifiService(1265):  Failed to start scan
01-18 21:09:53.781: W/ActivityManager(1265):  Background start not allowed: service Intent { cmp=com.google.android.apps.messaging/.shared.datamodel.action.execution.ActionExecutorImpl$EmptyService } to com.google.android.apps.messaging/.shared.datamodel.action.execution.ActionExecutorImpl$EmptyService from pid=3409 uid=10218 pkg=com.google.android.apps.messaging startFg?=false
01-18 21:09:53.787: I/Bugle   (3409):  CountryCodeDetector: updateMainDeviceCountry from default subscription network country. detected country: ru
01-18 21:09:53.998: I/WifiService(1265):  startScan uid=10296
01-18 21:09:53.999: I/WifiScanRequestProxy(1265):  Scan request from com.vrem.wifianalyzer throttled
01-18 21:09:54.000: E/WifiService(1265):  Failed to start scan
01-18 21:09:54.828: W/ActivityManager(1265):  Unable to start service Intent { act=com.google.android.gms.clearcut.service.START pkg=com.google.android.gms } U=0: not found
01-18 21:09:54.829: W/ActivityManager(1265):  Unbind failed: could not find connection for android.os.BinderProxy@28c4d76
01-18 21:09:54.829: E/GmsClient(3409):  unable to connect to service: com.google.android.gms.clearcut.service.START on com.google.android.gms
01-18 21:09:54.992: I/DPMJ    (2310):  |REQ:RCVR| DPM creating socket
01-18 21:09:55.009: I/WifiService(1265):  startScan uid=10296
01-18 21:09:55.010: I/WifiScanRequestProxy(1265):  Scan request from com.vrem.wifianalyzer throttled
01-18 21:09:55.011: E/WifiService(1265):  Failed to start scan
01-18 21:09:56.020: I/WifiService(1265):  startScan uid=10296
01-18 21:09:56.022: I/WifiScanRequestProxy(1265):  Scan request from com.vrem.wifianalyzer throttled
01-18 21:09:56.022: E/WifiService(1265):  Failed to start scan
01-18 21:09:56.324: D/WificondControl(1265):  Scan result ready event
01-18 21:09:57.033: I/WifiService(1265):  startScan uid=10296
01-18 21:09:57.036: I/WifiScanRequestProxy(1265):  Scan request from com.vrem.wifianalyzer throttled
01-18 21:09:57.037: E/WifiService(1265):  Failed to start scan
01-18 21:09:58.052: I/WifiService(1265):  startScan uid=10296
01-18 21:09:58.055: I/WifiScanRequestProxy(1265):  Scan request from com.vrem.wifianalyzer throttled
01-18 21:09:58.056: E/WifiService(1265):  Failed to start scan
01-18 21:09:58.995: I/DPMJ    (2310):  |REQ:RCVR| DPM creating socket
01-18 21:09:59.071: I/WifiService(1265):  startScan uid=10296
01-18 21:09:59.074: I/WifiScanRequestProxy(1265):  Scan request from com.vrem.wifianalyzer throttled
01-18 21:09:59.075: E/WifiService(1265):  Failed to start scan
01-18 21:10:00.087: I/WifiService(1265):  startScan uid=10296
01-18 21:10:00.088: I/WifiScanRequestProxy(1265):  Scan request from com.vrem.wifianalyzer throttled
01-18 21:10:00.089: E/WifiService(1265):  Failed to start scan
01-18 21:10:01.096: I/WifiService(1265):  startScan uid=10296
01-18 21:10:01.098: I/WifiScanRequestProxy(1265):  Scan request from com.vrem.wifianalyzer throttled
01-18 21:10:01.098: E/WifiService(1265):  Failed to start scan
01-18 21:10:02.109: I/WifiService(1265):  startScan uid=10296
01-18 21:10:02.113: I/WifiScanRequestProxy(1265):  Scan request from com.vrem.wifianalyzer throttled
01-18 21:10:02.114: E/WifiService(1265):  Failed to start scan
01-18 21:10:03.001: I/DPMJ    (2310):  |REQ:RCVR| DPM creating socket
01-18 21:10:03.127: I/WifiService(1265):  startScan uid=10296
01-18 21:10:03.130: I/WifiScanRequestProxy(1265):  Scan request from com.vrem.wifianalyzer throttled
01-18 21:10:03.132: E/WifiService(1265):  Failed to start scan
01-18 21:10:04.147: I/WifiService(1265):  startScan uid=10296
01-18 21:10:04.151: I/WifiScanRequestProxy(1265):  Scan request from com.vrem.wifianalyzer throttled
01-18 21:10:04.152: E/WifiService(1265):  Failed to start scan
01-18 21:10:05.165: I/WifiService(1265):  startScan uid=10296
01-18 21:10:05.169: I/WifiScanRequestProxy(1265):  Scan request from com.vrem.wifianalyzer throttled
01-18 21:10:05.170: E/WifiService(1265):  Failed to start scan
01-18 21:10:06.183: I/WifiService(1265):  startScan uid=10296
01-18 21:10:06.185: I/WifiScanRequestProxy(1265):  Scan request from com.vrem.wifianalyzer throttled
01-18 21:10:06.186: E/WifiService(1265):  Failed to start scan
01-18 21:10:07.005: I/DPMJ    (2310):  |REQ:RCVR| DPM creating socket
01-18 21:10:07.201: I/WifiService(1265):  startScan uid=10296
01-18 21:10:07.203: I/WifiScanRequestProxy(1265):  Scan request from com.vrem.wifianalyzer throttled
01-18 21:10:07.204: E/WifiService(1265):  Failed to start scan
01-18 21:10:08.219: I/WifiService(1265):  startScan uid=10296
01-18 21:10:08.221: I/WifiScanRequestProxy(1265):  Scan request from com.vrem.wifianalyzer throttled
01-18 21:10:08.222: E/WifiService(1265):  Failed to start scan

Closing comment (2020-01-25T14:35:32Z): Please take a look at FAQ section: Android Pie throttling Wi-Fi scanning
Duplicate #269, #242, #231
Android 9 version of the application has a setting option: "Disable Wi-Fi scan throttling".
Since it is an experimental feature, it may or may not work on the specific devices.