Get the App
SLTechnology News&Howtos  ›  Development  › 

How Linux projects Android screens

Shulou Source: shulou.com Published: 2022-06-01 21:34:31 10月04日 Update

Today, the editor will show you how Linux projects the Android screen. The knowledge points in the article are introduced in great detail. Friends who feel helpful can browse the content of the article with the editor, hoping to help more friends who want to solve this problem to find the answer to the problem. Follow the editor to learn more about "how Linux projects the Android screen".

Experimental environment

Ubuntu 18.04

At least version 5.0 Android devices

ADB debugging needs to be enabled. On some devices, you also need to enable USB debugging in the safe mode option. In fact, this feature is critical to managing Android devices through USB.

ADB and Fastboot are installed.

To download and install it, simply run the following command:

[linuxidc@linux:~/www.linuxidc.com] $sudo apt-get install android-tools-adb android-tools-fastboot

After installation, check the version of ADB using the following command:

[linuxidc@linux:~/www.linuxidc.com] $adb version

The output is similar to the following:

Android Debug Bridge version 1.0.39Version 1:8.1.0+r23-5~18.04Installed as / usr/lib/android-sdk/platform-tools/adb

Android devices connected to a computer through USB can also be connected wirelessly. However, this connection has no effect.

Step 1. Install the scrcpy snap package.

The Snapd package is available in Ubuntu 16.04, so there is no need to install it. If you want to install Scrcpy, run the following command directly:

[linuxidc@linux:~/www.linuxidc.com] $sudo snap install scrcpyscrcpy v1.12 from sisco311 installed

The snapshot package has been updated to the latest version of scrcpy available. It also installs the snapshot core dependencies needed to run the program.

Step 2. Connect your mobile phone through USB.

After the preparation work is completed, you only need to connect your phone with a USB cable.

Step 3. Start Scrcpy.

Then run the following command from the terminal:

Scrcpy

Note that the Android device screen must be unlocked. In addition, confirm the USB connection by accepting the pop-up window on the phone.

Start scrcpy

After the program starts, you can manage and transfer Android screens in Ubuntu.

To stop the Scrcpy server, simply run this command.

Scrcpy.adb kill-server

If you finally decide to uninstall it, run it from the terminal:

Sudo snap remove scrcpy

What are the versions of Linux? the versions of Linux are Deepin, UbuntuKylin, Manjaro, LinuxMint, Ubuntu and so on. Among them, Deepin is one of the best-developed Linux distributions in China; UbuntuKylin is a derivative release based on Ubuntu; Manjaro is a Linux release based on Arch; LinuxMint's default Cinnamon desktop is similar to Windows XP's easy-to-use; Ubuntu is the Linux operating system based on desktop applications.

Thank you for your reading. This is the whole content of "how Linux projects Android screens". Friends who learn to learn to do it quickly. I believe that the editor will certainly bring you better quality articles. Thank you for your support to the website!

Tags: Version run screen command device mobile phone friend step program release content just need snapshot article desktop knowledge terminal follow software software package Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Docker Shulou Technology Shulou Information MariaDB