Stuck on “Connecting to WiFi” screen while provisioning Android Lollipop device

☆樱花仙子☆ 提交于 2019-12-06 01:36:49

问题


I am trying to auto connect with WiFi when provisioning Android Lollipop device using below NFC tags:

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

It seems it is getting connected with WiFi but stuck on Connecting to Wi-fi... Screen and it is not finishing with provisioning process.

Can anybody guide me to resolve this issue?


回答1:


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




回答2:


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

However, it's my experience that it has been fixed in L MR1 (Android 5.1).

It works for us now (I work at Sony Mobile).

The fix went into ManagedProvisioning git: https://android.googlesource.com/platform/packages/apps/ManagedProvisioning/




回答3:


To make it work I had to set the also the flag android.app.extra.PROVISIONING_WIFI_SECURITY_TYPE.

Specify only the two EXTRA for SSID and PASSWORD as stated in the docs isn't enough. Probably the default security type remains NONE.




回答4:


I've tried several things without success. The feature seems broken.

You should probably enter the WiFi info manually.



来源:https://stackoverflow.com/questions/29004486/stuck-on-connecting-to-wifi-screen-while-provisioning-android-lollipop-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!