scrcpy to use android apps on you desktop


Get scrcpy

https://github.com/Genymobile/scrcpy

Simple screen mirroring

scrcpy -m1920 --max-fps=60 --no-audio -K -Sw

Screen mirroring directly opening a specific app

scrcpy --new-display=1920x1080 -m1920 --max-fps=60 --no-audio -K -Sw --start-app=<app-bundle-id>

where <app-bundle-id> is the bundle id of the app you want to open (ex. ‘de.westnordost.streetcomplete’)

Options meaning

  • -m1920: sets the maximum resolution to 1920x1080 pixels (Full HD)
  • --max-fps=60: limits the maximum frames per second to 60, which means the video will be capped at 60 FPS
  • --no-audio: disables audio streaming
  • --keyboard=uhid (or -K): simulates a physical HID keyboard using the UHID kernel module on the device
  • --turn-screen-off (or -S): turn the device screen off while mirroring
  • --stay-awake (or -w): prevent the device from sleeping after a delay
  • --start-app: start an app selected by its package name
  • --new-display=1920x1080: start inside a virtual display with 1920x1080 dimensions
  • --tcpip=192.168.178.200:<port>: connect on network