I have had installed in my ubuntu 20 the android-tools-adb android-tools-fastboot from the package.
I found out that they were outdated , so I have try to download the latest one from Android.
I delte the tools but when I was trying to connect a device through adb devices it was still connecting to it.
So I delete with rm -rf the adb and the fastboot from usr/bin
Then I did this:
`#!/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`
After that the phone was not connecting through adb cause it says that it was measing usr/bin/adb so I install the adb with this command:
cd platform-tools
sudo install adb /usr/bin/adb
sudo install fastboot /usr/bin/fastboot
And then I could use it.
Now I dont know if all the other files from the extract of the platform-tools are also installed or not?
this is what I get from terminal:
noax@noax:~$ echo $PATH
/home/noax/platform-tools:/home/noax/.local/bin:/home/noax/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
noax@noax:~$ which -a adb /home/noax/platform-tools/adb /usr/bin/adb/bin/adb
noax@noax:~$ which -a fastboot
/home/noax/platform-tools/fastboot /usr/bin/fastboot /bin/fastboot
noax@noax:~$