The best ADB commands

The best ADB commands for your Android phone and its functions

As you know, anyADB command runs from the computer, openingSystem Symbol. If you have ADB installed in‘The whole system’, you don't have to mark a route. Otherwise, you will have to open thecommand console directly in the folder where the Android SDK is installed. Be that as it may, we will proceed with the best ADB commands that you can use with your Android device.

Before you begin, remember to activate Developer Options and, specifically, the mode ofUSB debugging.

adb devices

This command is the initial one; We will use it whenever we are going to start with the ADB commands, because it is the one that will tell us if the computer and the Android terminal are communicating correctly. When you put it, you will simply show us theserial number of the device, in case everything is working correctly. Otherwise, we must check connections, the installation of the SDK or the driver –etctera- and if we have enabled the use on the terminal screen.

adb reboot

If you wantrestart the mobile You have several options, and one of them is to do it through theADB commandsIf you are executing certain functions from your computer, with the command console, you may need to restart the device at some time. And although we could do it from the device itself, making use of the shutdown options, there is also an adb command for it and it is precisely this.

adb reboot-bootloader

Within the reboot options, we can do a typical reboot –which will be the previous command- or a restart to access the bootloader or bootloader. With this command, we can effectively access the bootloader for advanced system modification functions. To root or to make a change of ROM in our smart phone, for example.

adb reboot recovery

And there is another advanced option, among the possibilities of restart, oriented to start the terminal in therecovery mode. It is especially useful when we are making modifications at the system level and, for example, we have to enter our custom recovery for the installation of a .zip file by means of the flashing option. But it has many other uses, of course, and a custom recovery is not necessary to take advantage of this, which is one ofthe best ADB commands.

adb push

From the computer you can move files to the mobile; and you can also move them from the mobile to the computer. The adb push command is precisely to take any file from the PC and put it in the mobile. We can do it from the file explorer, or by wireless connection, but this function is especially interesting when we have to make use of the system directories. The only complication is that we have to determine, after the command, the directory from which to take the file and the directory to which to move it within the mobile.

adb pull

As we advanced, there is a command to send, and another to receive. With adb pull what we will do is take a file from the mobile device and take it to our computer. But, for this, what we will have to do is to put the file path on the mobile followed by the command in question and then the directory within the memory of the computer we want to move it to. Same as adb push but, as long as the exchange address changes, the order of directories will be just the opposite.

The most normal is to install applications from the mobile; But of course, they don't always come from the Google Play Store. So, if we want to, we can take an .apk file and install it from the computer with this adb command. Thus, an .apk file that we have on the computer does not have to be sent to the mobile and from there install it, but it can be done directly from the command console.

adb uninstall

This command is especially useful because, although it is as simple asuninstall apps, is the one that will allow us to get rid of the most complex bloatware without having obtained root permissions. If there is an app that refuses to be uninstalled from the smart phone itself, we have this one that is one of thebest adb commands.Any pre-installed app, with this command, disappear from our smart phone using the command from the computer through a command prompt.