如何设置Wi-Fi直连的接口设备名称 [英] how to set interface device name of wifi direct

查看:1317
本文介绍了如何设置Wi-Fi直连的接口设备名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个职位的类似的问题
的Andr​​oid Wi-Fi直连设备详细信息
然而,似乎din't获得该职位的任何解决方案。

I have the similar question with this post Android WiFi Direct device details However, it seem din't get any solution from that post.

这是任何方法可以用于设置类似的以的setName()或setServiceName在bluetoohAdapter&AMP功能的无线直接名称; NsdServiceInfo。

Is it any method can used to set the wifi-direct name that similar with function of "setName()" or "setServiceName" in bluetoohAdapter & NsdServiceInfo.

推荐答案

您可以使用反射重命名设备Wi-Fi直连名称。在这里检查的解决方案:<一href=\"http://stackoverflow.com/questions/27315198/android-rename-devices-name-for-wifi-direct\">Android支持WiFi直接重新命名设备的名称

You can rename the device WiFi Direct name using reflection. Check the solution here: Android rename device's name for wifi-direct

此外,还有一种称为p2p_supplicant.conf在包含其中指定了WiFi直接名称字段中的/data/misc/wifi/p2p_supplicant.conf文件。你可以用与稍作调整我的答案编辑:<一href=\"http://stackoverflow.com/questions/29795510/editing-a-value-in-the-file-p2p-supplicant-conf-which-is-located-on-root-data-m/29796418#29796418\">editing这是位于/root/data/misc/wifi/p2p_supplicant.conf

Additionally, there is a file called p2p_supplicant.conf in the /data/misc/wifi/p2p_supplicant.conf that contains a field where the WiFi Direct name is specified. You can edit it using my answer on with a slight adjustment: editing a value in the file p2p_supplicant.conf which is located on /root/data/misc/wifi/p2p_supplicant.conf

只是一个注释,您可以手动更改手机的WiFi直设备的名称,而不需要的应用程序。目前在Android手机中WiFi-> Wi-Fi直连的重命名设备的选择。

Just a note that you can manually change the name of the WiFi Direct device on the phone without the need for an App. There is a rename device option in WiFi->Wifi Direct on Android phones.

希望这有助于。让我知道如果你有任何问题。

Hope this helps. Let me know if you have any questions.

这篇关于如何设置Wi-Fi直连的接口设备名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