3

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.

Community
  • 1
  • 1
Chinmay Kanchi
  • 62,729
  • 22
  • 87
  • 114

1 Answers1

6

/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
Brian Cain
  • 14,403
  • 3
  • 50
  • 88
  • 1
    I was hoping for something using the `proc` filesystem, but sadly, this file doesn't appear to exist on my device (Samsung Galaxy Note). +1 anyway as this may be useful in the future. – Chinmay Kanchi Jul 09 '12 at 13:41