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
.
#!/bin/bash
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.
Thank You!! This worked perfectly:)
LikeLike
works fine
LikeLike
Thanks alot
LikeLike
Thanks
LikeLike
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
LikeLike
thanks.
LikeLike
excellent !
LikeLike
Still works great. Thanks
LikeLike