Thanks Mark, My next question would be does it remains same if we donot add "android:sharedUserId" ?
On Nov 29, 10:23 pm, Mark Murphy <[email protected]> wrote: > Neither are correct AFAIK. For example, if you add > android:sharedUserId to an existing shipping app, both the name and > the UID might change on users' devices, with the lovely side effect of > causing your app to no longer be able to read its own existing files. > > > > > > > > > > On Tue, Nov 29, 2011 at 1:32 PM, tegbird <[email protected]> wrote: > > When I update my app, doesApplicationInfo.uid stays the same. > > > PackageManager.getNameForUid (int uid) says > > "Retrieve the official name associated with a user id. This name is > > guaranteed to never change, though it is possibly for the underlying > > user id to be changed. That is, if you are storing information about > > user ids in persistent storage, you should use the string returned by > > this function instead of the raw user-id." > > > From the above explanation it seems it can change. > > > in developers site > > athttp://developer.android.com/guide/topics/security/security.html > > it says > > "At install time, Android gives each package a distinct Linux user ID. > > The identity remains constant for the duration of the package's life > > on that device." > > > Are thess two documents referring the same user id? If yes why they > > are contradicting. > > What is the correct behavior. > > > Thanks > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > Android App Developer Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

