It wouldn't be secure unless there was a global registry of these user IDs
and the apps that own them, that the platform could look up at install, to
ensure that some other spoof app is not using the user ID.

Obviously this is not something we want to do.

On Tue, May 31, 2011 at 10:21 AM, Mark Murphy <mmur...@commonsware.com>wrote:

> On Tue, May 31, 2011 at 1:11 PM, saminath sanjai <saminathm...@gmail.com>
> wrote:
> > One more Application verify the UserId of the process(APK) and allow to
> > further communication.  Application developed by third party.
>
> As far as I can tell, your third party does not know what it is talking
> about.
>
> > In this case i
> > have to assign the APK userid as like in
> > system/core/include/private/android_filesystem_config.h
>
> That is not possible. In fact, I will be fairly surprised if any
> mobile OS, other than perhaps Meego, allows end-user-installed
> applications to decide their own user ID for process-level security.
>
> You are welcome to write your own Android firmware and put it on your
> own Android phones where this application is somehow magically
> assigned some particular user ID as part of the firmware build. I
> presume that is at least conceivable. If you wish to build your own
> firmware, visit h http://source.android.com.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training in NYC: http://marakana.com/training/android/
>
> --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
hack...@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.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to