Skip to content

Instantly share code, notes, and snippets.

@rodhfr
Last active March 8, 2025 02:04
Show Gist options
  • Save rodhfr/713d49f9b9d1f4cccec4cc3a5a37174d to your computer and use it in GitHub Desktop.
Save rodhfr/713d49f9b9d1f4cccec4cc3a5a37174d to your computer and use it in GitHub Desktop.
scrcpy fun commands

Virtual display

--new-display=1920x1080

search for apps

adb shell pm list packages | grep vlc

in termux

pm list packages | grep vlc

Reduce bandwidth

--no-audio --max-fps=60 --video-bit-rate=2M

phone display control

--stay-awake --turn-screen-off --no-power-on # to not power the device upon scrcpy start

performance

--print-fps

start app

scrcpy --start-app=org.mozilla.firefoxt

force stop + start

scrcpy --start-app=+org.mozilla.firefox

start by query name

scrcpy --start-app=?firefox # But retrieving app names may take some time (sometimes several seconds), so passing the package name is recommended.

use keyboard and mouse to android

scrcpy --otg

use gamepad from computer

scrcpy --gamepad=uhid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment