Can someone please help me out to enable auto permission to app to access gallery, media and files.
Try this
(AndroidMobileCapabilityType.AUTO_GRANT_PERMISSIONS, true);
read more here