sml156

scrcpy -h

Jun 18th, 2026
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.53 KB | None | 0 0
  1. scrcpy -h
  2. scrcpy 4.0 <https://github.com/Genymobile/scrcpy>
  3. Usage: C:\Users\rem\AppData\Local\Microsoft\WinGet\Packages\Genymobile.scrcpy_Microsoft.Winget.Source_8wekyb3d8bbwe\scrcpy-win64-v4.0\scrcpy.exe [options]
  4.  
  5. Options:
  6.  
  7. --always-on-top
  8. Make scrcpy window always on top (above other windows).
  9.  
  10. --angle=degrees
  11. Rotate the video content by a custom angle, in degrees (clockwise).
  12.  
  13. --audio-bit-rate=value
  14. Encode the audio at the given bit rate, expressed in bits/s. Unit suffixes are supported: 'K' (x1000)
  15. and 'M' (x1000000).
  16. Default is 128K (128000).
  17.  
  18. --audio-buffer=ms
  19. Configure the audio buffering delay (in milliseconds).
  20. Lower values decrease the latency, but increase the likelihood of buffer underrun (causing audio
  21. glitches).
  22. Default is 50.
  23.  
  24. --audio-codec=name
  25. Select an audio codec (opus, aac, flac or raw).
  26. Default is opus.
  27.  
  28. --audio-codec-options=key[:type]=value[,...]
  29. Set a list of comma-separated key:type=value options for the device audio encoder.
  30. The possible values for 'type' are 'int' (default), 'long', 'float' and 'string'.
  31. The list of possible codec options is available in the Android documentation:
  32. <https://d.android.com/reference/android/media/MediaFormat>
  33.  
  34. --audio-dup
  35. Duplicate audio (capture and keep playing on the device).
  36. This feature is only available with --audio-source=playback.
  37.  
  38. --audio-encoder=name
  39. Use a specific MediaCodec audio encoder (depending on the codec provided by --audio-codec).
  40. The available encoders can be listed by --list-encoders.
  41.  
  42. --audio-source=source
  43. Select the audio source. Possible values are:
  44. - "output": forwards the whole audio output, and disables playback on the device.
  45. - "playback": captures the audio playback (Android apps can opt-out, so the whole output is not
  46. necessarily captured).
  47. - "mic": captures the microphone.
  48. - "mic-unprocessed": captures the microphone unprocessed (raw) sound.
  49. - "mic-camcorder": captures the microphone tuned for video recording, with the same orientation as
  50. the camera if available.
  51. - "mic-voice-recognition": captures the microphone tuned for voice recognition.
  52. - "mic-voice-communication": captures the microphone tuned for voice communications (it will for
  53. instance take advantage of echo cancellation or automatic gain control if available).
  54. - "voice-call": captures voice call.
  55. - "voice-call-uplink": captures voice call uplink only.
  56. - "voice-call-downlink": captures voice call downlink only.
  57. - "voice-performance": captures audio meant to be processed for live performance (karaoke), includes
  58. both the microphone and the device playback.
  59. Default is output.
  60.  
  61. --audio-output-buffer=ms
  62. Configure the size of the SDL audio output buffer (in milliseconds).
  63. Do not change this setting unless you have a good reason.
  64. Default is 10.
  65.  
  66. -b, --video-bit-rate=value
  67. Encode the video at the given bit rate, expressed in bits/s. Unit suffixes are supported: 'K' (x1000)
  68. and 'M' (x1000000).
  69. Default is 8M (8000000).
  70.  
  71. --background-color=hexcolor
  72. Set the background color, encoded as hexadecimal color code (#RGB or #RRGGBB).
  73. Default is #222 (dark gray).
  74.  
  75. --camera-ar=ar
  76. Select the camera size by its aspect ratio (+/- 10%).
  77. Possible values are "sensor" (use the camera sensor aspect ratio), "<num>:<den>" (e.g. "4:3") or
  78. "<value>" (e.g. "1.6").
  79.  
  80. --camera-facing=facing
  81. Select the device camera by its facing direction.
  82. Possible values are "front", "back" and "external".
  83.  
  84. --camera-fps=value
  85. Specify the camera capture frame rate.
  86. If not specified, Android's default frame rate (30 fps) is used.
  87.  
  88. --camera-high-speed
  89. Enable high-speed camera capture mode.
  90. This mode is restricted to specific resolutions and frame rates, listed by --list-camera-sizes.
  91.  
  92. --camera-id=id
  93. Specify the device camera id to mirror.
  94. The available camera ids can be listed by:
  95. scrcpy --list-cameras
  96.  
  97. --camera-size=<width>x<height>
  98. Specify an explicit camera capture size.
  99.  
  100. --camera-torch
  101. Turn on the camera torch when the camera starts.
  102.  
  103. --camera-zoom=zoom
  104. Specify the camera zoom initial value.
  105.  
  106. --capture-orientation=value
  107. Set the capture video orientation.
  108. Possible values are 0, 90, 180, 270, flip0, flip90, flip180 and flip270, possibly prefixed by '@'.
  109. The number represents the clockwise rotation in degrees; the flip" keyword applies a horizontal flip
  110. before the rotation.
  111. If a leading '@' is passed (@90) for display capture, then the rotation is locked, and is relative to
  112. the natural device orientation.
  113. If '@' is passed alone, then the rotation is locked to the initial device orientation.
  114. Default is 0.
  115.  
  116. --crop=width:height:x:y
  117. Crop the device screen on the server.
  118. The values are expressed in the device natural orientation (typically, portrait for a phone, landscape
  119. for a tablet).
  120.  
  121. -d, --select-usb
  122. Use USB device (if there is exactly one, like adb -d).
  123. Also see -e (--select-tcpip).
  124.  
  125. --disable-screensaver
  126. Disable screensaver while scrcpy is running.
  127.  
  128. --display-id=id
  129. Specify the device display id to mirror.
  130. The available display ids can be listed by:
  131. scrcpy --list-displays
  132. Default is 0.
  133.  
  134. --display-ime-policy=value
  135. Set the policy for selecting where the IME should be displayed.
  136. Possible values are "local", "fallback" and "hide".
  137. "local" means that the IME should appear on the local display.
  138. "fallback" means that the IME should appear on a fallback display (the default display).
  139. "hide" means that the IME should be hidden.
  140.  
  141. --display-orientation=value
  142. Set the initial display orientation.
  143. Possible values are 0, 90, 180, 270, flip0, flip90, flip180 and flip270. The number represents the
  144. clockwise rotation in degrees; the "flip" keyword applies a horizontal flip before the rotation.
  145. Default is 0.
  146.  
  147. -e, --select-tcpip
  148. Use TCP/IP device (if there is exactly one, like adb -e).
  149. Also see -d (--select-usb).
  150.  
  151. -f, --fullscreen
  152. Start in fullscreen.
  153.  
  154. --force-adb-forward
  155. Do not attempt to use "adb reverse" to connect to the device.
  156.  
  157. -G
  158. Same as --gamepad=uhid, or --gamepad=aoa if --otg is set.
  159.  
  160. --gamepad=mode
  161. Select how to send gamepad inputs to the device.
  162. Possible values are "disabled", "uhid" and "aoa".
  163. "disabled" does not send gamepad inputs to the device.
  164. "uhid" simulates physical HID gamepads using the Linux UHID kernel module on the device.
  165. "aoa" simulates physical gamepads using the AOAv2 protocol.It may only work over USB.
  166. Also see --keyboard and --mouse.
  167.  
  168. -h, --help
  169. Print this help.
  170.  
  171. -K
  172. Same as --keyboard=uhid, or --keyboard=aoa if --otg is set.
  173.  
  174. --keep-active
  175. Keep the screen on by simulating user activity.
  176.  
  177. --keyboard=mode
  178. Select how to send keyboard inputs to the device.
  179. Possible values are "disabled", "sdk", "uhid" and "aoa".
  180. "disabled" does not send keyboard inputs to the device.
  181. "sdk" uses the Android system API to deliver keyboard events to applications.
  182. "uhid" simulates a physical HID keyboard using the Linux UHID kernel module on the device.
  183. "aoa" simulates a physical keyboard using the AOAv2 protocol. It may only work over USB.
  184. For "uhid" and "aoa", the keyboard layout must be configured (once and for all) on the device, via
  185. Settings -> System -> Languages and input -> Physical keyboard. This settings page can be started
  186. directly using the shortcut MOD+k (except in OTG mode) or by executing: `adb shell am start -a
  187. android.settings.HARD_KEYBOARD_SETTINGS`.
  188. This option is only available when a HID keyboard is enabled (or a physical keyboard is connected).
  189. Also see --mouse and --gamepad.
  190.  
  191. --kill-adb-on-close
  192. Kill adb when scrcpy terminates.
  193.  
  194. --legacy-paste
  195. Inject computer clipboard text as a sequence of key events on Ctrl+v (like MOD+Shift+v).
  196. This is a workaround for some devices not behaving as expected when setting the device clipboard
  197. programmatically.
  198.  
  199. --list-apps
  200. List Android apps installed on the device.
  201.  
  202. --list-cameras
  203. List device cameras.
  204.  
  205. --list-camera-sizes
  206. List the valid camera capture sizes.
  207.  
  208. --list-displays
  209. List device displays.
  210.  
  211. --list-encoders
  212. List video and audio encoders available on the device.
  213.  
  214. -m, --max-size=value
  215. Limit both the width and height of the video.
  216. For display mirroring, the other dimension is computed so that the device aspect ratio is preserved
  217. (except for flex displays).
  218. For camera mirroring, the value is used to select the camera source size instead.
  219. Default is 0 (unlimited).
  220.  
  221. -M
  222. Same as --mouse=uhid, or --mouse=aoa if --otg is set.
  223.  
  224. --max-fps=value
  225. Limit the frame rate of screen capture (officially supported since Android 10, but may work on earlier
  226. versions).
  227.  
  228. --min-size-alignment=alignment
  229. Configure the minimum video size alignment.
  230. This is a power-of-2 value (1, 2, 4, 8 or 16) that the video width and height must be multiples of.
  231. The actual alignment will be the maximum of this value and the video codec's alignment requirement.
  232. Default is 1.
  233.  
  234. --mouse=mode
  235. Select how to send mouse inputs to the device.
  236. Possible values are "disabled", "sdk", "uhid" and "aoa".
  237. "disabled" does not send mouse inputs to the device.
  238. "sdk" uses the Android system API to deliver mouse eventsto applications.
  239. "uhid" simulates a physical HID mouse using the Linux UHID kernel module on the device.
  240. "aoa" simulates a physical mouse using the AOAv2 protocol. It may only work over USB.
  241. In "uhid" and "aoa" modes, the computer mouse is captured to control the device directly (relative
  242. mouse mode).
  243. LAlt, LSuper or RSuper toggle the capture mode, to give control of the mouse back to the computer.
  244. Also see --keyboard and --gamepad.
  245.  
  246. --mouse-bind=xxxx[:xxxx]
  247. Configure bindings of secondary clicks.
  248. The argument must be one or two sequences (separated by ':') of exactly 4 characters, one for each
  249. secondary click (in order: right click, middle click, 4th click, 5th click).
  250. The first sequence defines the primary bindings, used when a mouse button is pressed alone. The second
  251. sequence defines the secondary bindings, used when a mouse button is pressed while the Shift key is
  252. held.
  253. If the second sequence of bindings is omitted, then it is the same as the first one.
  254. Each character must be one of the following:
  255. '+': forward the click to the device
  256. '-': ignore the click
  257. 'b': trigger shortcut BACK (or turn screen on if off)
  258. 'h': trigger shortcut HOME
  259. 's': trigger shortcut APP_SWITCH
  260. 'n': trigger shortcut "expand notification panel"
  261. Default is 'bhsn:++++' for SDK mouse, and '++++:bhsn' for AOA and UHID.
  262.  
  263. -n, --no-control
  264. Disable device control (mirror the device in read-only).
  265.  
  266. -N, --no-playback
  267. Disable video and audio playback on the computer (equivalent to --no-video-playback
  268. --no-audio-playback).
  269.  
  270. --new-display[=[<width>x<height>][/<dpi>]]
  271. Create a new display with the specified resolution and density. If not provided, they default to the
  272. main display dimensions and DPI.
  273. Examples:
  274. --new-display=1920x1080
  275. --new-display=1920x1080/420 # force 420 dpi
  276. --new-display # main display size and density
  277. --new-display=/240 # main display size and 240 dpi
  278.  
  279. --no-audio
  280. Disable audio forwarding.
  281.  
  282. --no-audio-playback
  283. Disable audio playback on the computer.
  284.  
  285. --no-cleanup
  286. By default, scrcpy removes the server binary from the device and restores the device state (show
  287. touches, stay awake and power mode) on exit.
  288. This option disables this cleanup.
  289.  
  290. --no-clipboard-autosync
  291. By default, scrcpy automatically synchronizes the computer clipboard to the device clipboard before
  292. injecting Ctrl+v, and the device clipboard to the computer clipboard whenever it changes.
  293. This option disables this automatic synchronization.
  294.  
  295. --no-downsize-on-error
  296. By default, on MediaCodec error, scrcpy automatically tries again with a lower definition.
  297. This option disables this behavior.
  298.  
  299. --no-key-repeat
  300. Do not forward repeated key events when a key is held down.
  301.  
  302. --no-mipmaps
  303. If the renderer is OpenGL 3.0+ or OpenGL ES 2.0+, then mipmaps are automatically generated to improve
  304. downscaling quality. This option disables the generation of mipmaps.
  305.  
  306. --no-mouse-hover
  307. Do not forward mouse hover (mouse motion without any clicks) events.
  308.  
  309. --no-power-on
  310. Do not power on the device on start.
  311.  
  312. --no-vd-destroy-content
  313. Disable virtual display "destroy content on removal" flag.
  314. With this option, when the virtual display is closed, the running apps are moved to the main display
  315. rather than being destroyed.
  316.  
  317. --no-vd-system-decorations
  318. Disable virtual display system decorations flag.
  319.  
  320. --no-video
  321. Disable video forwarding.
  322.  
  323. --no-video-playback
  324. Disable video playback on the computer.
  325.  
  326. --no-window
  327. Disable scrcpy window. Implies --no-video-playback.
  328.  
  329. --no-window-aspect-ratio-lock
  330. Disable window aspect ratio lock.
  331.  
  332. --orientation=value
  333. Same as --display-orientation=value --record-orientation=value.
  334.  
  335. --otg
  336. Run in OTG mode: simulate physical keyboard and mouse, as if the computer keyboard and mouse were
  337. plugged directly to the device via an OTG cable.
  338. In this mode, adb (USB debugging) is not necessary, and mirroring is disabled.
  339. LAlt, LSuper or RSuper toggle the mouse capture mode, to give control of the mouse back to the
  340. computer.
  341. Keyboard and mouse may be disabled separately using--keyboard=disabled and --mouse=disabled.
  342. It may only work over USB.
  343. See --keyboard, --mouse and --gamepad.
  344.  
  345. -p, --port=port[:port]
  346. Set the TCP port (range) used by the client to listen.
  347. Default is 27183:27199.
  348.  
  349. --pause-on-exit[=mode]
  350. Configure pause on exit. Possible values are "true" (always pause on exit), "false" (never pause on
  351. exit) and "if-error" (pause only if an error occurred).
  352. This is useful to prevent the terminal window from automatically closing, so that error messages can
  353. be read.
  354. Default is "false".
  355. Passing the option without argument is equivalent to passing "true".
  356.  
  357. --power-off-on-close
  358. Turn the device screen off when closing scrcpy.
  359.  
  360. --prefer-text
  361. Inject alpha characters and space as text events instead of key events.
  362. This avoids issues when combining multiple keys to enter a special character, but breaks the expected
  363. behavior of alpha keys in games (typically WASD).
  364.  
  365. --print-fps
  366. Start FPS counter, to print framerate logs to the console. It can be started or stopped at any time
  367. with MOD+i.
  368.  
  369. --push-target=path
  370. Set the target directory for pushing files to the device by drag & drop. It is passed as is to "adb
  371. push".
  372. Default is "/sdcard/Download/".
  373.  
  374. -r, --record=file.mp4
  375. Record screen to file.
  376. The format is determined by the --record-format option if set, or by the file extension.
  377.  
  378. --raw-key-events
  379. Inject key events for all input keys, and ignore text events.
  380.  
  381. --record-format=format
  382. Force recording format (mp4, mkv, m4a, mka, opus, aac, flac or wav).
  383.  
  384. --record-orientation=value
  385. Set the record orientation.
  386. Possible values are 0, 90, 180 and 270. The number represents the clockwise rotation in degrees.
  387. Default is 0.
  388.  
  389. --render-driver=name
  390. Request SDL to use the given render driver (this is just a hint).
  391. Supported names are currently "direct3d", "opengl", "opengles2", "opengles", "metal" and "software".
  392. <https://wiki.libsdl.org/SDL_HINT_RENDER_DRIVER>
  393.  
  394. --render-fit=mode
  395. Set the render-fit mode to configure how the rendering fits the window.
  396. Possible values are "letterbox", "stretched" and "unscaled".
  397. "letterbox": preserve the aspect ratio and fit the window as best as possible (black bars are added
  398. either at the top and bottom or at the sides if needed).
  399. "stretched": fit the window without preserving the aspect ratio.
  400. "unscaled": render the display without scaling.
  401. Default is "letterbox", unless --flex-display is set, in which case it is "unscaled".
  402.  
  403. --require-audio
  404. By default, scrcpy mirrors only the video when audio capture fails on the device. This option makes
  405. scrcpy fail if audio is enabled but does not work.
  406.  
  407. -s, --serial=serial
  408. The device serial number. Mandatory only if several devices are connected to adb.
  409.  
  410. -S, --turn-screen-off
  411. Turn the device screen off immediately.
  412.  
  413. --screen-off-timeout=seconds
  414. Set the screen off timeout while scrcpy is running (restore the initial value on exit).
  415.  
  416. --shortcut-mod=key[+...][,...]
  417. Specify the modifiers to use for scrcpy shortcuts.
  418. Possible keys are "lctrl", "rctrl", "lalt", "ralt", "lsuper" and "rsuper".
  419. Several shortcut modifiers can be specified, separated by ','.
  420. For example, to use either LCtrl or LSuper for scrcpy shortcuts, pass "lctrl,lsuper".
  421. Default is "lalt,lsuper" (left-Alt or left-Super).
  422.  
  423. --start-app=name
  424. Start an Android app, by its exact package name.
  425. Add a '?' prefix to select an app whose name starts with the given name, case-insensitive (retrieving
  426. app names on the device may take some time):
  427. scrcpy --start-app=?firefox
  428. Add a '+' prefix to force-stop before starting the app:
  429. scrcpy --new-display --start-app=+org.mozilla.firefox
  430. Both prefixes can be used, in that order:
  431. scrcpy --start-app=+?firefox
  432.  
  433. -t, --show-touches
  434. Enable "show touches" on start, restore the initial value on exit.
  435. It only shows physical touches (not clicks from scrcpy).
  436.  
  437. --tcpip[=[+]ip[:port]]
  438. Configure and connect the device over TCP/IP.
  439. If a destination address is provided, then scrcpy connects to this address before starting. The device
  440. must listen on the given TCP port (default is 5555).
  441. If no destination address is provided, then scrcpy attempts to find the IP address of the current
  442. device (typically connected over USB), enables TCP/IP mode, then connects to this address before
  443. starting.
  444. Prefix the address with a '+' to force a reconnection.
  445.  
  446. --time-limit=seconds
  447. Set the maximum mirroring time, in seconds.
  448.  
  449. --tunnel-host=ip
  450. Set the IP address of the adb tunnel to reach the scrcpy server. This option automatically enables
  451. --force-adb-forward.
  452. Default is localhost.
  453.  
  454. --tunnel-port=port
  455. Set the TCP port of the adb tunnel to reach the scrcpy server. This option automatically enables
  456. --force-adb-forward.
  457. Default is 0 (not forced): the local port used for establishing the tunnel will be used.
  458.  
  459. -v, --version
  460. Print the version of scrcpy.
  461.  
  462. -V, --verbosity=value
  463. Set the log level (verbose, debug, info, warn or error).
  464. Default is info.
  465.  
  466. --v4l2-sink=/dev/videoN
  467. Output to v4l2loopback device.
  468. This feature is only available on Linux.
  469.  
  470. --v4l2-buffer=ms
  471. Add a buffering delay (in milliseconds) before pushing frames. This increases latency to compensate
  472. for jitter.
  473. This option is similar to --video-buffer, but specific to V4L2 sink.
  474. Default is 0 (no buffering).
  475. This option is only available on Linux.
  476.  
  477. --video-buffer=ms
  478. Add a buffering delay (in milliseconds) before displaying video frames.
  479. This increases latency to compensate for jitter.
  480. Default is 0 (no buffering).
  481.  
  482. --video-codec=name
  483. Select a video codec (h264, h265 or av1).
  484. Default is h264.
  485.  
  486. --video-codec-options=key[:type]=value[,...]
  487. Set a list of comma-separated key:type=value options for the device video encoder.
  488. The possible values for 'type' are 'int' (default), 'long', 'float' and 'string'.
  489. The list of possible codec options is available in the Android documentation:
  490. <https://d.android.com/reference/android/media/MediaFormat>
  491.  
  492. --video-encoder=name
  493. Use a specific MediaCodec video encoder (depending on the codec provided by --video-codec).
  494. The available encoders can be listed by --list-encoders.
  495.  
  496. --video-source=source
  497. Select the video source (display or camera).
  498. Camera mirroring requires Android 12+.
  499. Default is display.
  500.  
  501. -w, --stay-awake
  502. Keep the device on while scrcpy is running, when the device is plugged in.
  503.  
  504. --window-borderless
  505. Disable window decorations (display borderless window).
  506.  
  507. --window-title=text
  508. Set a custom window title.
  509.  
  510. --window-x=value
  511. Set the initial window horizontal position.
  512. Default is "auto".
  513.  
  514. --window-y=value
  515. Set the initial window vertical position.
  516. Default is "auto".
  517.  
  518. --window-width=value
  519. Set the initial window width.
  520. Default is 0 (automatic).
  521.  
  522. --window-height=value
  523. Set the initial window height.
  524. Default is 0 (automatic).
  525.  
  526. -x, --flex-display
  527. Continuously resize the virtual display to match the window.
  528.  
  529. Shortcuts:
  530.  
  531. In the following list, MOD is the shortcut modifier. By default, it's (left) Alt or (left) Super, but it
  532. can be configured by --shortcut-mod (see above).
  533.  
  534. MOD+q
  535. Quit
  536.  
  537. MOD+f
  538. F11
  539. Switch fullscreen mode
  540.  
  541. MOD+Left
  542. Rotate display left
  543.  
  544. MOD+Right
  545. Rotate display right
  546.  
  547. MOD+Shift+Left
  548. MOD+Shift+Right
  549. Flip display horizontally
  550.  
  551. MOD+Shift+Up
  552. MOD+Shift+Down
  553. Flip display vertically
  554.  
  555. MOD+z
  556. Pause or re-pause display
  557.  
  558. MOD+Shift+z
  559. Unpause display
  560.  
  561. MOD+Shift+r
  562. Reset video capture/encoding
  563.  
  564. MOD+g
  565. Resize window to 1:1 (pixel-perfect)
  566.  
  567. MOD+w
  568. Double-click on black borders
  569. Resize window to remove black borders
  570.  
  571. MOD+h
  572. Middle-click
  573. Click on HOME
  574.  
  575. MOD+b
  576. MOD+Backspace
  577. Right-click (when screen is on)
  578. Click on BACK
  579.  
  580. MOD+s
  581. 4th-click
  582. Click on APP_SWITCH
  583.  
  584. MOD+m
  585. Click on MENU
  586.  
  587. MOD+Up
  588. Click on VOLUME_UP
  589.  
  590. MOD+Down
  591. Click on VOLUME_DOWN
  592.  
  593. MOD+p
  594. Click on POWER (turn screen on/off)
  595.  
  596. Right-click (when screen is off)
  597. Power on
  598.  
  599. MOD+o
  600. Turn device screen off (keep mirroring)
  601.  
  602. MOD+Shift+o
  603. Turn device screen on
  604.  
  605. MOD+r
  606. Rotate device screen
  607.  
  608. MOD+n
  609. 5th-click
  610. Expand notification panel
  611.  
  612. MOD+Shift+n
  613. Collapse notification panel
  614.  
  615. MOD+c
  616. Copy to clipboard (inject COPY keycode, Android >= 7 only)
  617.  
  618. MOD+x
  619. Cut to clipboard (inject CUT keycode, Android >= 7 only)
  620.  
  621. MOD+v
  622. Copy computer clipboard to device, then paste (inject PASTE keycode, Android >= 7 only)
  623.  
  624. MOD+Shift+v
  625. Inject computer clipboard text as a sequence of key events
  626.  
  627. MOD+k
  628. Open keyboard settings on the device (for HID keyboard only)
  629.  
  630. MOD+i
  631. Enable/disable FPS counter (print frames/second in logs)
  632.  
  633. Ctrl+click-and-move
  634. Pinch-to-zoom and rotate from the center of the screen
  635.  
  636. Shift+click-and-move
  637. Tilt vertically (slide with 2 fingers)
  638.  
  639. Ctrl+Shift+click-and-move
  640. Tilt horizontally (slide with 2 fingers)
  641.  
  642. Drag & drop APK file
  643. Install APK from computer
  644.  
  645. Drag & drop non-APK file
  646. Push file to device (see --push-target)
  647.  
  648. MOD+t
  649. Turn on the camera torch (camera mode only)
  650.  
  651. MOD+Shift+t
  652. Turn off the camera torch (camera mode only)
  653.  
  654. MOD+Up
  655. Zoom camera in (camera mode only)
  656.  
  657. MOD+Down
  658. Zoom camera out (camera mode only)
  659.  
  660. Environment variables:
  661.  
  662. ADB
  663. Path to adb executable
  664.  
  665. ANDROID_SERIAL
  666. Device serial to use if no selector (-s, -d, -e or --tcpip=<addr>) is specified
  667.  
  668. SCRCPY_ICON_DIR
  669. Path to the icon directory
  670.  
  671. SCRCPY_SERVER_PATH
  672. Path to the server binary
  673.  
  674. Exit status:
  675.  
  676. 0 Normal program termination
  677. 1 Start failure
  678. 2 Device disconnected while running
Advertisement
Add Comment
Please, Sign In to add comment