I want to connect my phone to my laptop.

Prepare the phone

  1. Install adb on Ubuntu
sudo apt install android-tools-adb
  1. Enable Developer Options SettingsAbout Phone → Tap Build Number 7 times.

Go to SystemDeveloper Options

Enable USB Debugging

  1. Plug in phone via USB → Approve ADB debugging Run:
adb devices

Make sure phone appears in the list.

Use the app

wget https://github.com/Genymobile/gnirehtet/releases/download/v2.5.1/gnirehtet-rust-linux64-v2.5.1.zip
unzip gnirehtet-rust-linux64-v2.5.1.zip
cd gnirehtet-rust-linux64/
chmod +x gnirehtet

Run

./gnirehtet