Usually, if you want to send ADB commands to your phone, you’ll connect it to your PC (either via Wi-Fi or a USB cable) and use the terminal. However, if you don’t have a computer nearby, it’s possible to run ADB commands on your Android phone—this is the easiest way I’ve found.
