hi all,
i'm hacking the android boot process.
as you known udev listen on netlink socket, where the kernel write the founded devices.
my target it's to sniff on that socket, waiting for a device.
i have to sniff and not to read, i need to known when that device it's the next that will be processed.
my final goal it's to replace the android /system block device with an hardlink.
how can i sniff on that socket ??
the socket it's created here:
https://github.com/android/platform_.../uevent.c#L107
i think that i have to find the pid of android ueventd process and then retrieve it's opened sockets.
after that i have to sniff on it....but how?
thanks in advance.
PS:
i posted in linux and not in android because i think that this question it's more about linux than android...
i need to sniff on a kernel<->process socket....don't matter if i'm on android or whatever.