[英]Stuck on “Connecting to WiFi” screen while provisioning Android Lollipop device
I am trying to auto connect with WiFi when provisioning Android Lollipop device using below NFC tags: 我正在尝试使用以下NFC标签配置Android Lollipop设备时使用WiFi自动连接:
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. 似乎它已经与WiFi连接但仍停留在
Connecting to Wi-fi...
屏幕上,并没有完成配置过程。
Can anybody guide me to resolve this issue? 任何人都可以指导我解决这个问题吗?
您需要用双引号括起SSID:p.setProperty(DevicePolicyManager.EXTRA_PROVISIONING_WIFI_SSID,“\\”my SSI \\“”);
Yes, it's broken in L MR0 (Android 5.0). 是的,它在L MR0(Android 5.0)中被破坏了。
However, it's my experience that it has been fixed in L MR1 (Android 5.1). 但是,根据我的经验,它已在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/ 修复程序进入了ManagedProvisioning git: https ://android.googlesource.com/platform/packages/apps/ManagedProvisioning/
I've tried several things without success. 我尝试了几件事没有成功。 The feature seems broken.
这个功能似乎破了。
You should probably enter the WiFi info manually. 您应该手动输入WiFi信息。
To make it work I had to set the also the flag android.app.extra.PROVISIONING_WIFI_SECURITY_TYPE
. 为了使它工作,我不得不设置标志
android.app.extra.PROVISIONING_WIFI_SECURITY_TYPE
。
Specify only the two EXTRA
for SSID and PASSWORD as stated in the docs isn't enough. 如文档中所述仅指定SSID和PASSWORD的两个
EXTRA
是不够的。 Probably the default security type remains NONE
. 默认安全类型可能仍为
NONE
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.