Manage Android's permission

Estimated reading time: 1 minute

To manage Android’s permission, you need to set the value of ‘autoGrantPermissions’ desired capabilities:

/**
* Enable all permission
* 
* @param isEnable
*/
@Keyword
public static void EnablePermission(boolean isEnable) {
    DesiredCapabilities.android().setCapability("autoGrantPermissions", isEnable);
}