Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to write drivers for Android? [closed]

Tags:

I have been trying to know about android driver development. I know driver development is not an easy job but I'd like to learn. Is there any tutorials for that or any simple examples??

like image 700
Ashok Jeev Avatar asked Feb 10 '11 04:02

Ashok Jeev


People also ask

How many major drivers are there in Android?

There are three primary driver classifications that you will learn about in this article: GPS drivers, Human Input Device (HID) drivers, and sensor drivers.

What are drivers in Android?

User driver functionality in Android Things enables you to access and control peripheral hardware from the Android Things app. If there isn't an Android Things driver for your peripheral, we will develop it.

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.

Do Android use drivers?

Android does not have "device drivers". If you were to think of the entire Android ecosystem within your handset, split into 3/4, using the Java Programming language, the remaining 1/4 is the kernel written in C/Assembler. It is there within the kernel is where the drivers are embedded.


2 Answers

I'm assuming you mean drivers for the Linux kernel used by Android? I'm fairly sure most of the Android system interfaces with the Linux kernel to access hardware. For example, it relies on the framebuffer device for display, which is powered by a Linux framebuffer driver.

In this case, you need to root your device to get the proper privileges. Next, you need to determine the version of the Linux kernel, then obtain a copy of it.

There's a lot of documentations on kernel development, and plenty of code to look through, but it's not an easy task, and you probably won't want to do it. If you have all of the necessary knowledge of the hardware, it might be a possibility.

edit: Ah, here; this might help you a bit: http://source.android.com/porting/display_drivers.html (there should be more information on other drivers from there on.)

like image 136
John Chadwick Avatar answered Sep 19 '22 21:09

John Chadwick


What about following a linux recipe? http://www.freesoftwaremagazine.com/articles/drivers_linux

like image 21
mozillanerd Avatar answered Sep 20 '22 21:09

mozillanerd