Issue
Hey im trying to do a screenshot from "Mobilephone" from the terminal I can pull and push normally but when I use the command
.\adb exec-out screencap -p > ./pic3.png
The png cant open
Solution
As of this writing (PowerShell 7.2.2), PowerShell's >
operator is fundamentally incapable of capturing raw bytes (binary output) - see this answer for more information.
Therefore, try capturing your screenshot directly in a file (syntax gleaned from here):
./adb shell screencap ./pic3.png
Answered By - mklement0
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.