Great, thanks, kris
On Mon, Jun 25, 2012 at 12:15 AM, Chris Stratton <[email protected]> wrote: > On Jun 24, 10:12 pm, Kristopher Micinski <[email protected]> > wrote: >> > But an interesting one. I've finally managed to find the code that >> > skips writing out the permissions for system apps. > >> Would you mind pointing out which portion of the codebase this is? > > The following code within void writePackageLPr() of > platform_frameworks_base / services / java / com / android / server / > pm / Settings.java seems responsible for system packages not getting > their permissions dumped to the packages.xml file (unless they use a > shared userid, in which case a different function does dump those out) > > if ((pkg.pkgFlags & ApplicationInfo.FLAG_SYSTEM) == 0) { > serializer.startTag(null, "perms"); > if (pkg.sharedUser == null) { > // If this is a shared user, the permissions will > // be written there. We still need to write an > // empty permissions list so permissionsFixed will > // be set. > for (final String name : pkg.grantedPermissions) { > serializer.startTag(null, "item"); > serializer.attribute(null, "name", name); > serializer.endTag(null, "item"); > } > } > serializer.endTag(null, "perms"); > } > > (This code used to be located elsewhere, the pm/ directory seems to be > a reorganization) > > -- > 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 -- 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

