There are some bad times when a phone just won’t go beyond boot animation, aka boot loop. This is common when you update your phone’s firmware. This is why and how you should keep backups of your device on NAS. Now to backup your data, ADB is the best option you’ve got.
Please note that your phone’s bootloader needs be unlocked before connecting to ADB in recovery mode.
ADB is the swiss army tool when your device refuses to turn on.
Most people won’t find writing commands in CMD or Terminal interesting but, if you follow this tutorial line by line, you may backup your Android device data into your computer.
How to install ADB into my computer?
First things first, get ADB (Android Debug Bridge) tools for the respective operating systems. Download from Android developer website. From there you will be able to download SDK platform tools for Windows, Mac, and Linux.
Now extract the files. There you have the ADB tools right inside your computer.
How to use ADB?
- Open Command Prompt for Windows or Terminal for Mac/Linux.
- Now point CMD/Terminal to the directory where you have extracted ADB Platform Tools.
- For Windows, you will type ‘adb’ and for Mac and Linux ‘./adb’ (without quotes), followed by space and command(s).
How to create full phone backup using ADB?
- First, restart your device in recovery mode and connect it your computer.
- Type ‘./adb devices‘ (‘adb devices‘, for Windows) to check if your device is connected. If you can see a device connected, proceed on to the third point.
- For full backup, type ‘./adb pull /sdcard‘. This command will copy all your phone data into the platform-tools folder. You can set another backup location with ./adb pull /sdcard <custom-location>‘.
- Wait for this process to complete.
- Congrats, you have created a full backup of your device without turning it on.
Note: If you want to backup only photos, you can modify the command to ‘./adb pull /sdcard/DCIM‘.
*If ./adb pull /sdcard doesn’t work then check for directories.
- Type ‘./adb shell‘.
- Type ‘ls‘.
- You’ll see a list of root directories. sdcard may be renamed as sdcard0 or sdcard1 so you have to change the above code accordingly.
Please note that this tutorial may not work for some if USB Debugging is not turned on. I tried the above method on my LG Nexus 5 with USB debugging (as well as Developer Options) turned off and the phone was not rooted too. It worked like a charm and I could perform a full backup. Feel free to post your queries in the comment box.