nohajc / termux-adb

Run adb in Termux without root permissions!
MIT License
391 stars 37 forks source link

How do you actually use this to run ADB commands? #24

Closed TheOnlineUser closed 3 months ago

TheOnlineUser commented 5 months ago

I followed the instructions on the main page, but I'm not able to actually use ADB.

Running "termux-adb" yields an error, so that doesn't seem like it's a real command.

Running "adb" prompts me to do pkg install android-tools. I did that, but then running adb devices doesn't detect my device (even with wireless debugging enabled).

This seems like it should be a pretty straightforward thing to do, unless this isn't meant to run ADB commands on your own device (in which case I'm puzzled about its use case). How can you actually get your own device to show up when running ADB?

nohajc commented 5 months ago

You are supposed to use the termux-adb command as an adb replacement.

Can you share the error message here? I need more information.

TheOnlineUser commented 5 months ago

Message:

CANNOT LINK EXECUTABLE "termux-adb": cannot locate symbol "_ZN6google8protobuf11MessageLite15ParseFromStringEN4absl12lts_2023080211string_viewE" referenced by "/data/data/com.termux/files/usr/bin/termux-adb"...

nohajc commented 5 months ago

Try to run pkg upgrade if you haven't done so already. Also if you could attach output of

Ncorror commented 3 months ago

Good day, Redmi 9T in adb mode detects the device, fastboot mode device not detected. How to solve this problem. And your utelite managed to unlock the bootloader and install twrp on poco x3 pro, but redmi 9t does not give in

nohajc commented 3 months ago

You can use the termux-usb -l command to see if your device is detected. If this gives you an empty response, it's an issue somewhere in your connected device, Android OS or Termux itself.

Ncorror commented 3 months ago

Вы можете использовать termux-usb -lкоманду That's right, from the dexp bl250 android 8.1 device, the redmi 9t device was detected in fastboot mode. The problem is most likely in the termux-api utility, which does not work correctly on the A11-14 oss rom. And thank you very much for making my dream come true, I have been waiting for a long time for a good person to take on this matter. Thank you

nohajc commented 3 months ago

@Ncorror I'm happy you find it useful. :)