termux-api icon indicating copy to clipboard operation
termux-api copied to clipboard

Can the hotspot option be controlled with Termux?

Open SDRausty opened this issue 8 years ago • 11 comments

The hotspot option is an awesome option in modern day smartphones. It's functionality is limited in Android. For example, a data connection is required to activate it. Can Termux overcome this Android limitation? What are the methods to accomplish wifi-hotspot control in Termux?

SDRausty avatar Jan 30 '18 20:01 SDRausty

Protection information in termux-wifi-scaninfo https://github.com/termux/termux-api/issues/90 is also a hotspot issue.

SDRausty avatar Jan 30 '18 20:01 SDRausty

Specifically turning on and using the hotspot in airplane mode via Termux is requested.

SDRausty avatar Feb 05 '18 01:02 SDRausty

I need this too. Simply turn on or off hotspot from termux.

eirmd avatar Jul 01 '21 05:07 eirmd

https://github.com/oblique/create_ap this could work

god-pro avatar Apr 03 '22 14:04 god-pro

@GOD-pro did you try if it works on Termux? The project you mentioned is not maintained anymore, but there are two forks linked on that page.

tik9 avatar Aug 06 '22 09:08 tik9

this is absolutely needed. There are certain models that don't work with ngrok (ie: for exposing ssh tunnels) w/o the hotspot enabled.

So there should be a way to turn on/off the hotspost

wildspecial avatar Aug 16 '22 22:08 wildspecial

i have samsung phone with severe battery saver that auto turns of mobile hotspot. i want a way to check every few minutes whether hotspot is on or off and if its off switxh it on

tathastu871 avatar Nov 12 '22 13:11 tathastu871

There should be an option to disable automatically turning off hotspot if no devices are connected or a timeout option in hotspot settings.

agnostic-apollo avatar Nov 12 '22 15:11 agnostic-apollo

This would be amazing for my scripting!

There should be an option to disable automatically turning off hotspot if no devices are connected or a timeout option in hotspot settings.

I would assume that Termux-API would toggle the system hotspot, meaning that it would use the settings defined in the Android hotspot settings.

ShadowEO avatar Jan 05 '23 20:01 ShadowEO

Did you ever figure this out? I just need to be able to turn the hotspot on via script in termux.

K-L-R-3 avatar Dec 22 '23 05:12 K-L-R-3

I'd like to be able to control hotspot via termux, also. Simple toggle on/off/until no devices connected would be ideal for me.

izmyname avatar Jan 07 '24 06:01 izmyname