Handling com.google.android.permissioncontroller in Appium Version 1.17

Hi All,

When I am trying to start install an app, the app launches and getting stuck in Choose what to allow to access page and script fails. Getting below log

Running ‘C:\Users\xxxxxxxx\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys window displays’
[debug] [ADB] Found package: ‘com.google.android.permissioncontroller’ and fully qualified activity name : ‘com.android.packageinstaller.permission.ui.ReviewPermissionsActivity’
[debug] [ADB] Incorrect package and activity. Retrying.
[debug] [ADB] Getting focused package and activity

and below are my DesiredCapabilities setting:

cap.setCapability(“avd”,“Pixel_3”);
cap.setCapability(“avdLaunchTimeout”,“120000”);
cap.setCapability(“avdReadyTimeout”,“120000”);
cap.setCapability(MobileCapabilityType.AUTOMATION_NAME,“UiAutomator2”);
cap.setCapability(MobileCapabilityType.PLATFORM_NAME,“Android”);
cap.setCapability(“autoGrantPermissions”,Boolean.TRUE);
cap.setCapability(“noReset”,Boolean.TRUE);
cap.setCapability(MobileCapabilityType.NEW_COMMAND_TIMEOUT, “20”);
cap.setCapability(“autoAcceptAlerts”, true);
cap.setCapability(“app”,“xxxxxxxxxx.apk”);

Thanks in advance.