Mirroring android via scrcpy
- install scrcpy
- Enable USB Debugging and connect your android device via USB.
- Make sure your phone is on the same network as your PC.
- Run adb tcpip 5555
- Now, run adb connect <your android’s ip address>:5555
- Now you can disconnect the device from USB and whenever you want, just run scrcpy and enjoy!
- You don’t have to connect your phone via USB ever again. Just run the second adb command followed by scrcpy.
- You can put these commands in a script and assign a shortcut to it!