Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission Commands #57

Open
eygraber opened this issue Nov 30, 2016 · 3 comments
Open

Permission Commands #57

eygraber opened this issue Nov 30, 2016 · 3 comments

Comments

@eygraber
Copy link

There are adb commands that will grant or deny an app permissions. It would be helpful if the plugin included this for testing (https://developer.android.com/training/permissions/best-practices.html#testing)

@eygraber
Copy link
Author

eygraber commented Dec 1, 2016

I don't know much about Intellij's UI but I'd assume the process for this is to add an action here called "Permissions", which would open a sublist of actions of permissions that could be granted and permissions that could be revoked (using adb shell dumpsys package <package-name>. Then selecting one of those commands would run adb shell pm [grant|revoke] <package-name> <permission-name>. There could also be support for adb shell pm reset-permissions.

@alorma
Copy link

alorma commented Dec 7, 2016

👍 to this

@fmatosqg
Copy link
Contributor

fmatosqg commented Jul 4, 2018

#55 has refactors that make it easier to issue adb shell commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants