I currently don't have a pc. I have two rooted devices Arm64
host device with Debian rootfs and the device to be debugged which contains the lldb-server binary armv7
. I am trying to remote debug my android device using LLDB. I pulled the lldb-server
binary from android ndk24 and put it in /data/local/tmp
. Installed Debian sid on another term
and apt
installed lldb
.
I connected client device via wifi-hotspot (one with lldb-server
) using the host with the linux rootfs.
The commands I ran on server device
./data/local/tmp/lldb-server platform --listen "*:2000" --server
Checked using netstat
and the lldb-server had bound to all addresses(0.0.0.0:2000
)
On host(client lldb
) device in debian sid
terminal I ran:
apt install lldb
lldb
platform select remote-android
platform connect connect://192.168.201.132:2000
Then I got error failed connect port
.
However, using GDB
and gdbserver
everything worked perfectly. I have tried installing lldb
on debian buster
but same result and even ran the lldb-server
binary on the host(device with debian sid
) but same result. Right now I'm stuck here. How do I solve this?
Help will be greatly appreciated. Thank you.
Edit Here is output of telnet
root@localhost:~# telnet 192.168.43.1 2000
Trying 192.168.43.1...
Connected to 192.168.43.1.
Escape character is '^]'.
Connection closed by foreign host.
root@localhost:~# telnet 192.168.43.1 5555
Trying 192.168.43.1...
Connected to 192.168.43.1.
Escape character is '^]'.
Killed
root@localhost:~#
And heres same network output from lldb.
lldb) platform select remote-android
Platform: remote-android
Connected: no
(lldb) platform connect connect;//192.168.43.1:2000
error: Invalid URL: connect;//192.168.43.1:2000
(lldb) platform connect connect://192.168.43.1:2000
error: Failed to connect port
(lldb)
And now I dont really know the problem. Should i try installing on a different rootfs? Let me do that.
Edit 2
Installed ubuntu focal and still got same results on lldb 10.0.0.
netstat
output i found no established connection but listeners only.