The aim is to rearrange PATH, to do just that, to use the whole suite of tools just from /home.
but broke all of them
I don’t understand this.
Quite what
sudo install adb /usr/bin/adb
would do, I am uncertain.
The aim is to rearrange PATH, to do just that, to use the whole suite of tools just from /home.
but broke all of them
I don’t understand this.
Quite what
sudo install adb /usr/bin/adb
would do, I am uncertain.
Ok
i have take the chance. I have uninstall all the break files in usr that were from platform-tools and I have delete adb and fastboot in both /bin and /usr/bin
Now I can start from 0 , I guess
Ok I connect device and I start:
oax@noax:~$ adb devices
bash: /usr/bin/adb: No such file or directory
noax@noax:~$ fastboot devices
bash: /usr/bin/fastboot: No such file or directory
noax@noax:~$
Please don’t connect the device! We will check availability of the commands as before with
which -a adb
which -a fastboot
ok
noax@noax:~$ which -a adb
/home/noax/platform-tools/adb
noax@noax:~$ which -a fastboot
/home/noax/platform-tools/fastboot
noax@noax:~$
So can you confirm you still have
/home/noax/platform-tools_r32.0.0-linux.zip
and
/home/noax/platform-tools
so perhaps confirm for yourself that if you
cd platform-tools
ls
you see the list of all platform-tool components?
Now still in the platform-tools folder please can you confirm that both abd and fastboot are available.
pwd
./adb version
./fastboot --version
noax@noax:~/platform-tools$ ./fastboot --version
fastboot version 32.0.0-8006631
Installed as /home/noax/platform-tools/fastboot
noax@noax:~/platform-tools$ ./adb version
Android Debug Bridge version 1.0.41
Version 32.0.0-8006631
Installed as /home/noax/platform-tools/adb
noax@noax:~/platform-tools$
The last version still
Now we are back to your question at Post #8
here we have assumed you have saved the downloaded files to a folder named platform-tools and this is in your home directory.
… have we just shown that is true?
Yes , it is in the home folder
Now we try to add to .bashrc
export PATH="$HOME/platform-tools:$PATH"
Log out and login
adb version
fastboot --version
To do that I have to be in home and press ctrl +h and then copy paste the line at the end of all the lines. Isnt?
here the last lines in bashrc:
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
alias adb=’/usr/bin/adb’
alias fastboot=’/usr/bin/fastboot’
export PATH="$HOME/platform-tools:$PATH"
and it is in line number 120
Ctrl +h
is only about helping you to find ~/.bashrc. Did you find it ok?
That looks ok! Except we don’t want those alias.
Please rewrite as
#alias adb=’/usr/bin/adb’
#alias fastboot=’/usr/bin/fastboot’
export PATH="$HOME/platform-tools:$PATH"
So you want me to put #
in front of the alias?
And what about the other alias in the baschrc??
Do you want a full baschrc text?
Yes to " # in front of the alias" .What other alias do you see, they might be required. I believe just these two are not right for us.
Now I have made the changes and I have log out and log in again
noax:~$ adb version
Android Debug Bridge version 1.0.41
Version 32.0.0-8006631
Installed as /home/noax/platform-tools/adb
noax@noax:~$ fastboot --version
fastboot version 32.0.0-8006631
Installed as /home/noax/platform-tools/fastboot
noax@noax:~$
I love u
I might say that then maybe in the documentation , that with the alias has to be said and re-write?
And so anytime that I have to update the tools I have just to extract it to HOME and then it will be possible to use it without doing anything else?
That alias thing might be a Ubuntu thing, I don’t know. Perhaps write nothing now till it is tested!
Do you want me to test it ?
You can do a little gentle communicating with you device like
adb devices
fastboot devices
noax@noax:~$ adb devices
noax@noax:~$ adb reboot bootloader
noax@noax:~$ fastboot devices
noax@noax:~$ fastboot devices
4566 fastboot
noax@noax:~$ fastboot reboot
Rebooting OKAY [ 0.000s]
Finished. Total time: 0.051s
noax@noax:~$
Seems that it works with the gentle commands