Getting a list of active drivers on Android
Asked Answered
M

1

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.

Miter answered 9/7, 2012 at 13:28 Comment(2)
What about sysfs? /sys/module may contain built-ins.Stephainestephan
@BrianCain: That worked! If you post this as an answer, I will accept it.Miter
S
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
Stephainestephan answered 9/7, 2012 at 13:37 Comment(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.Miter

© 2022 - 2024 — McMap. All rights reserved.