IntelliJ/Android Studio plugin for running and managing scrcpy and adb devices (USB & WiFi both)
I am an Android Developer myself and I always use scrcpy ❤ to test my work on my phone.I feel lazy to launch scrcpy from terminal everytime. So I thought why not make a plugin for this so it would help all the Android Developers!
- One Click to switch USB Device to WiFi
- Run scrcpy on multiple devices effortlessly
- Disconnect WiFi Devices
- Connect WiFi Devices
- All options from scrcpy v1.17 are configurable from the UI
- Quick Shortcuts button for you to remember scrcpy shortcuts
- Easy installation, scrcpy does not need to be added in your system's PATH Variable
- Shortcuts are directly loaded from scrcpy's GitHub README if you are connected to the internet, else static shortcuts are loaded from scrcpy v1.16
- Works on Android Studio 4.0+ and other IntelliJ-based IDEs with build number
193.4099.13
and above adb
andscrcpy
installed (need not be configured inPATH
)
Install the plugin in Android Studio/IntelliJ-based IDE via:
- Search for 'scrcpy Controller', install, and restart IDE
- Download latest plugin zip (should contain latest version in file name e.g. 0.1.0) from releases
- From Android Studio/IntelliJ-based IDE, open Settings -> Plugins -> Settings Icon -> Install plugin from disk and select the downloaded plugin zip -> Restart IDE
- Download and extract scrcpy to any folder of your choice
- Go to IDE Settings -> Tools -> Scrcpy Controller -> Enter/choose the location of the previously extracted scrcpy release -> Click on Test button to verify selected/entered path -> Ok button
If you like this plugin, please don't forget to leave a rating on the JetBrains Plugins Marketplace
- All options visible in the UI excluding the devices table (obviously) persist their values across IDE Restarts!
- The
To WiFi
button will automatically try to switch your USB-connected device to WiFi adb by:- Restarting adbd in tcpip mode (uses the port entered in
ADB WiFi
section or5555
(default)) - Extract device's local WiFi IP and run's
adb connect
on the extracted IP
- Restarting adbd in tcpip mode (uses the port entered in
- You can configure advanced, rarely-used options for scrcpy from IDE Settings -> Tools -> Scrcpy Controller
- Devices with
scrcpy
currently running have a•
added to their serial
Main Tool Window | Settings | Shortcuts dialog |
---|---|---|
ADB Tester | scrcpy Tester |
---|---|
- Feel free to make a PR for feature additions/bugs
- This repository follows Google (2-space indents) coding style, so please keep this in mind while making PRs
- If you use the plugin's stop button to terminate an active scrcpy recording session with
mp4
extension, themp4
file is not playable. This is being caused by Java'sProcess
not interrupting scrcpy session properly. Similar issue exists withmkv
extension, although themkv
file can be played properly, it is not seekable.
Workaround: Close the scrcpy session with the window's close button - jadb throws an exception if any connected device becomes offline, hence devices list is not refreshed
- Provide better UI/UX
- Add support for sndcpy
- Check and install
scrcpy
updates
- This project would not have been possible without scrcpy (of course)!
- I've spent endless nights making this plugin work well! If you liked my work, consider donating me via UPI (ID:
shripal17@okaxis
, Shripal Jain) (works only in India, open link in smartphone) or PayPal
Copyright 2021 Shripal Jain
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.