how many apps can share with same sharedUserId ?

28 views
Skip to first unread message

Terry Kim

unread,
May 16, 2010, 9:47:41 PM5/16/10
to android-platform
Hello,

In android developer web site, there are two explanation about
sharedUserID. but I don't know which one is correct.

The first one is,

http://developer.android.com/guide/topics/security/security.html,

"Note that in order to retain security, only two applications signed
with the same signature (and requesting the same sharedUserId) will be
given the same user ID."

The second one is

http://developer.android.com/reference/android/R.attr.html#sharedUserId

" By default, each package gets its own unique user-id. By setting
this value on two or more packages, each of these packages will be
given a single shared user ID, so they can for example run in the same
process."

So my question is how many apps can share with same sharedUserId? only
two or more?

--
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.

Dianne Hackborn

unread,
May 17, 2010, 3:50:06 AM5/17/10
to android-...@googlegroups.com
Count is not relevent.  "two applications signed with the same signature" just means to consider two applications blah blah.
--
Dianne Hackborn
Android framework engineer
hac...@android.com

Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails.  All such questions should be posted on public forums, where I and others can see and answer them.
Reply all
Reply to author
Forward
0 new messages