How to can I run adb screenrecord on a Android Device from Java and end the screenrecording?

孤人 提交于 2019-11-29 12:20:11

Sending either SIGINT or SIGHUP to screenrecord process would cause it to stop recording.

I just tried the following on unrooted (stock Android 6.0) phone in 2 separate adb shell sessions:

in session #1:

screenrecord /sdcard/Movies/test.mpg

in session #2:

pkill -INT screenrecord

and the screenrecord capture stopped after issuing the pkill command

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!