COuld you maybe use

intent.getComponent() and then use the packageManager its 
getReceiverInfo(componentName);

http://developer.android.com/reference/android/content/pm/PackageManager.html#getReceiverInfo(android.content.ComponentName,%20int)

Not sure if this is what you need, or if it is the best solution.

Jiri


Jonathan Herriott wrote:
> I was wondering if there is a way to determine who passed an intent to
> my application.  For example, I have a service, that I want to act
> differently depending on who passed the intent (for security
> reasons).  I'm trying to sandbox each calling application, so they
> only have access to their data stored in my application.
> 
> For it to be secure, I cannot trust any application to be truthful
> about the identifying data it is passing into my service.  Therefore,
> I need some system way of identifying who sent the intent in a way
> that the calling application cannot change that information.  I don't
> know if it is possible, but I can't find anything in the Intent class,
> and I was wondering if there may be another structure which does what
> I want it to.  If it is not possible, I would like to get some type of
> mechanism to do this in the roadmap.
> 
> Thanks,
> Jonathan Herriott
> > 
> 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to