Android device is the most used device and is the best device with lots of customizations available. The best thing that makes an Android device so popular is the rooting procedure. Rooting gives the most advanced capabilities to an android device making us get the best experience and tools. So rooting Android device has become so popular these days. Here we share a list of Best ADB Fastboot Commands for Android in Windows, Mac, Linux for all the users for their Android devices.
If you an android geek or someone you always try different things on your Android device then you must have probably know about the rooting. For Rooting an Android device we use some tools that are installed on our Windows, Linux or a Mac device. These tools are called as ADB and Fastboot tools which are required to root the device an to execute a command to get into the backend of the Android device and get more advanced functions and do use our mobile as we wanted without any restrictions.
So in order to get into the backend of the Android device, you must execute some commands on your computer, whether it may be windows, Linux or a Mac device. We suggest you use Linux or a Mac device as they are more resistant to Virus and other threats and Windows is not that much resistant to the Threats.
Now let us see what are ADB and Fastboot commands. How to Use these ADB Fastboot Commands? Are these ADB Fastboot Commands really helpful?
What are ADB & Fastboot commands?
As we have already mentioned in the previous paragraph that Thes are tools that are used to get into the backend of the Android device. And to do that you need to execute some commands on these tools by connecting your Android device and these commands which you use will be executed on your Android device.
As we here are mentioning the commands that you can execute by using your computer, There are also some ways by which you can execute these commands but those procedures are far more complicated and need more work and carefulness.
So basically to first let you know what is the command we will first let you know the basic what is ADB and Fastboot.
What is ADB?
To know about the ADB first thing that you must consider is these capabilities that are given by this ADB requires a rooted device. Hence rooting is a must process to use ADB tools. ADB is a tool that is used to get into the backend of the device as said before.
What this does is, this helps the user to access the system folders that are not accessible normally and also allows you to make changes to the hidden files.
What is Fastboot?
This is the tools that are mostly used when your android device is not working or the system fails to boot. Fastboot requires the device to be boot into the fastboot mode. The main reason for this is that this tool requires access to the system partitions, and hence you need to boot your Android device into fastboot to use this.
Now let see the basic pre-requisites that are required for these ADB and Fastboot commands to execute.
Pre-Requisites to ADB fastboot commands
- Enable the developer options on your Android device (Enable USB Debugging).
- Must have a computer preferably MAC or Linux and even windows are okay.
- An Android device with root access.
- Need to ADB download & Install ADB on Windows.
How to Use ADB Fastboot Commands?
As we have already mentioned that you just need a computer to execute these commands on your Android device by using your computer. Your device must be connected to the Computer and then you execute these ADB Fastboot Commands on your Android device.
Using Command Prompt or Terminal
We use the command prompt on our computer to run these ADB Fastboot Commands. You can have a Windows, Linux or a Mac computer. Just follow the steps mentioned below to use these ADB Commands for Android [Windows/Mac/Linux].
- First thing is to connect your Android device to your computer so that commands are executed on your android device.
- Now move to the folder by using the command cd[path to platform-tools] For example: cd /home/ubuntu/Downloads/platform-tools
- You can also make it easy by using cd space the platform folder name.
Best 15 ADB & Fastboot commands list for Android
- ADB Reboot – This reboots the device in normal mode. Typically used after flashing an APK file into the system. You can reboot the device back to Android even after a successful recovery of an older OS.
- adb reboot recovery – start the device in recovery mode if a recovery is already installed on the device. A stock recovery is pre-installed on every device, but with a custom recovery, you can manually choose which recovery should the device fire up when needed.
- ADB reboot bootloader – use this command to enter the bootloader or fastboot mode.
- fastboot reboot bootloader – sometimes you may need to reboot the device while making changes in the back-end but you need to reboot back to fastboot, that’s when you can make use of this command line.
- fastboot flash XYZ.zip – flash a zip file (APK file) via fastboot mode.
- fastboot flash recovery XYZ.img – use this fastboot command line to flash a recovery image file into custom recovery.
- fastboot OEM unlock – to unlock the bootloader of your Android device.
- fastboot OEM lock – to relock the bootloader of your device.
- fastboot devices – displays all the connected devices.
- ADB pull [mention the path to file on device] [mention path to any destination folder on your Windows PC] – only possible when custom recovery is installed on the device. With this command line, you can copy files located anywhere on your phone and save it to a user desired destination folder on a Windows computer.
- ADB push [mention path to any destination folder on your Windows PC] [mention the path to file on device] – only possible when custom recovery is installed on the device. Use this command line, to send an APK or a ZIP file from your Windows PC to the Android device.
- ADB install [mention the path to file] – installs an APK or a ZIP file on your phone. It is mostly used by app developers and debugging experts.
- ADB uninstall [package name] – to completely remove an app from the device’s RAM, you need to enter the full package name. When you ‘Uninstall’ an app on the surface level, it would retain an image or cache in the RAM. Using this ADB command line you can completely erase the entire package and its corresponding image files from the device.
- ADB shell wm density [dpi] – Change the pixel density of your phone display easily. A lower DPI would fit more content on the screen while a higher number would fit less content.
- ADB sideload [path to update.zip] – using the custom recovery, sideload an update.zip firmware to update an existing APK file on the phone. Developers make use of this to install a major phone update that hasn’t been officially released by their phone maker yet. Not recommended for amateurs.
That’s all for now. The above are the commands that are most used and are also very useful. If you are an android geek these commands must and will help you and execute all the commands properly or else your device will be in problem.
So these are the most useful ADB and Fastboot commands, if we missed any Best ADB Fastboot Commands, then let us know in comments! Stay tuned for more!