I am about to install lineageOS on an old SAMSUNG Galaxy A5. adb is one of the tools needed for this.
Now I apparently have it installed
adb --help
Android Debug Bridge version 1.0.41
Version 33.0.3p2-android-tools
Installed as /usr/bin/adb
....
which adb
/usr/bin/adb
however it seems like 34 would be the current version and it seems to matter using the most recent version. Now, despite what I posted above it seems pacman does not now of adb and I am wondering how I can find out more about the /usr/bin/adb that obviously exists and how to get rid of it cleanly.
Maybe it even is irrelevant to my current task where I can run adb34 independently, but I still would like to get to the bottom of this for the sake of getting more comfortable with Manjaro/pacman.
EDIT: “pacman does not know of it”
$ pacman -Qi adb
error: package 'adb' was not found
$ pacman -Sl | grep adb
extra mariadb 10.10.3-1
extra mariadb-clients 10.10.3-1
extra mariadb-libs 10.10.3-1
extra mobile-broadband-provider-info 20221107-2 [installed]
extra perl-dbd-mariadb 1.22-2
extra perl-file-readbackwards 1.06-3
community firefox-adblock-plus 3.16.1-1
community python-adb-shell 0.4.3-1
community python-adblock 0.6.0-1
true, that is 33.0.xxx. Would you recommend to use the 33 Version, over the most recent? Maybe it’s a question of whoms (LineageOS vs Manjaro) recommendation to follow.
Extract the ZIP to an easily-accessible location (like the Desktop for example).
Open a Terminal window.
Enter the following command: cd /path/to/extracted/folder/
This will change the directory to where you extracted the ADB files.
Example: cd /Users/Doug/Desktop/platform-tools/
Connect your device to your Linux machine with your USB cable. Change the connection mode to “file transfer (MTP)” mode. This is not always necessary for every device, but it’s recommended so you don’t run into any issues.
Once the Terminal is in the same folder your ADB tools are in, you can execute the following command to launch the ADB daemon: ./adb devices
Back on your smartphone or tablet device, you’ll see a prompt asking you to allow USB debugging. Go ahead and grant it.
Since 34 is very new and is released with the beta of Android 14, I would not use it just yet. Of course if you plan to install Android 14, I would use it. But for 13 over less, it doesn’t really matter if you use 33 or 34.