I'm trying to get the color of a pixel from a screendump. While I can get the command to work when I use 'adb shell' first, I want to be able to run the command right from a windows shell. I've tried all the suggestions in this post, but I can't get it to work.
"C:\Program Files\Microvirt\MEmu\adb.exe" -s 127.0.0.1:21503 shell dd if='/sdcard/screen.dump' bs=4 count=1 skip=54950 2>/dev/null | hd
This returns
'the system cannot find the path specified'
If I try:
"C:\Program Files\Microvirt\MEmu\adb.exe" -s 127.0.0.1:21503 shell \"dd if='/sdcard/screen.dump' bs=4 count=1 skip=54950 2>/dev/null | hd\"
It returns:
/system/bin/sh: dd if='/sdcard/screen.dump' bs=4 count=1 skip=54950 2>/dev/null | hd not found
The sh file does exist in /system/bin/ so I have no idea what's going on.