facebookarchive / stetho

Stetho is a debug bridge for Android applications, enabling the powerful Chrome Developer Tools and much more.
http://facebook.github.io/stetho/
MIT License
12.66k stars 1.13k forks source link

Fix the way /proc/net/unix is being parsed #589

Closed aadsm closed 6 years ago

aadsm commented 6 years ago

dumpapp stopped working for me because /proc/net/unix has two spaces to separate state from inode when the inode length is less than the maximum inode length (123 vs 1234).

E.g.:

00000000: 00000002 00000000 00010000 0001 01 76292 /dev/socket/cryptd
00000000: 00000002 00000000 00010000 0001 01  3836 @stetho_com.facebook.wakizashi_devtools_remote

We should be parsing this with \s+ and not a simple space since the output date is a table that is formatted to look like columns in the print out.

I tested this by running dumpapp in a situation like the one mentioned above.