The Binder class contains functions that let you query the identity of
the caller of an IPC.

e.g. 
http://android.git.kernel.org/?p=platform/packages/providers/DownloadProvider.git;a=blob;f=src/com/android/providers/downloads/DownloadProvider.java;h=0ce6b22beba9128b796ac1c5b4e19817ce5ac2ee;hb=HEAD#l388

JBQ

On Wed, Jul 15, 2009 at 2:34 PM, Mike Lissner<[email protected]> wrote:
>
> Not sure how to phrase this, but I am trying to make some changes to
> the Location framework so that it will generate a log when third party
> applications use it.
>
> A stumbling block I am having is how to determine which application is
> calling the API.
>
> For example, there is a method called getSpeed() in the Location
> class. Whenever this method is called, I'd like to generate a database
> entry that says something like:
>
> "getSpeed() method called by XXX application."
>
> The problem is, I can't figure out how to determine what XXX is. Does
> anybody have any suggestion about this? Without this field, my project
> may be sunk.
>
> Thanks,
>
> Mike
>
> PS - this is for the project I outlined in this thread a few days ago:
> http://groups.google.com/group/android-platform/msg/cb903b4c83a9c97c
>
> >
>



-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

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

Reply via email to