获取Android上的活动驱动程序列表 [英] Getting a list of active drivers on Android

查看:112
本文介绍了获取Android上的活动驱动程序列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种直接的方法来获取Android设备上当前正在使用的驱动程序列表? lsmod 列出了少量的驱动程序(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.

很明显,由于设备上缺少开发工具,诸如 make menuconfig 之类的东西无法工作本身。我可以下载内核源代码,但是我希望避免仅仅为了满足我的好奇心而安装整个交叉编译工具链。

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 '知道这个问题,但是除了指出为什么 lsmod 不起作用外,它并没有真正回答我的问题

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.

推荐答案

/proc/config.gz 应该告诉您可以在 make menuconfig 中找到相同的信息。

/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

编辑:还可以考虑浏览 sysfs 内置的:

Also consider browsing sysfs for the built-ins:

ls -l /sys/module

这篇关于获取Android上的活动驱动程序列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