Google现在已经记录了Android P中startScan()函数的限制:
“我们进一步限制了应用程序可以请求的扫描次数,以提高网络性能并延长电池寿命。
WifiManager.startScan()的使用仅限于:-每个前台应用程序每2分钟只能进行4次扫描。-所有后台应用程序的合并限制为每30分钟扫描一次。”
来源:https:
//issuetracker.google.com/issues/79906367
编辑2018年8月8日:在这里还添加了信息:https :
//developer.android.com/guide/topics/connectivity/wifi-scan#wifi-scan-
throttling



