Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get a list of all the active kernel drivers on my Android system?

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.

like image 650
Joe C Avatar asked Jan 17 '12 20:01

Joe C


People also ask

How do I find my drivers on Android?

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.

How do I list loaded kernel modules?

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.

Which command is used to check the current loaded kernel module in the Android?

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.

Where are kernel drivers stored?

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.


Video Answer


2 Answers

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.

like image 154
vkoppula Avatar answered Sep 28 '22 00:09

vkoppula


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

like image 23
Kevin Avatar answered Sep 27 '22 23:09

Kevin