Home > Mobile >  Why the adb shell screencap -p directly output PNG unable to open?
Why the adb shell screencap -p directly output PNG unable to open?

Time:01-01

run & gt; The adb shell screencap - p & gt; The capture. PNG, found work,
After output to stdout and saved to the local file cannot be opened,

But clearly in the help of adb said:
If FILENAME is not given, the results will be printed to stdout.
Why I can't save?


To solve, is this why?

CodePudding user response:

Save the file size of 0 bytes?

CodePudding user response:

reference 1st floor r00_a2lBUR response:
0 bytes saved file size?

@ r00_a2lBUR not, size is also very normal (2.35 MB)

CodePudding user response:

The adb shell screencap - p/sdcard/screen. PNG
The adb pull/sdcard/screen. PNG
I don't know with adb pull output try one

CodePudding user response:

How do I save is 0 bytes, you have done? consult

CodePudding user response:

The original poster can try the adb exec - out screencap - p & gt; Screen. PNG this command, but this command also won't open on Android9 save images, in Android6 and below, Android7 and Android8 found no machine, can don't know,

CodePudding user response:

My default CMD window path to save the PIC. The bat, the content is as follows:
 
The adb shell screencap - p/sdcard/screen. PNG
The adb pull/sdcard/screen. PNG
Screen. PNG


Every time I screenshots, as long as the input a PIC command screenshots, open,
  • Related