Seeing and being able to control what happens on our phone from the computer has a series of advantages. On the one hand, it allows you to use devices such as the keyboard and the mouse to write texts, move between menus or make adjustments.
On the other hand, it means the possibility of viewing the photos and videos contained in the terminal on a larger screen without having to copy them to an external storage unit.
For this, there are programs and methods of screen mirroring that work with greater or lesser efficiency, but they are generally executed from computers equipped with Windows. For example, AirDroid or Vysor, among other free or paid programs.
In the case of a computer Raspberry Pi 4 the supply of this type of software is not so abundant, given the lower diffusion of its Linux-based operating system.
Fortunately, there is a tool like scripty, with which it is possible to make an almost instantaneous duplication and with a transmission of images in high definition. Also, without the need to perform root procedures or install additional applications on the Android terminal.
Actually, all you need is a USB cable to connect both computers and download the Scrcpy program to the Raspberry Pi 4 computer.
How to Download Scrcpy to a Raspberry Pi 4
This process is very simple thanks to the Pi Apps store, exclusive to the Raspberry Pi platform. If you still do not have Pi Apps installed on your Raspberry Pi 4, check the following article to learn how to do it: https://alfanotv.com/laptops/descargar-programas-para-raspberry-pi-desde-pi-apps-en- one-step/.
Once the Pi Apps store is installed, downloading and installing Scrcpy is a very simple task. Open Pi Apps, go to the Tools section and download the AndroidBuddy program, which is responsible for providing the interface to interact with Scrcpy.
How to Share Android Screen to Raspberry Pi with Scrcpy
Connect the Android terminal to your Raspberry Pi through one of its USB ports and make sure to activate USB debugging. Next, go to Start Menu > System Tools and select Scrcpy. From this moment on, everything that happens on the Android terminal screen will be reflected on the computer screen, and can be controlled with the keyboard and mouse.
Note: The option to enable USB debugging is one of the Android System Developer Options. To learn more about this topic, check out the following articles:
How to run Scrcpy from Windows
Scrcpy is a cross-platform program, so it can be run from Windows as well, both 32-bit and 64-bit. Its executable files are available on the page Sourceforge.net and can be downloaded for free.
The procedure to mirror the Android screen on Windows with Scrcpy is the same as the one proposed with Raspberry Pi 4.