[Android Software/Hacking General [Developers Only]] E:V:A:
Absolutely gold! Thank you so much!

BTW. Not sure it's necessary but did you also change this?

For everyone's information:

There are two other binaries in there as well: filan and procan .

[SIZE=2]
/ # filan -h
filan by Gerhard Rieger - see http://www.dest-unreach.org/socat/
Analyze file descriptors of the process
Usage:
filan [options]
options:
-?|-h print this help text
-d increase verbosity (use up to 4 times)
-i<fdnum> only analyze this fd
-n<fdnum> analyze all fds from 0 up to fdnum-1 (default: 1024)
-s simple output with just type and socket address or path
-f<filename> analyze file system entry
-T<seconds> wait before analyzing, useful to connect with debugger
-r raw output for time stamps and rdev
-L show symlink properties instead of following it
-o<filename> output goes to filename, that can be:
a regular file name, the output goes to that
+<filedes> , output goes to the file descriptor (which must be open writable)
the 3 special names stdin stdout and stderr

======================

/ # procan -h
procan by Gerhard Rieger - send bug reports to socat@dest-unreach.org
Analyze system parameters of process
Usage:
procan [options]
options:
-?|-h print a help text describing command line options
-c print values of compile time C defines
[/SIZE]

However, filan gives me the following error:

*** stack smashing detected ***: filan terminated

Not sure what's causing this. Also it lists FD's until then, but refuses afterwards. But doing "filan -i<FD>" works.

Here are the compile time C-defines:

[SIZE=2]/ # procan -c
#define FD_SETSIZE 1024
#define NFDBITS 32
#define O_RDONLY 0
#define O_WRONLY 1
#define O_RDWR 2
#define SHUT_RD 0
#define SHUT_WR 1
#define SHUT_RDWR 2
#define CRDLY 000000003000
#define CR0 000000000000
#define CR1 000000001000
#define CR2 000000002000
#define CR3 000000003000
#define TABDLY 000000014000
#define TAB0 000000000000
#define TAB1 000000004000
#define TAB2 000000010000
#define TAB3 000000014000
#define CSIZE 000000000060
#define TIOCEXCL 0x540c
#define FOPEN_MAX 16
#define PF_UNIX 1
#define PF_INET 2
#define PF_INET6 10
#define PF_APPLETALK 5
#define PF_PACKET 17
#define SOCK_STREAM 1
#define SOCK_DGRAM 2
#define SOCK_RAW 3
#define SOCK_SEQPACKET 5
#define SOCK_PACKET 10
#define IPPROTO_IP 0
#define IPPROTO_TCP 6
#define IPPROTO_UDP 17
#define IPPROTO_SCTP 132
#define IPPROTO_DCCP 33
#define SOL_SOCKET 0x1
#define SOL_PACKET 0x107
#define SOL_IP 0x0
#define SOL_IPV6 0x29
#define SOL_TCP 0x6
#define SO_REUSEADDR 2
[/SIZE]

And the feature information for socat:

[SIZE=2]features:
#define WITH_STDIO 1
#define WITH_FDNUM 1
#define WITH_FILE 1
#define WITH_CREAT 1
#define WITH_GOPEN 1
[B][COLOR=Red]#undef WITH_TERMIOS[/COLOR][/B]
#define WITH_PIPE 1
#define WITH_UNIX 1
#define WITH_ABSTRACT_UNIXSOCKET 1
#define WITH_IP4 1
#define WITH_IP6 1
#define WITH_RAWIP 1
#define WITH_GENERICSOCKET 1
#define WITH_INTERFACE 1
#define WITH_TCP 1
#define WITH_UDP 1
#define WITH_SCTP 1
#define WITH_LISTEN 1
#define WITH_SOCKS4 1
#define WITH_SOCKS4A 1
#define WITH_PROXY 1
#define WITH_SYSTEM 1
#define WITH_EXEC 1
[COLOR=Red][B]#undef WITH_READLINE[/B][/COLOR]
#define WITH_TUN 1
#define WITH_PTY 1
[COLOR=Red][B] #undef WITH_OPENSSL
#undef WITH_FIPS
#undef WITH_LIBWRAP[/B][/COLOR]
#define WITH_SYCLS 1
#define WITH_FILAN 1
#define WITH_RETRY 1
#define WITH_MSGLEVEL 0 /*debug*/
[/SIZE]

I haven't properly tried socat yet. I'll get back here if there are any problems.

Thanks again.