How to grant permissions on android marshamallow

Hi, Can i know how to grant permissions for android native app on android marshmallow?
I am trying to automate the app, where on marshmallow its asking for permissions.
Unable to set the permissions directly.
Any piece of code would be really helpful.

1 Like


Try with this piece of code
capabilities.setCapability(“autoGrantPermissions”, “true”);