-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: android-tools (adb) cannot connect to daemon #7946
Comments
@ian4hu, is it working for you? |
@elwaer-m it (31.0.3) works on my device like bellow.
I am not sure what your |
@elwaer-m In your screenshot I see a warning about You should find out is there any other app is listen on 5037. or the
you can try to start adb server manually by |
|
@elwaer-m thanks for your details. Could you please attach the full '/data/data/com.termux/files/usr/tmp/adb.11326.log' |
|
@elwaer-m It seems the adb server is stucked in start up
|
|
The error is from here.
Considering that Otherwise try restarting the device and see if that helps. |
Just to confirm, you checked this from pc, not from termux, right? Termux user cannot access processes started by other apps.
Have you previously used Maybe try an alternative port for So try |
i have not checking it from a pc sorry, i dont have access to one
the older version of
|
I guess you are back to #7946 (comment). Does Did you try restarting phone? |
yes i did |
@elwaer-m Try a higher port number.
Like 50370 |
@ian4hu
|
Try to answer all asked questions instead of us repeating them. |
|
So if server is successfully started by |
@elwaer-m Post output for |
the output is too long my browser keeps crashing when i pasting it... |
Redirect command or store output in a file and upload that. |
That is not full output. Enter pairing code and press enter after it says
|
I got same errors. |
Same issue was found on my Samsung S21 (android 11, SM-G9910). |
It seems this bug is device-associated/rom-associated. I dont have a Samsung android phone, it would be difficult for me to get the root cause. |
I'm having the same issue on a Samsung S21. What I'm seeing is the following: When starting the adb server for the first time, everyting is fine:
I can then see that the server is running
When I now however run a adb command, adb tries to connect to the server and fails. Then tries to start the server again, which fails beacuse the server is arleady running:
I quickly checked with telnet if the server is actually listening on localhost:5037, and it is. So for whatever reason adb cant connect to the tcp port on Samsung phones. I found a workaround, you can tell adb to use a file as socket instead
|
@Paranoid-Dev |
@nathaneltitane Some quick googling leads me to the |
back to a very interesting situation: phone died while i was out this weekend, so it powered down. Attempting to make adb work, using the same exact steps I described last week do not function any more... Anyone experience dead adb after having it work? Edit: Suggestion: @agnostic-apollo @xeffyr could you guys have a look at what differes in your compiled binary and offer a version that runs on all platforms? |
I have a similar issue, running adb from pc works
termux-android does not work.
|
This issue/PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
* Following https://android.googlesource.com/platform/system/netd/+/master/client/FwmarkClient.cpp#33 and termux/termux-packages#7946 as reference. * Run adb under fakeroot to run it as kernel testing. This will fix adb usage for Samsung devices running Android 11 and Android 12. Signed-off-by: Mesquita <mesquita@aospa.co>
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as resolved.
This comment was marked as resolved.
does
work for you? |
also try then go to developer options and toggle on and off both debugging toggles (via usb and via wifi) then toggle on debugging wifi go to termux and connect via then, once paired to back to debugging wifi and close the pairing prompt look at the section connect via after connected, you should now see your device under |
Hi I also can't connect back to the same device on Termux using adb pair (and also in my proot-distro). No matter what I key in, I get Failed: Unable to start pairing client. |
adb works in termux in my phone since the beginning. Though, it does not work in one step.
step 1 and 2 are required for first time only. |
Problem description
when i trying to connect to adb i'm getting this error
this error has never happened to me before
What steps will reproduce the bug?
connecting with adb via wireless
What is the expected behavior?
No response
System information
termux-info:
The text was updated successfully, but these errors were encountered: