Skip to content Skip to sidebar Skip to footer

Adb Screenshot: Not Found?

My phone runs rooted 2.3.6 Gingerbread. I write these lines to take a screenshot: adb shell screencap -p /sdcard/screen.png It says permission denied! So I add su, like this: adb

Solution 1:

You could accomplish this with MonkeyRunner instead of ADB by creating a screenshot.py file with the following content:

from com.android.monkeyrunner import MonkeyRunner, MonkeyDevicedevice= MonkeyRunner.waitForConnection()
result = device.takeSnapshot()
result.writeToFile('<some path>/screenshot.png','png')

and run it with the command (on Windows)

<android sdk path>\tools\monkeyrunner.bat <some path>\screenshot.py

Post a Comment for "Adb Screenshot: Not Found?"