How to activate Wifi hotspot on startup?


I need to activate Wifi hotspot on startup (or programmatically if possible). Is there anyone did that already ?


AFAIK, there is no Android hot-spot public API. However there are some projects using reflection (java.lang.reflect) that allows to control Hotspot, maybe you could try this one and develop your own startup app.

You can also try to simulate user input, but this is a flawed solution.
$ am start -n
$ input keyevent 20 & input keyevent 66

Thanks Loic, I’ve done as your suggestions and it works.