Friday, June 17, 2011

[android-developers] Determine Sender of Broadcast

Hello,

Is there any way to discover which app package sent a broadcast? If
the sender includes their package name as an extra in the Intent, can
you verify the sender is who they say they are?

I came across this post (http://www.unwesen.de/2011/04/10/android-
intent-sender-verification/
) which describes implementing a custom
handshake protocol using a Service naming convention to verify the
sender if they supply their package name. I can also imagine doing
something similar using broadcasts by using Intent.setPackage() to
limit the scope of the broadcast.

Does anyone know of an Android API based way to verify the sender
package?

Thanks,
Alan

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

No comments:

Post a Comment