I have a character devices file, say /dev/X and I would like to capture every interaction which goes in and out of /dev/X.

I'm looking for a way to create some kind of MITM/Proxy to that file.


Regarding what X is, it is FM interface over android. So /dev/fm is the character device file.

The end goal is to intercept any command that is sent to this file.

  • 1
    What kind of character device? Is it a (possibly emulated) serial line, a pty, ... If you know the specifics it helps a lot. You can add the additional information right in the question. Mar 17, 2021 at 18:06
  • @EduardoTrápani Hi, thanks for the response, I have edited my question. Mar 17, 2021 at 18:21


You must log in to answer this question.