Create a Complete Android Backup Using ADB (No Root Required)

18 min read Learn how to use ADB to make a complete Android backup (apps, data, and shared storage) without rooting, and restore it safely on any device. September 26, 2026 23:30 How to Create a Full Android Backup with ADB and Restore It Without Root

Backing up an Android device without rooting can feel like a guessing game. The built‑in Google backup only saves app data for a handful of apps, and a full image backup usually requires a custom recovery. Fortunately, the Android Debug Bridge (ADB) ships a adb backup command that can capture almost everything—apps, their private data, and shared files—directly to your computer. This tutorial walks you through the entire workflow: preparing your PC, enabling the necessary options on the phone, creating the backup, and restoring it later. Along the way you’ll learn why each flag matters, what the command cannot do, and how to troubleshoot the most common hiccups.

Before You Start

  • Charge the device to at least 70 % to avoid interruptions.
  • Use a reliable USB‑C or micro‑USB cable (avoid cheap charging‑only cables).
  • Ensure the PC has enough free disk space—a full backup can be as large as the total used storage on the phone.
  • Decide whether you want the backup encrypted with a password. Encryption protects the data but adds a step during restore.
  • Back up any critical files manually (e.g., photos) before you start, just in case the process is interrupted.
Note: ADB backup works on Android 4.0 (Ice Cream Sandwich) up to Android 12. Starting with Android 13 Google began disabling the feature on many OEM builds, so if you are on a newer device the command may be blocked.

1. Install the Android SDK Platform‑Tools

The adb binary is part of the Android SDK Platform‑Tools package. You only need this small package; a full SDK is unnecessary.

Windows

  1. Download the latest platform‑tools zip from the official Android developers site.
  2. Extract the zip to a folder you can remember, e.g., C:\adb.
  3. Add the folder to your PATH (optional but convenient):
    setx PATH "%PATH%;C:\adb"
  4. Open a Command Prompt and type adb version to verify the installation.

macOS

  1. Download the same zip file.
  2. Open Terminal and run:
    mkdir -p ~/adb && unzip ~/Downloads/platform-tools-latest-darwin.zip -d ~/adb
  3. Add it to your PATH by editing ~/.zshrc or ~/.bash_profile:
    export PATH=$PATH:~/adb/platform-tools
  4. Run adb version to confirm.

Linux

  1. Download the zip, extract it to ~/adb (or /opt/adb for system‑wide use).
  2. Add the directory to PATH in ~/.bashrc:
    export PATH=$PATH:~/adb/platform-tools
  3. Verify with adb version.

2. Enable Developer Options and USB Debugging on the Phone

The steps differ slightly between manufacturers, but the core idea is the same.

  1. Open Settings → About phone.
  2. Find Build number and tap it seven times. You’ll see a toast saying “You are now a developer!”.
  3. Return to the main Settings page; a new entry Developer options appears (often under System).
  4. Enter Developer options and toggle USB debugging on. Confirm any security prompt.
    • On some devices you must also enable USB debugging (Security settings) or “Allow ADB debugging” when the phone is locked.
  5. If you plan to use the backup over Wi‑Fi later, enable ADB over network (optional, covered later).

3. Verify the PC–Phone Connection

Connect the phone with the USB cable, then run:

adb devices

You should see a line like:

0123456789ABCDEF    device

If the output shows unauthorized, a dialog will appear on the phone asking to Allow USB debugging. Tap Allow and optionally check “Always allow from this computer”.

Warning: Do not click “Cancel” on the debugging prompt; otherwise the PC will never see the device.

4. Understanding the adb backup Flags

ADB’s backup command accepts several flags that control what gets saved:

  • -apk – include the APK files of installed apps (so you can reinstall them without the Play Store).
  • -shared – back up the shared storage (photos, downloads, music). This can make the backup very large.
  • -all – include all user‑installed apps. Without this, only the apps you list after the command are backed up.
  • -f <file.ab> – specify the destination file on the PC.
  • -nosystem – (default) skips system apps, which cannot be restored anyway.
  • -keyvalue – creates a faster, key/value‑only backup (no APKs). Useful for quick data dumps.

