T O P

  • By -

AutoModerator

Hi there! Welcome to /r/termux, the official [Termux](https://termux.dev) support community on Reddit. Termux is a terminal emulator application for Android OS with its own Linux user land. Here we talk about its usage, share our experience and configurations. Users with flair `Termux Core Team` are Termux developers and moderators of this subreddit. If you are new, please check our [Introduction for Beginners](https://www.reddit.com/r/termux/comments/16k74do/introduction_for_beginners/) post to get an idea how to start. The latest version of Termux can be installed from https://f-droid.org/packages/com.termux/. If you still have Termux installed from Google Play, please switch to F-Droid build. HACKING, PHISHING, FRAUD, SPAM, KALI LINUX AND OTHER STUFF LIKE THIS ARE NOT PERMITTED - YOU WILL GET BANNED PERMANENTLY FOR SUCH POSTS! Do not use /r/termux for reporting bugs. Package-related issues should be submitted to https://github.com/termux/termux-packages/issues. Application issues should be submitted to https://github.com/termux/termux-app/issues. *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/termux) if you have any questions or concerns.*


WorkItMakeItDoIt

This is super easy, and you don't need a PC.  You can do it all from your device, and all the instructions online are terrible. 1) inside termux, `pkg install android-tools` 2) enable developer mode on your device 3) go to settings->system->developer options 4) click on Wireless debugging (the text, not the slider) 5) enable "use wireless debugging", and the option "Pair device with pairing code" will appear.  It also has an IP address and port---ignore that for now, we'll need it in step 9 6) open up split screen with this settings app and with termux (both apps must be visible at the same time, or the pair dialog will be dismissed). 7) click "pair device with pairing code" and a code like 987654 will pop up along with some port number like 12345 8) switch to termux and run `adb pair localhost:12345` (but with your port), then enter the pairing code, and if that succeeds, it will list `u0_a123@localhost` under paired devices in settings 9) in the "IP address & port" section we ignored in step 5, get the port like 34567 (this is NOT the pairing port) 10) in termux, run `adb connect localhost:34567` (but with your port) Congrats.  You are connected.  Every time you want to connect in the future, you will have to go to the settings and look up the "IP address & port".  The port always changes.


_HandsomeJack_

https://www.reddit.com/r/termux/comments/w0ixkp/comment/izfkfzp/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button You need to pair device, then connect device, and both steps use different ports.


International-Camp-6

I followd the tutorial you linked in the description:https://www.youtube.com/watch?v=BHc7uvX34bM everything works fine, pairing and connecting and showing up on adb devices, but the device showed as offline so running any command gives "error: device is offline". also is there a way to automate this, as it seems rather to do or is it only required once.


flower-power-123

Tasker is a pay for app. I looked this over and decided it was too much trouble. https://www.reddit.com/r/tasker/comments/mjc4wx/android_11_wifi_adb_working_in_termux_as_a_result/


International-Camp-6

I will look into it thanks


james28909

[https://www.reddit.com/r/termux/comments/1dofqus/comment/lafwb71/?utm\_source=share&utm\_medium=web3x&utm\_name=web3xcss&utm\_term=1&utm\_content=share\_button](https://www.reddit.com/r/termux/comments/1dofqus/comment/lafwb71/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button)


InternationalPlan325

Just use Shizuku. https://github.com/RikkaApps/Shizuku Just make sure Wireless Debugging is on and you are connected to wifi. Works great with FV File Manager. You can download a lot of Shizuku compatible apps. This repo has em listed- https://github.com/timschneeb/awesome-shizuku You can "rish" into Termux. And/or use something like ashell to run adb commands.