Skip to content

Instantly share code, notes, and snippets.

@lucasmz-dev
Last active July 16, 2026 13:05
Show Gist options
  • Select an option

  • Save lucasmz-dev/020b9001131026f9ecd8953c3fa598fa to your computer and use it in GitHub Desktop.

Select an option

Save lucasmz-dev/020b9001131026f9ecd8953c3fa598fa to your computer and use it in GitHub Desktop.
Installing android-tools in Fedora

How to properly install android-tools in Fedora

Currently, it seems as if Fedora doesn't install udev-rules, to get this working, I've had to manually install them from a community project. I'm not very knowledgable in Linux, these are just the steps I had to do to get things working that I'd like to document.

Install android-tools

Install android-tools from DNF.

sudo dnf install android-tools

Install udev-rules

We'll be using this project.

Follow the instructions in the README of the project. Clone the repo, and run sudo ./install.sh from it.

Replug your devices

You might have to replug your devices, if that doesn't work, try rebooting, or even turning off your PC completely and out of power before turning on and replugging.

If you're trying to use ADB on a device that has USB restrictions, depending on the OS, you might have to replug with the device unlocked.

Also run adb kill-server.


Other titles:

  • android-tools broken in Fedora Linux
  • fastboot/adb broken in Fedora Linux
  • 'no permissions' error in android platform tools
@gbraad

gbraad commented May 26, 2026

Copy link
Copy Markdown

To use the rules, your user needs to be in the plugdev group:

sudo groupadd plugdev
sudo usermod -aG plugdev $USER
sudo ln -s /usr/share/doc/android-tools/51-android.rules /etc/udev/rules.d

I think your coding agent forgot to add these

@gbraad

gbraad commented May 26, 2026

Copy link
Copy Markdown

@tempodat

Copy link
Copy Markdown

Doing this on Fedora 44 I had problems with wireless debugging, and it seems like the reason is that the android-tools package from fedora wasn't compiled with the mdns feature, so running adb mdns services or adb mdns check just threw errors. To get it to work I had to reinstall adb using google's binaries.

This is for a system-wide installation:

# remove fedora's binaries
sudo dnf remove android-tools

# download google's binaries
cd /tmp
wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip
unzip platform-tools-latest-linux.zip
sudo mv platform-tools /opt/

# add binaries to system path
echo 'export PATH="/opt/platform-tools:$PATH"' | sudo tee /etc/profile.d/android-tools.sh
source /etc/profile.d/android-tools.sh

I also had to enable mdns traffic through my firewall:

sudo firewall-cmd --add-service=mdns --permanent
sudo firewall-cmd --reload

Hope this helps someone :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment