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
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
netstat and the lldb-server had bound to all addresses(
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.
gdbserver everything worked perfectly. I have tried installing
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
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.
Installed ubuntu focal and still got same results on lldb 10.0.0.