Hi guys 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??
[Q] How to write drivers for Android
Ashok,
Writing android drivers is no different then writing drivers for linux. In fact many linux drivers would simply just work on the android.
Here is a little reading list for you if you want to find out more about linux driver development:
http://kernelnewbies.org/New_Kernel_Hacking_HOWTO
http://www.ibm.com/developerworks/linux/library/l-linux-kernel/?
http://www.amazon.com/gp/product/0596100795
http://www.amazon.com/Linux-Device-Drivers-Jonathan-Corbet/dp/0596005903
Hope this helps
thanks for the tutorials and the book suggestions I appreciate the help.
If you are familiar with Linux kernel and Linux based development then it will not that tough for you since Android uses modified version of Linux kernel. For tutorial source for Android kernel go to:
http://android.git.kernel.org/
Please use the Q&A Forum for questions Thanks
Moving to Q&A
Memsgr religious
Mr.Wrong said:
If you are familiar with Linux kernel and Linux based development then it will not that tough for you since Android uses modified version of Linux kernel. For tutorial source for Android kernel go to:
Hello, sorry for raising the dead, but this topic is rare.
I have a project where I basically need to write a mouse cursor driver. Would you have any specific information on how the mouse is actually drawn on the system level, as in between activities/programs/windows/etc. ? And would it be possible to include this as part of an app, so that it can be downloaded by an average user? (not as vital)
Click to expand...
Click to collapse
Related
I am new in XDA developer forum. I knew java and android at the immediate level. Now I'm interested in creating my own Android smartphone ROM. After searching in google, I see that there are a thing which is called "Default ROM" released by google. Base on this ROM, different companies created different ROM in their own style such as Sense, Motoblur, TouchWiz, etc.
So where could I download such a default ROM, and how could I begin with ROM developer. It is kind from my if anybody could give me a tutorial.
(Sorry if the question is exist in the forum, because I could not find it)
Thanks a lot.
Best regards,
me too, i have the same question, can someone help? thx
Your best bet is to have a look at compiling the aosp from source which you will need a Linux os for. The android sdk is a good place to start.
zelendel said:
Your best bet is to have a look at compiling the aosp from source which you will need a Linux os for. The android sdk is a good place to start.
Click to expand...
Click to collapse
Also are there no different way but Linux OS?
I still have the Android SDK, but do not know how to begin to custom a ROM via code.
Regards,
detno29 said:
Also are there no different way but Linux OS?
I still have the Android SDK, but do not know how to begin to custom a ROM via code.
Regards,
Click to expand...
Click to collapse
Yes to build android from Google's source you will have to have a Linux os. Either stand alone Linux or a version like ubuntu
zelendel said:
Yes to build android from Google's source you will have to have a Linux os. Either stand alone Linux or a version like ubuntu
Click to expand...
Click to collapse
In your experience, which linux os should i used. I m also a bit confuse because i did not have to much experience with linux...
detno29 said:
In your experience, which linux os should i used. I m also a bit confuse because i did not have to much experience with linux...
Click to expand...
Click to collapse
Me too, trying to learn. Just installed dual boot Ubuntu 10.1 to my comp and trying to figure it out. Big change coming from win7. Ubuntu 11 I couldn't figure out
Sent from my Desire HD using xda premium
One place you can start by checking and has a lot of good info is http://freeyourandroid.com/
I learned how to port from them although I still need to ask questions but it can get you started.
If you just want to get Ubunto going in a virtual machine for now and have NO IDEA take a look at this: http://theunlockr.com/2010/03/26/ho...om-for-android-part-1-setting-up-the-kitchen/
Old release links but Ubunto will update itself
Hello,
first of all - I really used the Search function (for nearly a day) but I could not find any information that really helps me
second - sorry for my poor english, I am always on improving it
third - I already know some programming languages (C, Java, Perl, Python, a bit C++, ...), I already did some android app development and I have some knowledge of Linux internals (did some driver dev).
For my master thesis I have to tinker around with Android, the Linux Android Kernel and probably with the Dalvik VM. So I need as much information about Android internals (API internals, where information e.g. the telephone book are stored, Dalvik, architecture, ...) well and where better to start then here on xda.
So I wanted to ask if someone could provide me with information (papers, blogs, books, xda posts, ...) about how to start into rom development or android internal stuff. Of course I already downloaded the source still some additional information would be great.
Thx a lot - even if you just read my post
First you need Linux installed. I wouldnt recommend using linux on a virtual box for this, since you can have USB problems.
Go to this site: http://source.android.com/source/initializing.html
Read it through and perform every step all the way to the bottom, at the bottom it tells you to go to the next section which is where you download the source.
Basically, when you create a ROM, you have the android operating system, and the kernal for your device. Dont use any random kernel, you could potentially brick your device as I did with my Samsung Galaxy S II Skyrocket (they had to replace some board in the phone to get it to turn on again).
Thx a lot for this information. Does someone knows if there is some documentation of the Android Source ??
Thx
Hi.
I'm a java developer who wants to start to develop and learn cyanongenMod and AOSP. Start by saying that I have a good knowledge of Java and Android development but little knowledge of programming and debugging in C / C ++
I have readed all the documents from AOSP sites and following the guide found on source.android.com.I was able to setup Eclipse for all the Java applications
Pros: I can study the whole Java nature of Android and Cyanogenmod, using eclipse as a "code browser"
Cons; unable to edit the layout.xml (for example) and unable to use the Android feature of an eclipse project
It could be nice for Java developing, but for the others projects and OS parts there isn't a "IDE setup guide". I am a little bit confused about how the general development workflow goes. The build procedures for every device found at CM wiki are great but...after that?
How to develop, modify and debug a single Java Application on a real device?
How to develop, modify and debug a c/c++ driver or patch for a real device?
If I want to work only on a single Java application, I can't import it in Eclipse. If I want to debug on a real device (for example, the photosphere feature in Samsung Galaxy Tab 10.1 does not work), I can't setup a debug environment.
Where I can find a good guide-site-tutorial ?
I use this link whenever I get a new computer etc. This not only explains what to do but has all the download links and more. Good luck!
http://www.makeuseof.com/tag/write-google-android-application/
Sent from my Nexus 4 using xda premium
mellowdev said:
I use this link whenever I get a new computer etc. This not only explains what to do but has all the download links and more. Good luck!
Click to expand...
Click to collapse
My question is not about developing android application, but about developing android operating system. I find a lot of articles on makeuseof.org about installing cyanogenmod, for example. But no articles about developing cyanogenmod
sarbyn said:
My question is not about developing android application, but about developing android operating system. I find a lot of articles on makeuseof.org about installing cyanogenmod, for example. But no articles about developing cyanogenmod
Click to expand...
Click to collapse
Sorry but I think that is impossible that no CyanogenMod dev reads XDA forum.
If a noob want to find guide and tutorial and start develop for AOSP o CyanogenMod, where he can ask for help?
Ask from a dev in free xperia project. They develop cyanogenmod
I'm trying to get into development of custom ROM's and whatnot and am following CM's build guide, however I've read numerous people attest to using a distribution of Linux for all development.
I do a little Java and c++ development as I study Software Engineering and to be honest considering Mac is UNIX also, I've never found any difference between me using my MBP or running one of the many linux distro's i've experimented with.
I was just wondering if anyone can actually give some valid reasons and justifications for all the people who state that it's almost a -must- to develop on 64-bit linux installation.
I know this question has probably been asked before but I've been searching and can't find any non-flamey posts.
Cheers!
Developing on Linux isn't a MUST, but I highly recommend it. With Linux you can set up servers to test connectivity with ease, and there is a plethora of built in support for Linux on distributions like Ubuntu. Different distributions, such as Kali (formerly BackTrack) are good for hacking and stuff. Simply using 'sudo apt-get install' you can get amazing tools to help you out.
Blog: http//konvey.blogspot.com | Sent from the Nokia 3310
vyper91 said:
I'm trying to get into development of custom ROM's and whatnot and am following CM's build guide, however I've read numerous people attest to using a distribution of Linux for all development.
I do a little Java and c++ development as I study Software Engineering and to be honest considering Mac is UNIX also, I've never found any difference between me using my MBP or running one of the many linux distro's i've experimented with.
I was just wondering if anyone can actually give some valid reasons and justifications for all the people who state that it's almost a -must- to develop on 64-bit linux installation.
I know this question has probably been asked before but I've been searching and can't find any non-flamey posts.
Cheers!
Click to expand...
Click to collapse
the only reason is that as most android developers work from linux so they have built most tools for that platform, on other platforms you'll find only the most rudimentary tools.
so you can do the same on mac or windows or beos if you want but you'll have to create all the missing tools by yourself probably.
hey im new here....can anyone tell me which linux is best for android development and how to configure it........
ci9her said:
hey im new here....can anyone tell me which linux is best for android development and how to configure it........
Click to expand...
Click to collapse
Hi there. Depends on how familiar you are with Linux. If you are just beginning, then I suggest Ubuntu as it is the most popular distro and the one that most of the How-To Build Guides are written for. If you plan on developing anything newer than GB, then it's recommended to install the 64 bit version. You CAN build some ICS and JB versions on 32, but more of a pain than it's worth since the compiler is written in 64 bit.
There are tons of guides for beginners here - including Stickies at the top of this particular forum. If you search, you'll even find semi-automated scripts and such to set up the build environment for you.