Getting a list of active drivers on Android

左心房为你撑大大i 提交于 2020-01-15 02:57:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!