问题
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.
回答1:
/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
来源:https://stackoverflow.com/questions/11396023/getting-a-list-of-active-drivers-on-android