Skip to content

Instantly share code, notes, and snippets.

#Check if an argument was supplied
if [ -z "$1" ]
then
echo "No argument supplied, please provide video name"
else
# start recording
adb shell screenrecord /sdcard/$1.mp4 &
# Get its PID
PID=$!