On Jun 18, 12:35 pm, Jason Meyer <jasonmeyer...@yahoo.de> wrote:
> > Well, sure, if they request it, just like any other SDK app.
>
> I am not quite sure what you mean by "request it".

The uses-permission is in their AndroidManifest.xml just as it would
be for a non-system app.
See for example:
https://github.com/android/platform_packages_apps_browser/blob/master/AndroidManifest.xml

> If by request you mean the requesting done on installation: nope, this
> does not apply, as apps in /system/app/ are usually preinstalled.
> Hence, no market app requesting permissions to be granted by the user.

They may be pre-installed, but they are still processed by something
at build and/or runtime.

> > I have no idea what the <perms> block is. That sounds like a firmware
> > detail, which is out of scope for this list.
>
> Nope, it's not a firmware detail.

>From Mark's perspective it is an implementation detail of the android
system (what would be the 'firmware' on a simpler device, though
that's term is by custom used for simpler components such as a radio
driver on something with a full operating system like android) and
thus off topic for the androd-developers group, which, though not
obvious from the name, is defined to be for SDK-level development
only.

> Or do you mean by asking the Manifest file? It isn't checked on every
> app's start up, to my knowledge. That's what the packages.xml file is
> for.

The PackageManager creates the packages.xml file by processing the
information found in the app manifests.

> > I haven't checked exhaustively, but it would appear that they are
> > using the sharedUserID mechanism (even if only one app package is
> > doing the sharing).
>
> However, every system app sharing the same user ID and thus getting
> extensive permissions seems a bit... risky.

They don't.  There are a number of distinct sharedUserIDs involved,
some having only one app package.

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