I am unable to tap on Deny or Allow buttons on the permissions dialog in Android using Appium+Java. Do I need to add any capabilities before going to tap on those buttons? Below
Starting from appium 1.6.3 you can just add:
capabilities.setCapability("autoGrantPermissions", "true");
And you'll always allow all permissions your app wants.