Skip to content Skip to sidebar Skip to footer

Usbmon For Android

I want to analyze usb communication out of my device: SGS4. I see everywhere that the usbmon is needed to be configured and compiled into the kernel. Afaik, this module is not bui

Solution 1:

I suppose you have access to:

  • the sources of the version of Linux currently running on your device. It could be available on Samsung repository if you haven't changed the ROM. Or some custom kernels if you use an alternative ROM (CyanogenMod, Clockwork, ...).
  • an ARM toolchain that is proven suited to compile this kernel.
  • the version of AOSP currently running on your device (e.g. 4.1.2). You need it to build the new boot.img out of the newly compiled kernel image zImage.

You need to enable CONFIG_USB_MON in linux:

$ make CROSS_COMPILE=your/armeabi/toolchain/path menuconfig

type / to search then enter USB_MON. The flag is located in:

-> Device Drivers
  -> USB support (USB_SUPPORT [=n])
    -> Support for Host-side USB (USB [=n])

Then rebuild:

$ make CROSS_COMPILE=your/armeabi/toolchain/path zImage

Then please readDocumentation/usb/usbmon.txt directly from your kernel sources. It should teach you everything you need to know.

Post a Comment for "Usbmon For Android"