startScan() in WifiManager deprecated in Android P

前端 未结 7 2084
没有蜡笔的小新
没有蜡笔的小新 2020-12-08 05:02

How to get scan result from wifi for example every 3 seconds, without mWifimanager.startScan();

Google says :

startScan() This method was

相关标签:
7条回答
  • 2020-12-08 05:43

    From WifiManager#EXTRA_RESULTS_UPDATED

    Note: Apps holding android.Manifest.permission.NETWORK_SETTINGS permission are exempted from scan throttling.

    Note: This is a system permission, regular apps can't use it without rooting and moving the app to the 'privileged' location or having it baked into a custom ROM.

    0 讨论(0)
提交回复
热议问题