I am working to automate one android application. I see a below permission popup on launching the application.
I have used capability like “capabilities.setCapability(“autoGrantPermissions”,“true”)” to grant all permissions but I am still getting the permission dialog.
I tried with other way by granting permission using adb like:
adb shell pm grant !!applicationpackagename - To be replaced with application package name!! android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS
But I am getting below error while running above adb command:
Please suggest how I can bypass this permission dialog while launching the application in automation session.