Add a script to record the screen

This commit is contained in:
Vishesh Handa
2020-06-04 16:01:45 +02:00
parent e6d82c415f
commit e15c99f2aa

15
scripts/record_screen.sh Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -eu
trap ctrl_c INT
function ctrl_c() {
echo "To fetch the script run -"
echo "adb pull /sdcard/video.mp4"
echo "adb shell rm /sdcard/video.mp4"
}
echo "Recording ..."
adb shell screenrecord --verbose /sdcard/video.mp4