tytydraco / LADB

A local ADB shell for Android!

Home Page:https://play.google.com/store/apps/details?id=com.draco.ladb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

not working on Samsung running OS12

ToysoftInc opened this issue · comments

I compiled the latest and installed on my S10 running OS12.
Paired and waiting over 2 minutes

libadb.so: no device with transport id '1'

Me too.

Device: Samsung Galaxy S20 Ultra with Android 12

Can confirm this is also happening on a Samsuns S20 FE 5G (SM-G781B/DS), Android 12 with Oct22 Patch

verified on s21 ultra, stuck at connection

@tytydraco when I've done pair and later connect, currently is not connected. This is my ADB log, inside device. If I've paired the device, close and kill the app and rerun again, it connects and let me run commands.

--- adb starting (pid 5822) ---
adb I 11-17 10:23:38 5822 5822 main.cpp:63] Android Debug Bridge version 1.0.41
adb I 11-17 10:23:38 5822 5822 main.cpp:63] Version 33.0.3-vanzdobz@gmail.com
adb I 11-17 10:23:38 5822 5822 main.cpp:63] Installed as /data/app/~~2fsz5NMRY6J0bfWN-CNxLA==/es.sia.siaadb.app-x6JuA4h8IK3zyPzirH5wVA==/lib/arm64/libadb.so
adb I 11-17 10:23:38 5822 5822 main.cpp:63]
adb I 11-17 10:23:38 5822 5822 auth.cpp:417] adb_auth_init...
adb I 11-17 10:23:38 5822 5822 auth.cpp:220] User key '/data/user/0/es.sia.siaadb.app/files/.android/adbkey' does not exist...
adb I 11-17 10:23:38 5822 5822 auth.cpp:64] generate_key(/data/user/0/es.sia.siaadb.app/files/.android/adbkey)...
adb I 11-17 10:23:38 5822 5822 auth.cpp:152] loaded new key from '/data/user/0/es.sia.siaadb.app/files/.android/adbkey' with fingerprint 48D3AEEEE5207C9FDC524DA028894839AED370BBC0AF174E41F504C00D3A3E4D
adb I 11-17 10:23:38 5822 5822 auth.cpp:392] adb_auth_inotify_init...
adb I 11-17 10:23:38 5822 5822 adb_wifi.cpp:105] Known hosts file [/data/user/0/es.sia.siaadb.app/files/.android/adb_known_hosts.pb] does not exist...
adb I 11-17 10:23:38 5822 5822 mdnsresponder_client.cpp:141] service_name=adb-R5CN315AH2B-qJ5bln not in keystore
adb I 11-17 10:23:38 5822 5822 adb_wifi.cpp:105] Known hosts file [/data/user/0/es.sia.siaadb.app/files/.android/adb_known_hosts.pb] does not exist...
adb I 11-17 10:23:38 5822 5822 mdnsresponder_client.cpp:141] service_name=adb-R5CN315AH2B-qJ5bln (2) not in keystore
adb I 11-17 10:23:38 5822 5831 tls_connection.cpp:87] [client]: Initializing adbwifi TlsConnection
adb I 11-17 10:23:38 5822 5831 tls_connection.cpp:213] [client]: Starting adbwifi tls handshake
adb I 11-17 10:23:38 5822 5831 tls_connection.cpp:300] [client]: Handshake succeeded.
adb I 11-17 10:23:38 5822 5830 adb_wifi.cpp:105] Known hosts file [/data/user/0/es.sia.siaadb.app/files/.android/adb_known_hosts.pb] does not exist...
adb I 11-17 10:23:38 5822 5830 adb_wifi.cpp:80] Failed to rename /data/user/0/es.sia.siaadb.app/files/.android/adb_known_hosts.pb: No such file or directory
adb W 11-17 10:23:38 5822 5830 network.cpp:149] failed to connect to '192.168.1.121:38455': Connection refused
adb I 11-17 10:23:45 5822 5822 mdnsresponder_client.cpp:141] service_name=adb-R5CN315AH2B-qJ5bln (2) not in keystore
adb I 11-17 10:23:45 5822 5844 transport.cpp:335] localhost:39287: read thread spawning
adb I 11-17 10:23:45 5822 5845 transport.cpp:307] localhost:39287: write thread spawning
adb I 11-17 10:23:45 5822 5844 transport.cpp:354] localhost:39287: Received STLS packet. Stopping read thread.
adb I 11-17 10:23:45 5822 5848 auth.cpp:491] t->auth_key not set before handshake
adb I 11-17 10:23:45 5822 5848 transport.cpp:1706] fetching keys for transport localhost:39287
adb I 11-17 10:23:45 5822 5848 auth.cpp:496] Attempting to TLS handshake
adb I 11-17 10:23:45 5822 5848 tls_connection.cpp:87] [client]: Initializing adbwifi TlsConnection
adb I 11-17 10:23:45 5822 5848 tls_connection.cpp:213] [client]: Starting adbwifi tls handshake
adb I 11-17 10:23:45 5822 5848 auth.cpp:514] adb_tls_set_certificate
adb I 11-17 10:23:45 5822 5848 auth.cpp:534] Checking for fingerprint match [48D3AEEEE5207C9FDC524DA028894839AED370BBC0AF174E41F504C00D3A3E4D]
adb I 11-17 10:23:45 5822 5848 auth.cpp:543] Got SHA256 match on a key
adb I 11-17 10:23:45 5822 5848 tls_connection.cpp:300] [client]: Handshake succeeded.
adb I 11-17 10:23:45 5822 5848 auth.cpp:499] Handshake succeeded. Waiting for CNXN packet...
adb I 11-17 10:23:45 5822 5851 transport.cpp:335] localhost:39287: read thread spawning
adb I 11-17 10:23:45 5822 5822 adb.cpp:172] localhost:39287: already offline

