Re: [android-developers] Re: Permissions for System Apps (not in /data/system/packages.xml?)
Great, thanks,
kris
On Mon, Jun 25, 2012 at 12:15 AM, Chris Stratton <cs07024@gmail.com> wrote:
> On Jun 24, 10:12 pm, Kristopher Micinski <krismicin...@gmail.com>
> 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 android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home