Android HAL.

54 views
Skip to first unread message

Atul

unread,
Aug 3, 2010, 1:35:20 AM8/3/10
to android-platform
Hi, I am trying to understand more about the HAL layer in Android. So
far the information I could get is too fragmented, ambiguous and in-
sufficient. Especially, if I want to add a new device (say a new type
I/O device), what changes/additions I should do apart from writing the
device driver? Where these changes should be done? This sort of clear-
cut and easily accessible document is missing. (Well, I found a
chinese slide-set which seems to be explaining this, but as a English-
speaking developer, it is useless to me).

Does someone know if there exists any resource where such information
is available (in English)? Can someone share his/her experience
dealing with HAL in Android?

Thanks,
Atul.

saminath sanjai

unread,
Aug 3, 2010, 12:48:36 PM8/3/10
to android-...@googlegroups.com
Hi Atul,
           
The control flow in android is like Java-> JNI->CPP->C and C calls the Kernel Driver by the system calls.

i followed the below docs for the complete application development
http://www.aton.com/android-native-libraries-for-java-applications/

I developed the LED driver in Kernel and Invoked from Android Java Application (apk).


saminath.



--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.


liuyu

unread,
Aug 3, 2010, 9:15:28 PM8/3/10
to android-platform
Hello, Atul,
I don't have any resource on this either, but I'm interested in the
Chinese slide-set which you mentioned. Can you share it with us?

김태연

unread,
Aug 4, 2010, 8:03:57 AM8/4/10
to android-...@googlegroups.com
Dear, Atul.

I was worry about it like you.

First, I found the writer who made that slides and visited his blog.
( http://www.jollen.org/blog/2009/10/android-hal-status-report.html )

Second, I used the "google transalator". It supports to translate Chiness to English. It's not bad I thought.
( http://translate.google.co.kr/m/translate )

He posted eight articles that included about LED stub, hw_module_t, and hw_device_t.

Good Luck.

Android Framework Researcher
Edward Kim.


2010. 8. 3. 오후 2:35 Atul <sow...@gmail.com> 작성:

김태연

unread,
Aug 4, 2010, 8:09:48 AM8/4/10
to android-...@googlegroups.com, android-...@googlegroups.com
Dear, All.


I was worry about it like you.

First, I found the writer who made that slides and visited his blog. 
http://www.jollen.org/blog/2009/10/android-hal-status-report.html )

Second, I used the "google transalator". It supports to translate Chiness to English. It's not bad I thought.
http://translate.google.co.kr/m/translate )

He posted eight articles that included about LED stub, hw_module_t, and hw_device_t.

Good Luck.

Android Framework Researcher
Edward Kim.


2010. 8. 4. 오전 1:48 saminath sanjai <samina...@gmail.com> 작성:

Atul

unread,
Aug 4, 2010, 8:31:59 AM8/4/10
to android-platform
Dear all,

Thank you very much for your help! I found it useful.

Hi liuyu, I was talking about the same links that Edward Kim has
kindly posted.

Warm regards,
Atul.

On Aug 4, 5:09 pm, 김태연 <agile.e...@gmail.com> wrote:
> Dear, All.
>
> I was worry about it like you.
>
> First, I found the writer who made that slides and visited his blog.
> (http://www.jollen.org/blog/2009/10/android-hal-status-report.html)
>
> Second, I used the "google transalator". It supports to translate Chiness to English. It's not bad I thought.
> (http://translate.google.co.kr/m/translate)
>
> He posted eight articles that included about LED stub, hw_module_t, and hw_device_t.
>
> Good Luck.
>
> Android Framework Researcher
> Edward Kim.
>
> 2010. 8. 4. 오전 1:48 saminath sanjai <saminathm...@gmail.com> 작성:
>
> > Hi Atul,
>
> > The control flow in android is like Java-> JNI->CPP->C and C calls the Kernel Driver by the system calls.
>
> > i followed the below docs for the complete application development
> >http://www.aton.com/android-native-libraries-for-java-applications/
>
> > I developed the LED driver in Kernel and Invoked from Android Java Application (apk).
>
> > saminath.
>
> > On Mon, Aug 2, 2010 at 10:35 PM, Atul <sow...@gmail.com> wrote:
> > Hi, I am trying to understand more about the HAL layer in Android. So
> > far the information I could get is too fragmented, ambiguous and in-
> > sufficient. Especially, if I want to add a new device (say a new type
> > I/O device), what changes/additions I should do apart from writing the
> > device driver? Where these changes should be done? This sort of clear-
> > cut and easily accessible document is missing. (Well, I found a
> > chinese slide-set which seems to be explaining this, but as a English-
> > speaking developer, it is useless to me).
>
> > Does someone know if there exists any resource where such information
> > is available (in English)? Can someone share his/her experience
> > dealing with HAL in Android?
>
> > Thanks,
> > Atul.
>
> > --
> > You received this message because you are subscribed to the Google Groups "android-platform" group.
> > To post to this group, send email to android-...@googlegroups.com.
> > To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/android-platform?hl=en.

liuyu

unread,
Aug 4, 2010, 9:10:11 PM8/4/10
to android-platform
Hello, Atul.
OK, I got it. Thanks a lot.
Reply all
Reply to author
Forward
0 new messages