I have a Sony Ericsson Arc S, running on Android 4.0.4
I rooted my cellphone and added android.hardware.wifi.direct.xml
in /system/etc/permissions/
.
I can see the WiFi Direct option in my Settings
. When I enable WiFi Direct, it shows that WiFi Direct is opened, but the WiFi is disabled. If I enable WiFi, my WiFi Direct changes to disabled.
When I run WiFiDirectDemo, it fails when I enable WiFi Direct. Once it reaches discoverPeers
, WifiP2pManager.ActionListener
returns 'Discovery Failed : reason Code is 0'.
I don't know what happened. Does anybody know how to enable WiFi Direct for my phone? Or is it impossible? Why?