How can I get a list of all the active kernel drivers on my Android system?. What is the equivelant of Linux "lsmod" in Android? I used adb shell and also opened my Android Terminal emulator app and did an "lsmod". I get some kind of a lame list of two items from my BSP. But it doesn't list all the drivers on my entire system that the Linux kernel has actively running.
In the Control Panel, search for and select "update device drivers". In the system Device Manager: Your Android device should be listed under Portable Devices. Locate and right-click your Android device, and select Update Software Driver.
To list all currently loaded modules in Linux, we can use the lsmod (list modules) command which reads the contents of /proc/modules like this.
Instead, use the modprobe command followed by the kernel module name. modprobe attempts to load the module from /lib/modules/<kernel-version>/kernel/drivers/ . This command will automatically check for module dependencies and load those drivers first before loading the specified module.
Standard Kernel Drivers Many Drivers come as part of the distribution's Kernel. Use Them. These Drivers are stored, as we saw, in the /lib/modules/ directory. Sometimes, the Module file name will imply about the type of Hardware it supports.
lsmod will not list all the active drivers in the kernel. lsmod is to list the kernel modules that are inserted now, they can be drivers or some other features. Basically, on embedded systems most of the drivers will not be built as modules, instead they are statically built into the kernel. To get to know all the drivers, you need to go through the /sys directory.
Doing an ls /sys/module/
on my Samsung Galaxy S3 running 4.1.1 Jelly bean, I get the following output
http://pastebin.com/2zF8RwvS
That is a list of all the built-in modules in my Kernel 3.0.31
Additionally, there are loadable modules, ls /system/lib/modules/
http://pastebin.com/G5KLC65V
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With