@victorjaviermartin Thank you for bringing this issue to my attention. So it seems that killing the server and starting it again may broadcast to the newly paired device! Let me push an update that does that after the pair. Or, I can try pushing it to a beta branch on the Play Store.

Also, is this reproducible? As in if you undo everything and try the same thing with the fix of restarting the app, does it work? Because that would be a major breakthrough.

Does it even work with the official desktop adb?

I'll try debugging with your suggestions @tytydraco and @sharpordie, sorry for the delay.

adb start-server goes freezing, the only commnand that I can run to wake up adb was adb connect localhost:ADBport

I think that the pair process is not done correctly. Unfortunately, my samsung s20 ultra has updated this night to android 13, and now I don't have permission to explore Device File Explorer of Android Studio.

It's frustrating. Thank you @tytydraco

Could those who have a problem try using the .so files (all of them) from adb_tool and test if the pair command is working with their devices? I find it strange that it needs several .so files for arm64-v8a but not for armeabi-v7a.

I will try it and say something.

Same result @sharpordie @tytydraco

I've noticed that if I do a pair process, and a connect (when it connects). The send of commands gives me timeouts.

But! If I do a complete restart of the app, I achieve the connection and the send of commands fast.

I don't know why is this happening.

  1. PAIR+CONNECT = FAILURE
  2. PAIR+CONNECT+RESTART APP = OK

Same result @sharpordie @tytydraco

I've noticed that if I do a pair process, and a connect (when it connects). The send of commands gives me timeouts.

But! If I do a complete restart of the app, I achieve the connection and the send of commands fast.

I don't know why is this happening.

1. PAIR+CONNECT = FAILURE

2. PAIR+CONNECT+RESTART APP = OK

Super easy then, we will have the adb server restart after connect.

@tytydraco This step 1. in connect gives connection refused 95% of times :(.

Doing a pair command, connect command (that refuses) and later kill-server, doens't work. :(

I'm sad, fucking samsung

Tested in Samsung S20 Ultra with Android 13 and have the same result :(

Same here. Used to work with Android 11 OneUI Core 3.1 but doesn't work on Android 12 OneUI Core 4.1 on my Samsung A03.

Same on Realme (RUI 3.0, Android 12). The first time you connect, "no device with transport id 1" pops up, you can't connect in any way. At the same time, the application previously worked on the same device on Android 12. I suspect that the reason is to update the system (security patches).

Same here. Used to work with Android 11 OneUI Core 3.1 but doesn't work on Android 12 OneUI Core 4.1 on my Samsung A03.

Edit: still broke with OneUI 5.0 Android 13 on same device

@Maximoff
I seem to have sorted out this problem! You need to allow the program to work in the background, after that everything was successfully connected. Also, I would advise disabling traffic saving in the background.

@Maximoff
I seem to have sorted out this problem! You need to allow the program to work in the background, after that everything was successfully connected. Also, I would advise disabling traffic saving in the background.

Does that work on Android 13?

@hyperio546 I don't know, I still have Android 12.

@hyperio546 I don't know, I still have Android 12.

I had Android 12, but then I upgraded to Android 13 and it's still broke. I really think @tytydraco should do something about this.

Update guys: Downgrading to version 2.0 works on OneUI 5 for me. @tytydraco please take a look. v2.1 is broken. Atleast now I can use adb.

Update guys: Downgrading to version 2.0 works on OneUI 5 for me. @tytydraco please take a look. v2.1 is broken. Atleast now I can use adb.

Hi, I have tried it on a samsung sm-g988b with android 13 and oneui 5 and 5.1 and I have not been able to get it to connect every time. In the case of connecting I am not able to use it in a stable way, it freezes and stops responding. As far as I have understood, it's a multicast problem in samsung with the ndsmanager that manages the randomization of the sockets of the adb ports with tcp.

I am lost with this issue

Update guys: Downgrading to version 2.0 works on OneUI 5 for me. @tytydraco please take a look. v2.1 is broken. Atleast now I can use adb.

Hi, I have tried it on a samsung sm-g988b with android 13 and oneui 5 and 5.1 and I have not been able to get it to connect every time. In the case of connecting I am not able to use it in a stable way, it freezes and stops responding. As far as I have understood, it's a multicast problem in samsung with the ndsmanager that manages the randomization of the sockets of the adb ports with tcp.

I am lost with this issue

Something is up

Did you try with the latest Android SDK Platform-Tools (34.0.0)?

commented

@tytydraco any improvement on this issue? :)