I have written an app (AutoWifiSwitch) and one of the features I plan to add is automatically disabling the wifi scanning service in my app if power saving mode is enabled.<
"power saving mode" is not an official AOSP feature and there are no ways to detect it via official SDK. it is manufacturer specific. check this link