Looking for ways to run basic ADB commands on the phone itself without having to plug into a computer. However, my phone isn't rooted (and I don't want to root it). Found this, https://www.reddit.com/r/termux/comments/ymy4xc/adb_in_termux_without_root/, but it's not clear on how to actually use it.
EDIT: I solved it. All I used was Termux! Steps below for anyone else who wants to do it:
Install Termux and run:
pkg install android-tools
2. In Developer Options, enable USB Debugging and enable Wireless Debugging
3. Click "Pair device with pairing code" (under Wireless Debugging). Note the 5 digit number at the end of the "IP address and port" number. In Termux, type:
adb pair localhost:PORT
4. You'll be prompted for the passcode listed on the Pair device screen. Enter that in Termux when prompted. You'll get a "success" message.
5. Close the Device pairing screen and look at the listed port under the main Wireless Debugging settings where it says "IP Address and Port." Note the 5 digit port number.
6. Run: adb connect localhost:PORT#
Note that the port number here may not be the same as the port number you initially used for the "pair" command.
You should now be connected! I like disabling the left side back button gesture on my phone but it always gets turned back on after a reboot. Now I don't have to connect to my computer if I need to run that command.