Binder context Manager

480 views
Skip to first unread message

Nitin Mahajan

unread,
Sep 17, 2011, 7:58:32 AM9/17/11
to android-...@googlegroups.com
Hello,

I was trying to understand some Android internals and have a question
in this regard.

What does it mean for a process to be a "Context Manager" for Binder?

Or What exactly service manager is telling by saying "I am the Context
Manager" ?

What sort of a context management is happening here?

regards
-Nitin

Nigel Sheridan-Smith

unread,
Sep 18, 2011, 12:24:11 AM9/18/11
to android-...@googlegroups.com
Service manager is a "naming" service. It allows services to register themselves and other processes to find those services.

The "context manager" I presume is that the service manager is "singular" - there can only be one naming service.

Cheers,

Nigel



--
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.


Liu Xin

unread,
Sep 18, 2011, 8:32:30 AM9/18/11
to android-...@googlegroups.com
libbinder derives from Dianne's binder library, many concepts can be learned from the document of openBinder. it's a COM-like object model. android uses it as service facility.
to understand binder mechnism, you shall read the source code of libbinder and binder.c in kernel.

On Sat, Sep 17, 2011 at 7:58 PM, Nitin Mahajan <np.ma...@gmail.com> wrote:
Hello,

I was trying to understand some Android internals and have a question
in this regard.

What does it mean for a process to be a "Context Manager" for Binder?

Or What exactly service manager is telling by saying "I am the Context
Manager" ?

ctx_mgr doesn't matter in user-spacer. serviceManager just tells kernel that i'm (this process) service manager.
kernel will do some clean-ups and sanity-checking.

thanks,
--lx

What sort of a context management is happening here?

regards
-Nitin
Reply all
Reply to author
Forward
0 new messages