It's a "depends". If two activities are running with different uids, they can have different permissions; if with the same uids, they have the same permissions. A particular .apk can only have one uid assigned to it, so all of the components in it share the same permissions (and this is why the uses-permission tag is at the top of the manifest).
There are tons of examples in the source tree of using permissions; probably majority of .apks use one permission or another. Also be sure you read the basic documentation on security: http://developer.android.com/guide/topics/security/security.html And you should understand what an application is: http://developer.android.com/guide/topics/fundamentals.html On Tue, Mar 3, 2009 at 10:41 AM, [email protected] < [email protected]> wrote: > > Thanks, I take that as a yes :) > > I'm having a hard time finding an example, can you point me in the > right direction? > > Thanks, > John > > On Mar 2, 9:18 am, Jean-Baptiste Queru <[email protected]> wrote: > > The finest granularity at which permissions can be requested is the > > application level. The smallest granularity at which they can be > > enforced is the process level. > > > > JBQ > > > > On Mon, Mar 2, 2009 at 7:57 AM, [email protected] > > > > <[email protected]> wrote: > > > > > Can permissions be applied to different activities within the > > > manifest? Or do all activities get the same permissions > > > > -- > > Jean-Baptiste M. "JBQ" Queru > > Android Engineer, Google. > > > > Questions sent directly to me are likely to get forwarded to a public > > forum with no further warning. > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "android-framework" 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-framework?hl=en -~----------~----~----~----~------~----~------~--~---
