If I swipe with the edge of a palm, it is very unreliable -- sometimes screen is pressed and I do some operations instead of screen shot.
Pressing Home
+ Power
simultaneously doesn't work.
What else can be done?
UPDATE
I am trying to take screenshow of an application, which I am debugging. When I run debug, it requests to close device monitor, so the third way of taking screenshots via device monitor also doesn't work.
UPDATE 2
Disabling swipe didn't help. Now it is impossible to take screenshot from within device at all.
adb shell screencap -p /sdcard/screenshot.png
– SudoSURoot Aug 07 '18 at 18:24