connect to android devices using wifi direct without prompt

戏子无情 提交于 2019-11-28 19:53:40

You could indeed simply use the createGroup function from the API to create a group, which also makes the access point. The first problem here is that the access point name & password are set automatically, and you can not change them.

So, you do need to pass the info to the connecting party, and for this, I would suggest using the local service advertising, and using the instance name there.

Did make simple test app for this and you can find it from Github under DrJukka/MyWifiMesh, also some discussions on the topic can be found from my blog

Ziad Halabi

This can be achieve using Xposed framework. You need add the code and install the App. The phone needs to be rooted in order for it to work. I have tested it on multiple Samsung phones and it works. Check this answer for details: How to auto-accept Wi-Fi Direct connection requests in Android

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