nohajc / termux-adb

Run adb in Termux without root permissions!
MIT License
311 stars 32 forks source link

How to use wifi adapter using otg on termux? #20

Closed Abyss-17 closed 8 months ago

Abyss-17 commented 8 months ago

I am currently using the latest version of this software.

I am seeking for some help as i don't know how to use it . I want to use a wifi adapter on termux using otg . My phone is non-rooted.

Thanks for your assistance

nohajc commented 8 months ago

I'm not sure I understand what you're trying to achieve. Termux-adb lets you connect from one Android device to another via USB using the adb protocol (i.e. one phone runs the adb server, it can enumerate all connected Android devices and attach to their shell, install apps, show logs, etc.).

There's also adb over Wi-Fi (or any LAN in general) that can be enabled in developer settings (it reverts on each boot though). This one you can use with normal adb without root.

Are you connecting a USB Wi-Fi adapter to your device? Even if Termux could see it (thanks to termux-usb which is also used by termux-adb under the hood), I doubt you could use it as a network interface if Android itself doesn't detect it. That would require kernel-level support.

Basically, termux-adb only works because adb is implemented entirely in user space.