Other

Restoring Android via ADB: Step-by-Step Guide

A comprehensive guide to restoring data and settings on Android devices using the ADB utility. Learn how to connect your phone, run the `adb restore` command, and resolve common issues.

Updated at April 5, 2026
10-15 minutes
Medium
FixPedia Team
Применимо к:Android 8.0–14.0ADB Platform-Tools 33.0.5+

Introduction / Why This Is Needed

Backups created via adb backup are one of the fastest ways to transfer apps and their settings between devices or recover data after a factory reset. Unlike cloud services, the local .ab file is stored on your computer and is independent of Google's storage limits or internet speed. In this guide, you will walk through the entire process from connecting your smartphone to successfully restoring the backup, while avoiding common compatibility issues and data loss.

Requirements / Preparation

Before starting the restore process, ensure you have:

  • A backup file with the .ab extension, previously created using adb backup.
  • A computer running Windows, macOS, or Linux with internet access.
  • An original or certified USB cable. Using cheap cables often leads to connection drops during the archive extraction phase.

⚠️ Important: Restoring will overwrite the current data for the specified apps. If your phone already contains important information, create a fresh backup before starting the procedure.

Step 1: Installing and Configuring Platform-Tools

The adb utility is included in the Android SDK Platform-Tools package. Download the official archive from Google's developer website and extract it to a convenient directory. Add the path to the platform-tools folder to your system environment variables (PATH) so you can run the command from anywhere in the terminal.

# Check utility version and availability
adb version

Step 2: Enabling Developer Mode

Open SettingsAbout phone. Locate the Build number entry and tap it 7 times in a row until a notification appears confirming that Developer mode is unlocked. Return to the main menu, go to SystemDeveloper options, and toggle on USB debugging.

Step 3: Connecting and Verifying Communication

Connect your phone to the PC. A dialog box titled Allow USB debugging? will appear on the device screen. Check the box for Always allow from this computer and tap OK. Open your terminal and run:

adb devices

The output should display the device's serial number with the status device. If it shows unauthorized, reconfirm access on your smartphone or restart the adb service using adb kill-server && adb start-server.

Step 4: Performing the Data Restore

In the terminal, navigate to the directory containing your .ab file. To start the process, enter:

# Replace backup_name.ab with your actual file name
adb restore backup_name.ab

If the backup was created with a password, the system will prompt you to enter it directly in the terminal. Type the password and press Enter. A system confirmation dialog will appear on your smartphone screen. Tap Restore my data. Do not disconnect the cable or lock the screen until the Restore complete message appears.

Step 5: Final Verification and Reboot

After successful completion, the process does not stop instantly: Android begins unpacking apps and re-indexing files. Wait for the home screen to appear, then perform a soft reboot:

adb reboot

This will free up system resources and apply all restored configurations.

Verifying the Results

Open several of the restored apps and verify that your logins, progress, and local settings are intact. Check the Gallery and file manager if the backup included multimedia data. In the terminal, you can run logcat -s BackupRestoreService to monitor system logs related to the restore process. If the apps launch without crashing and do not display "App has stopped" errors, the process was successful.

Common Issues

  • backup file is corrupt error: The .ab file was corrupted during copying or downloading. Verify its checksum (MD5/SHA256) and recopy it from the original source if necessary.
  • Restore hangs at 0%: This is often caused by background Google Play updates or PC antivirus software. Temporarily disable your security scanner, pause app store updates, and retry the command.
  • Password prompt accepts an empty string but throws an error: Ensure the keyboard layout in your terminal matches the one used when creating the backup. Passwords are entered without echo (characters are not displayed); simply type the password and press Enter.
  • App data does not appear: Modern Android versions restrict access to /data/data on non-rooted devices. The restore will only affect APKs, media, and settings permitted by the app's manifest. For a complete transfer, use the manufacturer's built-in tools or migrate via Google One.

F.A.Q.

Does adb restore work on Android 12 and newer?
Why does the restore process hang on the waiting stage?
Can I restore data without a computer?

Hints

Prepare Environment and Files
Enable USB Debugging
Connect the Device
Run the Restore Command
Verify the Result
FixPedia

Free encyclopedia for fixing errors. Step-by-step guides for Windows, Linux, macOS and more.

© 2026 FixPedia. All materials are available for free.

Made with for the community