How it is possible to enable portable Wi-Fi hotspot from ADB shell or by editing some configuration files on Android Jelly Bean? I need to do it interactive for automatic test server
If you have root on your phone, you can use Wifi Tether for Root Users. I have a Droid4 with Jellybean and got it working after installing the latest version.
For my Droid4, the following settings worked:
Device-Profile: Generic ICS/JB (wlan1)
Setup-Method: Netd-Ndc (master)
There is an app called FoxFi that lets you tether your phone's internet over bluetooth or wifi. There is no need for adb etc.
It is compatible with Jellybean because I use it too Here is the link: https://play.google.com/store/apps/details?id=com.foxfi
You could trigger that using Tasker:
WiFi Tether: Turn on sharing of the device's Internet connection via wifi.
You just need to pick a fitting trigger -- I picked File Events for this example:
- Condition: File Events
- Task: WiFi Tether
So with that set up (specifying the parameters of course), you should be able to trigger your WiFi hotspot (aka "WiFi Tether", as the Tasker manual names it) by placing a file -- and trigger it off again by removing the file. Did not try that myself -- but that's how I understand it :)