Yeah I think I might, I read that code too. I think if you get a
littler further it prints out something like can't move file because
UID is different so you end up with just a broken app that is sort of
stuck since you can't read/delete/write to old data and aren't allowed
to create new data.

On Jul 25, 2:49 am, Nikolay Elenkov <nikolay.elen...@gmail.com> wrote:
> On Mon, Jul 25, 2011 at 4:14 PM, Greg Giacovelli <miyamo...@gmail.com> wrote:
> > Sadly that "open issue" has been marked unreproducible ... I don't
> > understand why but I guess it's not going to be addressed.
>
> I found another :)
>
> http://code.google.com/p/android/issues/detail?id=4381
>
> Comment 2 says that changing to a sharedUserId is unsupported.
>
> Digging into this further, PackageManagerService.java creates a
> new package entry if the sharedUserId has changed, there is
> even a warning:
>
>   reportSettingsProblem(Log.WARN,
>           "Package " + name + " shared user changed from "
>           + (p.sharedUser != null ? p.sharedUser.name : "<nothing>")
>           + " to "
>           + (sharedUser != null ? sharedUser.name : "<nothing>")
>           + "; replacing with new");
>
> It then iterates over all assigned UID (quote: 'stupidly inefficient
> for now' :))
> and returns a new one. Why it's done this way I have no idea though.
> BTW, the sharedUserId is saved in packages.xml along with other package info.
>
>
>
> > I checked all the documentation about the UID of the app and I didn't
> > find anything warning of it being impossible to change.
>
> Maybe I read it in some bug report, like the one above. You might want to
> file a documentation bug for this.

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