#!/bin/bash
while true; do
name=$(date)
name="${name//[ :-]/_}"
adb shell screenrecord "/sdcard/$name.mp4"
done
/home/user$ adb devices
List of devices attached
0056942555 device
/home/user$ adb shell
kane_sprout:/
kane_sprout:/ cd /sdcard
kane_sprout:/ ls
demo.mp4
kane_sprout:/ exit
/home/user$ adb pull /sdcard/demo.mp4 /home/user