Package 

Class WifiManager


  • 
    public final class WifiManager
    
                        

    Manager class for WiFi scanning and data collection using a simplified dual-timer approach.

    Strategy:

    • Android 9+ (API 28+): Uses WifiScanner with low-latency settings for optimal performance (when available)

    • Android 8 and below: Uses traditional WifiManager with dual-timer approach

    For Android 9+ (when WifiScanner is available):

    • WifiScanner with SCAN_TYPE_LOW_LATENCY for real-time scanning

    • Continuous scan results without throttling limitations

    For older versions or when WifiScanner is not available:

    • Legitimate scan requests every 30 seconds (respects Android throttling)

    • System scan result checks every 1 second (no throttling limits)