On Wed, Jul 23, 2014 at 5:25 AM, Tyrone Floryanzia
<[email protected]> wrote:
> When I install an app via the play store I am presented with a list if 
> permissions the app wants, and I can refuse at that time.  When I use "adb 
> install", I'm given no such option.  My question is, what are the default 
> allowed permissions in this case and how can I control them?  I assume there 
> is such a thing and that I can not install an app via adb which requests all 
> permissions and have it automatically granted.
>

It works exactly in the same way as when you click 'OK' in the
permissions dialog.
Normal and dangerous permission will be granted, but not signature permissions
(unless you are signed with the expected key/certificate).

Installing an app requires the INSTALL_PACKAGES permission, which is only
granted to system applications and the shell user (UID=2000) you are running
as when executing `adb install`. You can't really bypass the permission
from a regular app unless you already have root access.

Note that this is for development/debugging, so you should definitely disable
ADB if you are not using the device for development.


HTH

-- 
You received this message because you are subscribed to the Google Groups 
"Android Security Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/android-security-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to