Some things regular Android users may want to do with their Android may seem too complicated. Even something as simple as transferring files to or from your phone requires more steps than it should. With Minimal ADB and Fastboot, you can do things like transfer files, find the serial number, or even take a full backup of your phone with just a single, simple command.
Setting up Minimal ADB and Fastboot
Minimal ADB and Fastboot is available for Windows, MacOS, and Linux. Here’s a guide on how to set up Minimal ABD on your system. Once Minimal ADB and Fastboot is installed, you just need to enable USB debugging on your phone. There are just a few simple steps to do this. Now you’re ready to get started issuing commands to your phone. Just plug your Android phone into the computer with a USB cord, and then launch Minimal ADB and Fastboot. You’ll see a command window pop up. To check that Minimal ADB and Fastboot can communicate with your phone, just issue the command: adb devices. Under List of devices attached, you’ll see a random code next to the word device. This means that the Minimal ADB and Fastboot utility can see your phone, and you’re ready to start issuing useful commands.
Transfer Files to and From Your Android
There are many ways to move files and data between an Android phone and other devices. However, most of those methods require multiple steps or complicated connections. With Minimal ADB and Fastboot, once you’ve set up your computer and phone once to allow ADB commands, you’ll never need to set it up again. Transferring files is as easy as typing one simple command, and the files are transferred. You can move files from your computer to your phone with one simple command in the same way. Just reverse the source and destination directories. If you know the path where your file is (like an image), you can type the full command include the source and the destination, like this: adb pull /sdcard/dcim/camera/20181224_131245.jpg c:/temp/pictures/ You’ll see a status showing a successfully pulled file. For example, to place a picture from your computer onto your phone, just type adb push c:\temp\pictures\mypicture.jpg /sdcard/dcim/pictures. This will create a copy of the file on your phone, in the /sdcard/dcim/pictures directory.
Navigate Through Folders on Your Android
If you don’t know the path of the file on your Android device, you can use special commands called adb shell commands to find the file. There are several shell commands that can be very useful to navigate through the folders on your phone.
ls: Lists the contents of a directory.cd: Changes the directory.rm: Remove files or directories.mkdir: Create a new directory.cp: Copy files or directories.mv: Move or rename files.
With the ADB shell command, you can combine these commands by separating them with a semicolon. For example, to navigate to a directory on your phone to find photos:
Remotely Install or Uninstall Android Apps
The most common way people install apps to their Android is to search through the Google Play store and install apps from there. The Google Store automatically transfers the installation file (known as an APK file) to your phone and launches it. All of this happens automatically and behind the scenes. However, there are lots of sites where you can download apps not available on Google Play. These let you download the APK file to your computer. You can then install the APK remotely on your phone using a simple abd install command. Here’s how it works:
Take a Full Backup of Your Android Phone
Have you ever had your Android phone die, and you’ve lost everything on it? Replace with the path and name of the APK file. In the example above, the APK file is stored in c:\temp and the file is protonmail.apk. Review all packages installed on your phone by typing adb shell pm list packages. Search through this list to find the name of the app you want to install. Replace with the full name of the app package you found in the list. For people who use their phone all the time for photos and work, such a scenario can feel like a real disaster. Avoid it by using ADB Minimal and Fastboot to save a full backup to your computer. The process is easier than you may think. The adb backup command has a list of parameters that you may never need to use, since just typing the adb backup command will work fine with default parameters. These parameters include:
-f : Set the location where you want to store the backup on your computer.-apk|-noapk: Specify whether or not to back up every APK file for the apps you have installed.-shared|-noshared: Also back up shared storage (like an SD card).-all: Back up every app instead of just individual ones.-system|nosystem: Specify whether or not to also back up system applications.: Identify individual app packages to back up.
The simplest way to take a back up is just to use the -apk, -all, and -f parameters. The command to do this is: adb backup -apk -all -f C:\temp\phone_backup\Samsung_Backup.ab This will trigger a prompt where you’ll confirm the full backup, and encrypt it if you wish. Once you confirm, the full backup will start. It may take a few minutes for the full backup to complete. When it does, you can find the full backup file in the path you’ve specified. If your phone ever dies and you lose everything on it, once the phone is repaired you can perform a full recovery by typing the command: adb restore .ab This will upload your full backup back to your phone and restore everything back to normal again. If you’ve chosen to back up the APK files, even all of the original apps will reinstall.
Get Information About Your Android Phone
Whenever you contact customer support for the manufacturer of your phone or any tech support line, sometimes they’ll need to know details about your phone that aren’t always easy to find. With Minimal ADB and Fastboot, you can retrieve all sorts of information about your phone.
adb shell ip -f inet addr show wlan0: Provides the current IP address of your phone on the network.adb shell getprop ro.boot.serialno: Shows you the serial number of your phone.adb shell getprop ro.build.version.release: Displays the version of the Android OS installed on your phone.adb shell netstat: Shows all of the current network connections currently active from your phone.
The adb shell getprop command gives you access to a huge variety of details about your phone in addition to the serial number and OS release. To see the entire collection, just type adb shell getprop and you’ll see a list of all details, including the current value. Typing a single command from your computer to pull this information from your phone is much easier than digging through the Settings menu to try and find them.