Wednesday, August 8, 2018

Android Oreo’s “Turn on WiFi Automatically” feature is enabled for all in Android Pie

Turn on WiFi automatically Nexus 5X Nexus 6P Android Oreo

Google Nexus 5X and Nexus 6P owners will remember the disappointment when getting the official Android 8.0 Oreo update and not getting features like Night Light and automatic Wi-Fi wakeup. The latter feature was introduced with the Android Oreo update for the Google Pixel and Pixel XL. What it does is automatically turns on  Wi-Fi to connect to a high-quality saved network. The feature isn't available for all Android Oreo devices as OEMs have to choose to enable it, but it will be available for all devices running Android Pie!

Wi-Fi Automatic Wakeup for all Android Pie devices

With the release of Android Pie and the code drop on AOSP, we spotted two changes that enable this feature for all devices launching with or upgrading to Android 9 Pie. The first commit simply enables it on all devices by changing the value of config_wifi_wakeup_available in the AOSP framework from 0 (false) to 1 (true). A follow-up commit removes this flag entirely as its now enabled by default in Android Pie.

Android Pie Turn on Wi-Fi Automatically Android Pie Turn on Wi-Fi Automatically

If you compare config.xml in the Android frameworks/base branch for the android-8.1.0_r43 tag versus the one in the android-9.0.0_r3 tag, you'll see that the "Turn on Wi-Fi Automatically" flag is no longer present. Even custom ROMs based on Android Pie will have the feature enabled without having to make any changes whatsoever.

For a quick refresher on how this feature works, it takes advantage of the "Wi-Fi scanning" feature in Location Services to detect Wi-Fi networks in the background. It checks these Wi-Fi networks against Google's recommendation service, and if the recommendation service determines the Wi-Fi network is trusted (saved network) and high-quality (based on connection quality, network speed, etc.), then your Android device will fully turn on Wi-Fi and automatically connect to the network. This actually ends up saving battery if you live in an area with a ton of Wi-Fi access points, because the alternative is leaving Wi-Fi on which causes your phone to constantly connect to and disconnect from low quality, open Wi-Fi networks.

If your device has this feature available, you'll find it in Settings –> Network & Internet –> Wi-Fi –> Wi-Fi Preferences –> "Turn on Wi-Fi automatically." For this feature to work, you'll also need to have "Wi-Fi scanning" enabled in Settings –> Location –> Scanning. If your device doesn't have this feature, you'll have to wait for the Android Pie (Android 9) update to roll out or manually enable it yourself (though we should note this method likely only truly works if you use an overlay to enable the value in the framework.)



from xda-developers https://ift.tt/2M5YbTe
via IFTTT

No comments:

Post a Comment