prife / adb

Android's adb standalone build with cmake, support Linux(x86-64、arm64), Windows(32bit) and macOS!
GNU General Public License v3.0
68 stars 24 forks source link

adb connect fail #2

Open FourLeafTec opened 1 year ago

FourLeafTec commented 1 year ago

When connect to remote device ,i get an invalid pointer error after read_key_file

❯ adb connect frps:8555
* daemon not running; starting now at tcp:5037
ADB server didn't ACK
Full server startup log: /tmp/adb.1000.log
Server had pid: 618514
--- adb starting (pid 618514) ---
adb I 10-17 01:08:31 618514 618514 main.cpp:56] Android Debug Bridge version 1.0.40
adb I 10-17 01:08:31 618514 618514 main.cpp:56] Version 28.0.1-SOONG BUILD NUMBER PLACEHOLDER
adb I 10-17 01:08:31 618514 618514 main.cpp:56] Wetest branch:master rev:bfb2c9e+ tag:v1.0.40
adb I 10-17 01:08:31 618514 618514 main.cpp:56] Installed as /home/coder/android/platform-tools/adb
adb I 10-17 01:08:31 618514 618514 main.cpp:56] 
adb I 10-17 01:08:31 618514 618514 auth.cpp:421] adb_auth_init...
adb I 10-17 01:08:31 618514 618514 auth.cpp:174] read_key_file '/home/coder/.android/adbkey'...
free(): invalid pointer

* failed to start daemon
error: cannot connect to daemon

System: Debian 11 Arch: Arm64 GLIBC: 2.31

DevKiDMediaCreation commented 9 months ago

Did you restart the services?

DevKiDMediaCreation commented 9 months ago

Can I have the full log?

FourLeafTec commented 9 months ago

Sorry,it's long ago for me, the environment has been destory.

For my case.I use a server on cloud to develop an android app. Use frp as a proxy to connect the device. Maybe there is some strange for the chain.