this post was submitted on 05 Jun 2025
4 points (100.0% liked)

Linux Mint

2455 readers
2 users here now

Linux Mint is a free Linux-based operating system designed for use on desktop and laptop computers.

Want to see the latest news from the blog? Set the Firefox homepage to:

linuxmint.com/start/

where is a current or past release. Here's an example using release 21.1 'Vera':

https://linuxmint.com/start/vera/

founded 4 years ago
MODERATORS
 

Hi guys, wanted to know what is the replacement for adb and Fastboot tools to gain shell access to Android devices in Linux?

top 10 comments
sorted by: hot top controversial new old
[–] CoyoteFacts@lemmy.ca 6 points 3 days ago (1 children)
[–] aprehendedmerlin@lemmy.dbzer0.com 1 points 3 days ago (2 children)

Should I install adb and Fastboot using apt or get sdk platform tools directly from google and extract that somewhere and run terminal from there

[–] CoyoteFacts@lemmy.ca 3 points 3 days ago (2 children)

Generally, when you use apt you're installing from your distro maintainer's software repository (aka Linux Mint), who will have personally vetted and compiled the software available. This is usually the best and most seamless option as it will continually update itself along with the rest of your system, but the software version from the repo may lag behind compared to the latest releases directly from Google. If you grab it manually from Google, it will be the latest version available, but it will be your responsibility to keep it updated.

[–] NeatNit@discuss.tchncs.de 1 points 3 days ago

Just a nitpick: the version will let behind in all Debian-based distros, there's no "may" about it. Any software that is still receiving regular updates will have a much older version in the distros' apt repositories, often even several years old. It might still be fine - apt is a good example, the old version can almost definitely do everything you need - but it's important to be aware of this.

Thank you. I got it

[–] Kory@lemmy.ml 3 points 3 days ago (1 children)

LineageOS has a detailed wiki on this: https://wiki.lineageos.org/adb_fastboot_guide#installing-adb-and-fastboot (scroll down to "On Linux")

It worked well for me without messing with the udev rules.

Thanks So it's Downloading Android sdk platform tools from google extracting it somewhere and adding the path to it to system. I remember I did something similar on windows too. from what others said it seems to be either this or installing them with apt.

[–] HereToChewGum@fosstodon.org 2 points 3 days ago (1 children)

@aprehendedmerlin
How to install ADB and Fastboot on Linux

You get adb and fastboot available in the default repository of almost every modern Linux distribution and it does not require any third-party repository.

So let's take a look at how those two packages can be installed on various Linux distributions.

For Ubuntu/Debian:

sudo apt install adb fastboot

Yeah I installed both FastBoot and ADB with apt thank you

I use ADB and fastboot as my replacement for ADB and fastboot in Windows.