If you are on Android 10 or below (for those with Android 11+ you can completely automate this process if you are connected to wifi, skip to here however this is less complicated).Enable USB debugging, install apps via USB and USB debugging (secure settings).įrom this point, the method differs a bit according to your Android version.Open developer options (google how to do it on your device if you don't how).Install Termux ( ) and Termux:Tasker ( ).Here we will be using Termux to run these commands.īig thanks to (who made the original method) and (from which I learned a lot about how to use Termux and adb with Termux). This thread is for those who need to run ADB commands on their devices locally and automatically, as well for those whose devices don't support ADB hack to do certains operations - for example enabling/disabling mobile data on Xiaomi.