Hello,

I have been trying to find an accurate answer to this. I want to know if 
there is any standard way of knowing the uid of the sender app who sent an 
intent to my app.

I find that for Activities, only startActivityForResult( ) is supported, 
that too using Activity's getCallingPackage( ) API, not through Binder API.

For Services, only bind service seems to get that information; if I want 
don't want to write a bound service, I can't get that information in 
onStartCommand( ).


I want to ask why the calling identity is missing when 
Binder.getCallingUid( ) is called anywhere in my app. If some one could 
point me to the source code in AOSP which causes this that would be helpful.


Thanks ! 

-- 
You received this message because you are subscribed to the Google Groups 
"Android Security Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/android-security-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to