Hello Dianne, my question (as to why a component is allowed to be
hosted in a process having a different UID) was more generic. I just
used the settings application as an example.
A malicious app could request for an activity to be run as a part of
com.android.phone (despite having a different UID) and could access
null pointer in its onCreate and bring down com.android.phone, isn't
it?
From the documentation of android:process, looks like the
installation of the app should fail but the current implementation of
PackageManagerService doesn't seem to be doing that.
On Aug 27, 5:51 pm, Dianne Hackborn <
hack...@android.com> wrote:
> Actually that settings UI is implemented in the phone app, and that is why
> it runs in that process.
>
>
>
>
>
>
>
>
>
> On Fri, Aug 26, 2011 at 5:41 PM, Ubuntu guy <
sam_...@yahoo.co.in> wrote:
> > Hello,
>
> > I found this documentation in
>
> >
http://developer.android.com/guide/topics/manifest/application-elemen...
> > ,
> > for android:process option of <application>
>
> > "you can arrange for components of both applications to run in the
> > same process — but only if the two applications also share a user ID
> > and be signed with the same certificate."
>
> > However, i'm looking at these applications, (they have different
> > shared uids)
>
> > Phone.apk
>
> > <manifest xmlns:android="
http://schemas.android.com/apk/res/android"
> > package="com.android.phone"
> > android:sharedUserId="android.uid.phone"
> > android:sharedUserLabel="@string/dialerIconLabel"
>
> > Settings.apk
>
> > <manifest xmlns:android="
http://schemas.android.com/apk/res/android"
> > package="com.android.settings"
> > android:sharedUserId="android.uid.system">
>
> > Nevertheless, settings app's activity (MultiSimSettings) is created in
> > com.android.phone.
>
> > <activity android:name="MultiSimSettings"
> > android:label="@string/multi_sim_settings_title"
> > android:process="com.android.phone"
> > android:clearTaskOnLaunch="true">
>
> > Shouldn't this have failed?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "android-platform" group.
> > To post to this group, send email to
android-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> >
android-platfo...@googlegroups.com.
> > For more options, visit this group at
> >
http://groups.google.com/group/android-platform?hl=en.
>
> --
> Dianne Hackborn
> Android framework engineer
>
hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails. All such
> questions should be posted on public forums, where I and others can see and
> answer them.