[Linux] Update adb & fastboot to the latest version

The latest version of adb is 1.0.39, however the version available from the Ubuntu repositories is 1.0.32. The repo version is dated March 2016, however ADB v1.0.32 was released when Lollipop launched.

Google recently made it easier to grab just the latest platform tools rather than download the whole Android SDK. I’ve written a small script to manually update adb and fastboot.

wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip
unzip \platform-tools-latest-linux.zip
sudo cp platform-tools/adb /usr/bin/adb
sudo cp platform-tools/fastboot /usr/bin/fastboot

Now run adb version to verify it’s been updated.

Copy & paste that into your favorite text editor like gedit or notepadqq, save it as a shell script and make it executable. When a new version of Android is released would be a good time to run it in case there’s new version of the platform tools.



  1. For those of you who get the following output while trying to execute flash-all.sh when flashing a factory image from google:

    “wiping userdata…
    /usr/local/bin/mke2fs failed with status 1
    error: Cannot generate image for userdata”

    you need to run sudo install mke2fs /usr/lib/android-sdk/platform-tools/mke2fs


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.