Scrcpy was created by the team behind the popular Android emulator Genymotion, but it is not an Android emulator itself, it displays and controls Android devices connected via USB or TCP/IP, it does not require any root access. It works with GNU/Linux, Windows, and MacOS.
Scrcpy works by running a server on your Android device, and the desktop application communicates using USB (or using ADB tunneling wireless). The server streams the H.264 video of the device screen. The client decodes the video frames and displays them. The client captures input (keyboard and mouse) events, sends them to the server, and the server injects them into the device. The documentation provides more details.
If you want to see your Android screen interact with the app or content on your desktop, record your phone screen or perform other basic tasks, then Scrcpy is a good choice.
In short, Scrcpy is an excellent way to easily view your Android screen on your computer and interact with it in real time.
The Android device requires at least API 21 (Android 5.0).
Make sure you enabled adb debugging on your device(s).
On some devices, you also need to enable an additional option to control it using keyboard and mouse.
Install scrcpy and configure environment variables
Linux
On Linux, you typically need to build the app manually. Don't worry, it's not that hard.
A Snap package is available: scrcpy
.
Windows
For Windows, for simplicity, prebuilt archives with all the dependencies (including adb
) are available:
scrcpy-win32-v1.10.zip
(SHA-256: f98b400b3764404b33b212e9762dd6f1593ddb766c1480fc2609c94768e4a8e1)scrcpy-win64-v1.10.zip
(SHA-256: 95de34575d873c7e95dfcfb5e74d0f6af4f70b2a5bc6fde0f48d1a05480e3a44)You can also build the app manually.
macOS
The application is available in Homebrew. Just install it:
brew install scrcpy
You need adb
, accessible from your PATH
. If you don't have it yet:
brew cask install android-platform-tools
You can also build the app manually.
Click here to download App.
Make sure the phone is connected to the computer via the data cable
Wait for the software to automatically detect the device
Select the device and click Open Selected Mirror
.
Wait for the device to open
Open wireless connection
Open Selected Mirror
.Action | Shortcut | Shortcut (macOS) |
---|---|---|
Switch fullscreen mode | Ctrl +f |
Cmd +f |
Resize window to 1:1 (pixel-perfect) | Ctrl +g |
Cmd +g |
Resize window to remove black borders | Ctrl +x | Double-click¹ |
Cmd +x | Double-click¹ |
Click on HOME |
Ctrl +h | Middle-click |
Ctrl +h | Middle-click |
Click on BACK |
Ctrl +b | Right-click² |
Cmd +b | Right-click² |
Click on APP_SWITCH |
Ctrl +s |
Cmd +s |
Click on MENU |
Ctrl +m |
Ctrl +m |
Click on VOLUME_UP |
Ctrl +↑ (up) |
Cmd +↑ (up) |
Click on VOLUME_DOWN |
Ctrl +↓ (down) |
Cmd +↓ (down) |
Click on POWER |
Ctrl +p |
Cmd +p |
Power on | Right-click² | Right-click² |
Turn device screen off (keep mirroring) | Ctrl +o |
Cmd +o |
Expand notification panel | Ctrl +n |
Cmd +n |
Collapse notification panel | Ctrl +Shift +n |
Cmd +Shift +n |
Copy device clipboard to computer | Ctrl +c |
Cmd +c |
Paste computer clipboard to device | Ctrl +v |
Cmd +v |
Copy computer clipboard to device | Ctrl +Shift +v |
Cmd +Shift +v |
Enable/disable FPS counter (on stdout) | Ctrl +i |
Cmd +i |
¹Double-click on black borders to remove them.²Right-click turns the screen on if it was off, presses BACK otherwise.
This project was generated with electron-vue@8fae476 using vue-cli. Documentation about the original structure can be found here.
Feel free to open issues or PRs for any problem you may encounter, typos that you see or aspects that are confusing. Contributions are welcome, open an issue or email me if you have something you want to work on.
# install dependencies
npm install
# serve with hot reload at localhost:9080
npm run dev
# build electron application for production
npm run build
# lint all JS/Vue component files in `src/`
npm run lint
If you like scrcpy-gui
and it really helps you, please give me a cup of coffee~
paypal: https://paypal.me/tomotoes
GNU GPLv3
scrcpy 将 Android 手机屏幕实时投射到电脑 参考: Github - Genymobile/scrcpy Build scrcpy 从软件库安装 Linux # ubuntu apt install scrcpy # arch aur yay -S scrcpy 使用 连上手机(打开“usb调试”) 电脑运行 scrcpy,GUI启动,立即投射当前手机屏幕 多个手机同时连接 $
scrcpy 是一个在电脑上显示和控制 Android 设备的命令行工具,适用于 GNU/Linux、Windows 和 Mac OS,且无需 root 。 scrcpy 没有可视化界面。但需要用 USB 把 Android 设备和电脑连起来,之后即可使用电脑的鼠标、触控板、键盘等控制设备。 scrcpy 要求 Android 5.0 及以上版本。
本文向大家介绍Ubuntu安装scrcpy完成手机投屏和控制(Ubuntu用QQ微信的另一种方法),包括了Ubuntu安装scrcpy完成手机投屏和控制(Ubuntu用QQ微信的另一种方法)的使用技巧和注意事项,需要的朋友参考一下 Scrcpy 安装 snap install scrcpy adb服务安装 sudo apt-get install android-tools-adb adb配置 查
问题内容: 什么是好的Java Swing日期选择器组件?到目前为止,我只真正发现了这些2: -这是非常好的,因为它使用了基本的外观。 在SwingX项目中-不如它使用自己的外观和感觉 与我在网页上看到的相比,这两者看起来都有些笨拙。例如,最好同时看到 多个月 。有人知道那里有其他好用的小部件吗? 问题答案: 最近,我发现并使用Microba DatePicker(http://microba.s
问题内容: 我是Java编程的新手,想知道是否可以在Java GUI应用程序中获得Windows本机外观。显然,Swing无法正常工作。 问题答案: 使用以下内容: 阅读UIManager和如何设置外观以获取更多信息。
问题内容: 我对Java还是有些陌生,并且喜欢使用JetBrains团队开发的IntelliJ IDE。 我已经下载了Community Edition的源代码,并且正在尝试弄清他们正在使用哪些GUI库来获得外观。 题 他们使用什么库(如果有)来获取非本机选项卡,工具栏和面包屑组件? 他们使用的面板也很有趣,但是我觉得它们是为该项目开发的,而不是图书馆。这是真的? 有人可以提供在GUI项目中产生相
问题内容: 我想知道是否有关于使用Java进行声明性GUI编程的建议。(我讨厌基于视觉的GUI创建者/编辑器软件,但是对手动实例化JPanels和Boxes以及JLabel和JLists等感到有点厌倦。) 这是我的总体问题,但是对于我正在考虑采用的方法,我有两个具体问题: JavaFX:在JavaFX中是否有一个实际的GUI显示示例(例如,不是圆形和矩形,而是列表框,按钮和标签等),可以与访问和更