Search code examples
androidlinuxdrivers

Getting a list of active drivers on Android


Is there a straightforward way of getting a list of drivers that are currently being used on an Android device? lsmod lists a small number of drivers (3), but I'm guessing that most of the drivers are compiled into the kernel rather than as modules.

Obviously, things like make menuconfig have no chance of working due to the lack of a development tools on the device itself. I could download the kernel sources, but I'm hoping to avoid installing a whole cross-compilation toolchain simply to satisfy my curiosity.

I'm aware of this question, but it doesn't really answer my question apart from pointing out why lsmod won't work in this case.


Solution

  • /proc/config.gz should tell you the same information that you would find out in make menuconfig.

    adb pull /proc/config.gz .
    zcat /proc/config.gz | less
    

    EDIT: Also consider browsing sysfs for the built-ins:

    ls -l /sys/module