Applies to Oreo+ only...
I made an app with code here on GitHub which uses reflection and DexMaker to 'get at' Oreo's tethering functionality, which is now in ConnectionManager
, rather than WifiManager
.
The stuff in WifiManager
is good only for a closed wifi network (which explained the Closed bit in the class names!).
More explanation https://stackoverflow.com/a/49356255/772333.