-
Notifications
You must be signed in to change notification settings - Fork 17
Broken on 6.0+ #6
Comments
Did you try running the example application? On my Nexus 6 running 6.0, I also get that logcat line, but since my wireless device is indeed wlan0, it does work. |
Our current method depends on the MAC address, so give up directly. We will receive a stub address which will yield no match. Updates #6.
There is now a better warning message for 6.0+, but wlan0 should work for you and hence the example application should be able to enable/disable the AP. If not, |
Huh, it doesn't actually work for me:
|
Okay, I need to grab this new permission and do the runtime request that 6.0 added. Might take some time to get it fully working. |
Let me know if you need anything else on my end. |
I can confirm that it doesn't work on my Nexus 7 2013 on android 6.0.1 too. It doesn't even enable access point. Do you have any idea how to make it work ? |
Seems like he's working on it as of 3 days ago. It's the weekend, cut him some slack. |
Sure, I know. I meant if there is anything I can do to help ? |
Well, you can try to get it working and open a PR. I just moved and will be busy for the rest of the coming week, so won't have time for this at least until next weekend. |
Okay, so I lied. It mostly works for me, but sometimes it takes a few tries for In any case, that's just the quickly put together example code. The library code is pretty much done and trivial. Test away! |
Remember to let me know whether current master works for you or not. AFAIK the library code is fine, so unless proven otherwise I'll assume it's ready and tag a release. |
Confirmed working across multiple 6.0+ devices when we request the WRITE_SETTINGS permission. No change to the function of older devices. Release away sir. |
Done. |
This release allows for Android 6+ support, but we'll need to ask for permissions at runtime too. This commit simply does one half of the work needed to support Android 6 with all things wi-fi. See the issue and example app commit for reference: mvdan/accesspoint#6 mvdan/accesspoint@6284f03
When attempting to use the library on several 6.0 Nexus 5 the access point is neither configured or enabled.
The following error is seen in logcat:
'W/WifiApControl: None found - falling back to the default device name: wlan0'
Got a bunch of 5.1.1 devices that this works on without issue.
The text was updated successfully, but these errors were encountered: