Comments (13)
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.
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.
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.
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.
Let me know if you need anything else on my end.
from accesspoint.
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.
Seems like he's working on it as of 3 days ago. It's the weekend, cut him some slack.
from accesspoint.
Sure, I know. I meant if there is anything I can do to help ?
from accesspoint.
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.
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.
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.
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.
Done.
from accesspoint.
Related Issues (15)
- provide method to get IP address HOT 3
- DHCP not working on Android 7.1 and later HOT 23
- Automatically detect WLAN device name on newer devices HOT 2
- Support for band and channel selection. HOT 3
- About AP's password HOT 1
- Android 7.1: Access point created but no internet connection HOT 1
- Not working on Samsung Galaxy S5 SM-G900V Android 6.0.1 HOT 9
- Logo offer for Accesspoint
- Only catch reflection exceptions HOT 1
- Remove getInstance() method with no args HOT 1
- Is it possible to support WifiManager.NETWORK_STATE_CHANGED_ACTION? HOT 6
- Is it possible to set the wifi channel? HOT 4
- Configurations are not applied HOT 9
- java.lang.NumberFormatException HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from accesspoint.