Suneetha Thentu Suneetha Thentu - 1 year ago 463
Android Question

Getting permission denied error while taking device screenshot from my android device by using UIAUTOMATOR

I am using UIAUTOMATOR for doing uiautomation for android 5.0.1 version.While i am clicking on device screenshot option in UIAUTOMATOR getting this error Error while obtaining UI hierarchy XML file: Permission denied.Can anyone guide me what might be the reason for this?

Answer Source

I did the below steps because my device is rooted.

adb root

Thanks to @Rliwan for providing me the solution in comments.Just i want to close the question,so i am posting this answer.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download