android debug bridge

archwiki

  • install adb pacman -S android-tools android-udev
  • on android phone
    • settings > system > about phone > tap 'build number' 7 times to become developer
    • settings > system > (advanced) developer options > enable usb debugging
  • plug in phone via usb and switch to 'ptp'
  • check device is listed adb devices

screencast

adb shell screenrecord --output-format=h264 - | ffplay -
adb shell screenrecord --output-format=h264 - | mpv --no-correct-pts --fps=60 -