@freeopensource @howto @tutorial
#ADBtutorial #scrcpyTutorial
.. or #howTo get your cellphone onto your computer.
A thread about the tool adb to access your android cellphone and become able to do all the stuff of your hand held computer from your desktop. You don't have to root your phone to be able to use #ADB, but you do have to switch developers mode on. You can do that in settings, depending on your android version, somewhere in a settings subfolder by tapping like ten times on the serial number (or something like that) of your phone. Next you have to open the "developer options" section that has appeared at the bottom of the settings section and enable "debugging with USB".
ADB is also available on windows, perhaps MacOS, yet the info here is from the view point of a #linux #debian #desktop. Except a few details, things shouldn't be different for users of proprietary operating systems.
How to install ADB and connect your phone to your computer | click to open/close
To install ADB:
apt get install adb
Connect your phone with a USB cable to your desktop computer.
Open the console of your computer and type or copy/paste:
adb devices
ADB will list you the TCP port it opens for the USB connection and the device (or devices) connected that it recognizes.
The output will be something like this:
:~$ adb devices
List of devices attached
4xxxxxxxxxxxxd device
Another necessary program for your desktop computer is scrcpy. This program allows you to project the screen of your cell phone onto your desktop screen if you have ADB installed.
To install #scrcpy:
apt get install scrcpy
Important note about the scrcpy versions and compatibilityThis program is, from the coding point of view, in full development mode. To prevent to run into compatibility trouble with your installed ADB version, in particular when using ADB over WIFI, you should pull the scrcpy installation from the github page instead of installing the package of the debian package manager.
The github page has links to SNAP versions as well as pull instructions. A recent intent of using a SNAP version here on KubuntuStudio created an incompatibility of versions too, so the best you can do is run the github instructions to pull the latest code from github.
Here a copy of the actual (19-06-2024) instruction.
github code to pull latest scrcpy from githubgithub.com/Genymobile/scrcpy/b…
for Debian/Ubuntu
First, you need to install the required packages:
sudo apt install ffmpeg libsdl2-2.0-0 adb wget gcc git pkg-config meson ninja-build libsdl2-dev libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev libswresample-dev libusb-1.0-0 libusb-1.0-0-dev
Than clone the repo and execute the installation script:
git clone https://github.com/Genymobile/scrcpy
cd scrcpy
./install_release.sh
When a new release is out, update the repo and reinstall:
git pull
./install_release.sh
To uninstall:
sudo ninja -Cbuild-auto uninstall
Detailed Information about scrcpy commands:
github.com/Genymobile/scrcpy/t…
To see and have access to your cell phone from your computer you have to first start adb and connect the cellphone and than type in the console:
scrcpy
.. voila ..
#scrcpy
1 posts · Last used 2d
You've seen all posts