Stuck on WiFi Connection screen while setting up Android Lollipop device

I am trying to connect to Wi-Fi while setting up an Android Lollipop device using below NFC tags:

p.setProperty(DevicePolicyManager.EXTRA_PROVISIONING_WIFI_SSID, "-----"); p.setProperty(DevicePolicyManager.EXTRA_PROVISIONING_WIFI_PASSWORD, "----"); 

It seems to be connecting to Wi-Fi, but is stuck on the Connecting to Wi-fi... screen Connecting to Wi-fi... and does not finish the preparation process.

Can someone help me solve this problem?

+5
source share
4 answers

You need to surround the SSID with double quotes: p.setProperty (DevicePolicyManager.EXTRA_PROVISIONING_WIFI_SSID, "\" my SSI \ "");

+2
source

Yes, it is broken in L MR0 (Android 5.0).

However, my experience shows that it was fixed in L MR1 (Android 5.1).

Now it works for us (I work for Sony Mobile).

The fix is ​​included in ManagedProvisioning git: https://android.googlesource.com/platform/packages/apps/ManagedProvisioning/

+1
source

I have tried several things without success. The function seems broken.

You should probably enter the WiFi information manually.

0
source

For this to work, I needed to set the android.app.extra.PROVISIONING_WIFI_SECURITY_TYPE flag as well.

Specifying only two EXTRA for the SSID and PASSWORD, as indicated in the docs, is not enough. Probably the default security type is NONE .

0
source

Source: https://habr.com/ru/post/1215212/


All Articles