Recover Data from Android Stuck in Boot Loop
In this article
Yes, you can recover data from an Android device stuck in a boot loop, provided the internal storage is not encrypted or corrupted and you have previously enabled USB Debugging. The most effective method is using Android Debug Bridge (ADB) to pull files while the device is in a temporary boot state or using a custom recovery environment if one was already installed. If USB Debugging was never enabled and the device is encrypted, data recovery is significantly more difficult and may require professional forensic services.
A boot loop occurs when the device fails to complete the startup process, repeatedly restarting or hanging on the manufacturer logo. This is often caused by corrupted system files, unsuccessful software updates, or failing hardware. Because the operating system cannot fully load, you cannot access the standard user interface to perform a backup. Recovery efforts focus on accessing the file system through a back-door communication channel between the phone and a computer.
What You'll Need
- A Windows, macOS, or Linux computer.
- A high-quality USB data cable (avoid charging-only cables).
- The official Android SDK Platform-Tools installed on your computer.
- The original USB drivers for your specific phone manufacturer installed on the PC.
- A stable power source to ensure the phone does not die during the recovery process.
Step-by-Step
- Prepare the Computer: Download the official SDK Platform-Tools from the Android developer website. Extract the ZIP folder to a location you can easily access, such as
C:\adb. Open a command prompt (Windows) or terminal (macOS/Linux) and navigate to that folder using thecdcommand. - Enter Fastboot or Recovery Mode: Power off the device completely. Press and hold the specific button combination for your device to enter a bootloader or recovery menu. Common combinations include Power + Volume Down or Power + Volume Up. Labels and button combinations differ slightly by device and manufacturer.
- Test ADB Connectivity: Connect the phone to the computer. In the command prompt, type
adb devices. If your device is listed with a serial number and says "device," you have a direct line to the file system. If it says "recovery," you are in recovery mode. If the list is empty, the device is not communicating with the PC. - Attempt a Soft Reboot to Safe Mode: Before attempting complex data pulls, try to boot into Safe Mode. In the recovery menu, look for an option labeled "Safe Mode" or "Reboot to Safe Mode." Safe Mode disables third-party apps, which often resolves boot loops caused by buggy applications, allowing you to boot normally and perform a standard cloud backup.
- Use ADB Pull for Specific Folders: If the device is recognized by ADB but won't boot, you can copy files directly to your computer. Use the command
adb pull /sdcard/ /path/to/your/computer/folder. This command tells the phone to send everything in the internal storage (the /sdcard directory) to a specific folder on your PC. You can also target specific folders, such asadb pull /sdcard/DCIM/ /path/to/computer/photosto recover only your images. - Utilize Custom Recovery (If Previously Installed): If you had a custom recovery like TWRP installed before the boot loop, boot into that recovery. Custom recoveries have a built-in File Manager. Navigate to the "Mount" menu and ensure "Data" is checked. You can then connect the phone to a PC, and it should appear as a Mass Storage Device (MTP), allowing you to drag and drop files using Windows Explorer or macOS Finder.
- Check Cloud Backups: While the device is offline, log into your Google Account on a computer. Check Google Photos for images, Google Drive for documents, and Google Contacts to see what was synced automatically before the loop started. This ensures you know exactly what data is missing before attempting riskier recovery steps.
Common Mistakes
One of the most frequent mistakes is performing a "Factory Reset" or "Wipe Data/Factory Reset" from the recovery menu too early. A factory reset deletes all user data from the internal storage to fix the boot loop. If your primary goal is data recovery, never select this option until you have exhausted all other methods or have confirmed your data is backed up in the cloud.
Another common error is using unofficial or "one-click" recovery software found online. Many of these tools claim to recover data from boot-looped phones but often require you to root the device or install unofficial binaries, which can trigger a security wipe or permanently brick the device. Stick to official ADB tools and manufacturer-approved recovery methods.
Users also frequently forget to check their USB cable. Many cables included with cheap accessories are "power-only" and lack the data pins necessary for ADB communication. If the computer does not recognize the device at all, swapping to an original OEM cable is the first step.
Tips
To prevent future data loss, enable "Automatic Backups" in your system settings and ensure "USB Debugging" is turned on in Developer Options. While USB Debugging is a security risk if left on permanently, it is the only way to use ADB for data recovery on a non-rooted device that cannot boot.
When using ADB pull, do not try to move the entire storage in one go if you have hundreds of gigabytes of data. Large transfers can sometimes time out or crash the ADB server. Instead, pull data in smaller chunks—first the DCIM folder, then the Downloads folder, then the Documents folder.
Keep your device charged. If a phone dies while the computer is pulling data via ADB, it can lead to file system corruption, making the remaining data permanently unrecoverable.
Troubleshooting
Device not recognized by ADB: If adb devices shows nothing, ensure the correct USB drivers are installed. On Windows, check the Device Manager to see if the phone appears as an "Unknown Device" or "Android ADB Interface." If it shows a yellow warning triangle, right-click it and select "Update driver," then search automatically for drivers.
Permission Denied errors: If you receive a "Permission Denied" message during an ADB pull, it means the data partition is encrypted. Modern Android versions use File-Based Encryption (FBE). If the phone cannot boot to the lock screen to accept your PIN or pattern, the encryption keys are not loaded into memory, and the files will appear as random gibberish or be inaccessible. In this case, the only solution is to try and fix the boot loop (e.g., by flashing the official firmware) without wiping data.
ADB hangs or freezes: If the transfer stops midway, restart the ADB server by typing adb kill-server followed by adb start-server. Then, resume the pull from the last folder you successfully copied.
Frequently Asked Questions
Can I recover data if I didn't enable USB Debugging?
It is very difficult. Without USB Debugging or a custom recovery, the computer cannot communicate with the Android OS. Your only options are cloud backups or professional data recovery services that can physically read the memory chips.
Will flashing the official firmware delete my data?
It depends on the flash method. A "Dirty Flash" (installing the system image without wiping the data partition) can often fix a boot loop while keeping your files. However, a "Clean Flash" or a factory reset will erase everything.
Is there an app that can fix a boot loop?
No. Because a boot loop prevents the operating system from loading, you cannot install or run any apps on the device to fix the problem. The fix must happen via the bootloader, recovery mode, or a connected computer.
Why is my data partition locked in TWRP?
This happens because of Android's encryption. TWRP will usually ask for your lock screen PIN or password to decrypt the data partition. If you enter the correct code, the files will become visible; otherwise, they remain encrypted.
Can I use a SD card to recover data?
If your photos and files were stored on a physical microSD card, simply remove the card and use a card reader on your computer. The boot loop only affects the internal storage, not the external SD card.