For a truly “full” backup we combine -apk, -shared, and -all.

5. Create the Full Backup

Open a terminal (or Command Prompt) in the folder where you want the backup file to live, then run:

adb backup -apk -shared -all -f full-backup.ab

What happens next?

  1. The phone displays a dialog titled “Full backup”. It shows the amount of data to be backed up and asks whether you want to encrypt the backup.
  2. If you choose to encrypt, you’ll be prompted to set a password (minimum 4 characters). Remember this password; you’ll need it for restore.
  3. Tap Back up my data. The device will start streaming data over USB to your PC. You’ll see no progress bar in the terminal, but the phone’s status bar may show a “USB debugging” icon.
    • On some OEM skins the backup may pause if the device goes to sleep. Keep the screen awake (you can enable “Stay awake” in Developer options).

When the process finishes, the terminal returns to the prompt and the phone shows a “Backup complete” toast.

Tip: If you only need app data and not the media files, omit -shared. The resulting .ab file will be much smaller.

6. Verify the Backup File

Navigate to the folder where you saved full-backup.ab. Check its size:

ls -lh full-backup.ab   # macOS/Linux

 dir full-backup.ab    # Windows

The size should roughly match the amount of data you saw on the phone’s backup dialog. If the file is only a few kilobytes, the backup likely failed or you omitted -shared.

7. Restoring the Backup to the Same or a New Device

Restoring follows the same basic steps: connect the device, enable USB debugging, and run adb restore. The command reads the .ab file and pushes the data back onto the phone.

adb restore full-backup.ab

When you execute the command, the phone displays a “Full restore” dialog. If the backup was encrypted, you’ll be prompted to enter the password you set earlier.

  • Tap Restore my data. The phone will begin reinstalling apps and copying files.
  • Do not disconnect the USB cable until the terminal returns to the prompt and the phone shows a “Restore complete” toast.

After the restore, you may notice that some apps need to be opened once to finish their first‑run setup (e.g., sign‑in again). This is normal because the backup restores the app’s private data, but certain authentication tokens are refreshed.

8. Restoring Selectively (Only Specific Apps or Data)

ADB does not provide a built‑in way to pick individual apps from a full backup. However, you can create a partial backup first and restore that later. For example, to back up just WhatsApp and its media:

adb backup -apk -shared -f whatsapp-backup.ab com.whatsapp

Later, restore only that backup:

adb restore whatsapp-backup.ab

When you need to extract a single app from a full backup, you can unpack the .ab file with the open‑source Android Backup Extractor (abe). This tool converts the proprietary format into a standard tar archive, which you can browse with any archive manager.

Using abe to Inspect a Backup

  1. Download the abe.jar file from the GitHub releases page.
  2. Run the conversion (replace full-backup.ab with your file):
    java -jar abe.jar unpack full-backup.ab full-backup.tar
  3. Extract the tar archive:
    tar -xf full-backup.tar -C backup_contents
  4. Inside backup_contents you’ll find directories named after each package, e.g., com.whatsapp/ containing apk, shared, and keyvalue subfolders.

This method is handy if you suspect a particular app is causing issues and you want to inspect its data without restoring the whole device.

9. Common Troubleshooting Scenarios

Device Not Detected (adb devices shows nothing)

  • Make sure the USB cable is a data cable, not charge‑only.
  • On Windows, install the appropriate OEM USB drivers (e.g., Google USB Driver for Pixel, Samsung USB driver for Galaxy).
  • Try a different USB port or a different computer to rule out hardware problems.
  • Run adb kill-server && adb start-server to reset the daemon.

Backup Fails with “Error: device offline”

  • Disconnect and reconnect the phone; accept the debugging prompt again.
  • Disable “USB debugging (Security settings)” if your device has a separate toggle, then re‑enable it.

