-
-
Save beginor/3dfc1a76d5f0fb08e20c8b96ff4ba8b0 to your computer and use it in GitHub Desktop.
# open setting | |
adb shell am start -n com.android.settings/.TetherSettings | |
# down | |
adb shell input keyevent 20 | |
# enter | |
adb shell input keyevent 66 |
also if phone is locked with password use these command before that to unlock it
# wakeup
adb shell input keyevent 82
# swipe to prompt password
adb shell input swipe 500 1000 300 300
# input pin code mine is 15263, if you have password then you need to call enter command after but pin will auto unlock when correct
adb shell input text 15263
Searched up the whole internet couldn't find out anything BUT then I remembered about that one POWERFUL app(posting this solution everywhere haha)
Using this app, you could create a complex set of instructions to be executed in your phone by something called flows The app has some really beautiful UI ngl
(Here's a video demonstrating some really simple things you could do)
https://www.youtube.com/watch?v=i53Yd30TFrU
Simply speaking, you could access ALL sorts of Android APIs that would be extremely complicated to access otherwise through ADB alone. It's a universal solution for all phones to this hotspot problem and countless others.
It also has a vibrant community tab through which you could access the millions of flows created by other people
The app is freemium, doesn't contain ads whatsoever. The only limitation is that you could run 30 blocks simultaneously at a time
How to start/stop an Automate flow through ADB
https://groups.google.com/g/automate-user/c/IPmrJ4HjXwk?pli=1 https://www.reddit.com/r/AutomateUser/comments/qqmpms/how_can_i_start_a_flow_via_adb/
App link https://play.google.com/store/apps/details?id=com.llamalab.automate
App Documentation https://llamalab.com/automate/
I had to call another enter command