You cannot necessarily tell down to the individual application,
because multiple applications can share the same uid or execute within
the same process.
PackageManager.getPackagesForUid(uid) will give you the names of all
the packages that share the given uid. In most cases this will be
unambiguous, but if there is more than one entry in the list you may
have to use other means to disambiguate (such as looking at
/proc/$PID/whatever to get the name of your caller's process, as
suggested earlier). This will work if nothing is using shared-process
as well as shared-uid. If the callers *are* using shared-process, you
simply cannot tell: the two applications are essentially identical for
all outbound-call API purposes.
--
christopher tate
android framework engineer
--
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.