Scrcpy v4.0
Scrcpy, the popular open-source tool for mirroring Android devices, just dropped v4.0, packed with significant upgrades. This release transitions to SDL3, enabling better aspect ratio handling and dynamic "flex" displays for virtual screens. Its continued development and focus on performance and usability resonate strongly with the HN community's appreciation for robust, well-maintained utilities.
The Lowdown
Scrcpy, the free and open-source application renowned for mirroring Android devices to desktops with low latency and high performance, has released its highly anticipated v4.0. This major update brings a host of new features, performance enhancements, and crucial bug fixes, solidifying its position as a go-to tool for Android developers and power users.
- Core Infrastructure Upgrade: Migrated from SDL2 to SDL3, promising improved maintenance, bug fixes, and enabling new functionalities like native aspect-ratio locking for windows.
- Dynamic Flex Displays: Introduces
--flex-displayto create virtual Android displays that dynamically resize along with the client window, enhancing flexibility for development and testing. - Enhanced Camera Control: Users can now control camera torch (on/off) and zoom levels directly from the desktop client via new shortcuts and command-line options.
- Improved UI/UX: Aspect ratio is now preserved during window resizing, eliminating black borders; a new
--keep-activeoption prevents device sleep without system-wide changes; default dark gray background is now customizable. - Better Connection Feedback: A "disconnected" icon now appears for 2 seconds before closing the window upon connection loss, preventing confusion about crashes.
- Significant Bug Fixes: Addresses specific issues like flickering on Meta Quest devices and a curious bug causing high CPU usage when playing audio silence due to denormal numbers in the OPUS decoder, among many others.
- Dependency Upgrades: Includes updates to underlying libraries such as adb (platform-tools), FFmpeg, SDL, and dav1d, ensuring modern compatibility and performance.
Scrcpy v4.0 represents a substantial leap forward for the tool, offering greater control, a more polished user experience, and robust stability. These improvements underline its commitment to providing an efficient and reliable solution for Android device interaction from a desktop environment.