Unix domain socket抓包工具

1 socat
socat -t100 -x -v UNIX-LISTEN:/dev/socket/sock.socat,mode=777,reuseaddr,fork UNIX-CONNECT:/dev/socket/sock 2>/data/my_socket.log &

/dev/socket/sock is created by Android deamon
/dev/socket/sock.socat is created by socat
Framework or client APPs connect to /dev/socket/sock.socat

-t    wait seconds before closing second channel
-x     verbose data traffic, hexadecimal
-v     verbose data traffic, text

你可能感兴趣的:(Network)