Backup Size Is Too Small – Shared Files Missing

  • Confirm you used -shared. Without it only app data is saved.
  • Some manufacturers block access to the external storage for adb backup. In that case you’ll need to copy media manually (e.g., via adb pull /sdcard/).

Restore Fails with “Backup is corrupted”

  • Check the file integrity: adb version should match the platform‑tools version you used to create the backup.
  • If you transferred the .ab file between computers, verify it didn’t get truncated (compare file sizes).
  • When using encryption, ensure you entered the correct password. A wrong password will cause the restore to abort.

App Doesn’t Appear After Restore

  • Some OEMs ship apps as system updates that are treated as system apps. adb backup skips system apps, so they won’t be restored.
  • Open the Play Store, search for the missing app, and install it. The private data (if any) will be restored automatically.

10. Edge Cases and Limitations

While adb backup is powerful, it has a few hard limits you should be aware of:

  • No System Apps: The command cannot back up or restore pre‑installed system apps. For a true full image you’d need a custom recovery (TWRP) or the OEM’s fastboot flash tools.
  • Encrypted Device Storage: If the device uses file‑based encryption (FBE) and you haven’t unlocked the device before starting the backup, the command may skip encrypted data. Unlock the screen and enter the PIN/pattern before initiating the backup.
  • OEM Restrictions: Some manufacturers (e.g., Huawei, Xiaomi) disable the backup service in their customized Android builds. In such cases the backup dialog may never appear, and the command returns instantly with a tiny file.
  • Android 13+: Google started deprecating adb backup for new builds. If the command fails with “Backup is not supported on this device”, you’ll need to fall back to Google’s cloud backup or a custom recovery.

11. Alternatives When adb backup Is Unavailable

If you hit a roadblock, consider one of the following:

  • Google Backup: Settings → System → Backup → “Back up to Google Drive”. This saves app data for supported apps, call logs, contacts, and device settings.
  • Third‑Party Backup Apps (e.g., Helium, Super Backup). Some require a PC companion, others need root.
  • Custom Recovery Image (TWRP): Boot into recovery, choose “Backup”, and create a NANDroid image that includes system, data, and boot partitions. This requires an unlocked bootloader and a custom recovery.

12. Safety and Privacy Best Practices

  • Store the .ab file on an encrypted drive or a password‑protected cloud folder.
  • If you used a password for the backup, keep it in a secure password manager. Without it the backup is essentially unusable.
  • Never share the backup file with untrusted parties; it contains private messages, authentication tokens, and possibly payment credentials.
  • When restoring to a different device, be aware that some apps bind data to the device’s hardware ID. You may need to log in again.

13. Quick Reference Cheat Sheet

ActionCommandKey Flags
Install Platform‑ToolsDownload zip, extract–
Enable USB debuggingSettings → About → tap Build number 7× → Settings → System → Developer options → USB debugging–
Verify connectionadb devices–
Full backup (apps + data + media)adb backup -apk -shared -all -f full-backup.ab-apk, -shared, -all, -f
Backup only apps (no media)adb backup -apk -all -f apps-only.ab-apk, -all, -f
Restore backupadb restore full-backup.ab-f (implicit)
Extract .ab to .tarjava -jar abe.jar unpack full-backup.ab full-backup.tar–

Conclusion

Using adb backup gives you a portable, PC‑based snapshot of an Android device without ever rooting it. The workflow is straightforward: install platform‑tools, enable USB debugging, run a single command, and you have a .ab file that can be restored on the same or a different phone. Understanding the flags, the encryption option, and the known limitations helps you avoid the common pitfalls that turn a backup into a false sense of security. Keep the backup in a safe place, remember the password, and you’ll have a reliable fallback whenever you upgrade, reset, or replace a device.

User Comments (0)

Add Comment
We'll never share your email with anyone else.