I'm fairly certain you cannot make changes (to the manifest) like this.  The
permissions in the manifest are an indication of all the possible things an
app could do.

Even if you could I don't think that's what you want.  If you remove the
permission to send SMS and then try to send SMS I'm pretty sure it would
explode all over everything (it may fail silently but I'm a pessimist).

What you need is what you mention: build the user-level permission model
into your code.  If a specific user does not have the SMS permission then
you will need to prevent them from accessing that piece of the
functionality.


On Thu, Feb 25, 2010 at 11:17, Kam <[email protected]> wrote:

> Hi all,
>
> I'm a noob with Android, and am trying to grasp a few things. This
> question revolves around permissions...
>
> Say I have an Application, and for this Application I give it
> permissions, you know, "can use SMS, sockets, etc".
> thats simple enough...I can put that data in the applications
> manifest.
>
> Now, say I have some LOGICAL "users" that can use this app. The
> "users" would "login" from within the application and once logged in
> they can proceed. But what I want to do is, adjust the PERMISSIONS for
> the Application based on who the USER is. I know the Application could
> manage these permissions, but I was wondering if I could adjust the
> manifest realtime or what?
>
> Any thoughts on this?
>
> thanks!
>
> ~Kam (^8*
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> [email protected]<android-beginners%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to