Bug fix of WifiHealthMonitor when Wifi is not up
When Wifi is disabled during boot up, WLAN driver/FW build/Wifi APK version information are not available. Current WifiHealthMonitor still tries to extract these information and results in a false detection of SW build change in this case.
To work around the problem, skip SW build change detection if it is found that WiFi is not enabled after boot up.
Bug: 151351913
Test: atest com.android.server.wifi
Test: manual test with adb commands
1)enable wifi verbose
2)keep Wifi on, reboot the phone, run "adb logcat WifiHealthMonitor:d *:s", confirm there is no SW build change detected (assuming there is SW build change before reboot)
3)disable Wifi through UI, reboot the phone, run the same adb command,
confirm that there is no sW build change detected during post-boot
detection.
Change-Id: I98df4092cd6953e6c9d99b7ddbc417b7562fc9ca
2 files changed