Suneetha Thentu Suneetha Thentu - 2 months ago 71
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: com.android.ddmlib.SyncException: Permission denied.Can anyone guide me what might be the reason for this?

Answer

I did the below steps because my device is rooted.

adb root
uiautomatorviewer

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

Comments