ACTION_MANAGE_WRITE_SETTINGS(AMWS) is only needed to forceWifi on Android 6.0.0, this was fixed in Android 6.0.1 and later. We are already not requesting the AMWS permission on Android 7+. I now have a Samsung device on Android 6.0.1 so I was able to verify that the following fix works on 6.0.1, but will leave 6.0.0 functionality unchanged. Android 7+ functionality is also unaffected by this change, and if we are unable to positively identify if an Android 6 device is on 6.0.1 or not we will default to requesting AMWS.
ACTION_MANAGE_WRITE_SETTINGS(AMWS) is only needed to forceWifi on Android 6.0.0, this was fixed in Android 6.0.1 and later. We are already not requesting the AMWS permission on Android 7+. I now have a Samsung device on Android 6.0.1 so I was able to verify that the following fix works on 6.0.1, but will leave 6.0.0 functionality unchanged. Android 7+ functionality is also unaffected by this change, and if we are unable to positively identify if an Android 6 device is on 6.0.1 or not we will default to requesting AMWS.