WIfiConfiguration cannot change config from BTCore
Android M: WifiConfig can only be changed by the apk that configured it
In Provisioning, Wifi is configured by Provisioning apk, but then when BTCore runs, the WifiService cannot configure that SSID because it is a different apk. There is a permission (OVERRIDE_WIFI_CONFIG ) but it is systemOrSig and would need to be on BTCore.
From thread online (https://github.com/shouldit/android-proxy/issues/15) ::
I don't know if it's useful but I noticed this in the "Behavior Changes" document from Google : "Your apps can now change the state of WifiConfiguration objects only if you created these objects. You are not permitted to modify or delete WifiConfiguration objects created by the user or by other apps." http://developer.android.com/preview/behavior-changes.html#behavior-network
Resolution to be determined: Option 1: provisioning removes it's config on completion and lets BTCore reconfigure and then own it from there. Option 2: relax restriction in WifiStateMachine Option 3: allow BTCore to request that Provisioner remove config through broadcast.