On Mon, Jul 25, 2011 at 4:14 PM, Greg Giacovelli <[email protected]> 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 [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

