nohajc / termux-adb

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

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

Open TheOnlineUser opened 1 month ago

TheOnlineUser commented 1 month 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 1 month 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 1 month 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 1 month ago

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