Git Product home page Git Product logo

Comments (13)

mvdan avatar mvdan commented on June 19, 2024

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.

from accesspoint.

mvdan avatar mvdan commented on June 19, 2024

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, adb shell into your device and do ip link. You should see the interface name there.

from accesspoint.

mvdan avatar mvdan commented on June 19, 2024

Huh, it doesn't actually work for me:

01-21 20:37:24.840 10482 10482 E WifiApControl: Caused by: java.lang.SecurityException: cc.mvdan.accesspoint.example was not granted  this permission: android.permission.WRITE_SETTINGS.

from accesspoint.

mvdan avatar mvdan commented on June 19, 2024

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.

from accesspoint.

keag-dev avatar keag-dev commented on June 19, 2024

Let me know if you need anything else on my end.

from accesspoint.

sebastianmaz avatar sebastianmaz commented on June 19, 2024

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 ?

from accesspoint.

keag-dev avatar keag-dev commented on June 19, 2024

Seems like he's working on it as of 3 days ago. It's the weekend, cut him some slack.

from accesspoint.

sebastianmaz avatar sebastianmaz commented on June 19, 2024

Sure, I know. I meant if there is anything I can do to help ?

from accesspoint.

mvdan avatar mvdan commented on June 19, 2024

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.

from accesspoint.

mvdan avatar mvdan commented on June 19, 2024

Okay, so I lied. It mostly works for me, but sometimes it takes a few tries for WRITE_SETTINGS to be granted. I'm on a cm13 nightly, so perhaps it's just me.

In any case, that's just the quickly put together example code. The library code is pretty much done and trivial. Test away!

from accesspoint.

mvdan avatar mvdan commented on June 19, 2024

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.

from accesspoint.

keag-dev avatar keag-dev commented on June 19, 2024

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.

from accesspoint.

mvdan avatar mvdan commented on June 19, 2024

Done.

from accesspoint.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.