Losing data on a smartphone is one of the most unpleasant situations for a user. Photos, correspondence, contacts and application settings can disappear in an instant due to a system crash, device theft or accidental formatting. Creating an Android backup on a computer This is a reliable way to protect information from loss, especially if you plan to reflash the device, reset it to factory settings, or just want to have a duplicate of important files.
Unlike cloud services, local saving on a PC gives you complete control over the data: there are no volume restrictions, no Internet connection is required, and the files are stored in your personal space. However, the reservation process may differ depending on the version Android, smartphone model (Samsung, Xiaomi, Google Pixel etc.) and even the chipset manufacturer. In this article we will analyze all the current methods - from standard tools to advanced methods using ADB and custom recovery.
Important: if you use Android 14+, some backup functions may work differently due to changes in security policy. For example, access to a folder /data via ADB now requires unlocking the bootloader, and backup applications require additional permissions. We have taken these nuances into account in the instructions below.
1. Preparing your smartphone for backup
Before you start creating a backup, you need to complete several mandatory steps. This will help avoid errors and ensure that all data will be copied correctly.
First rule: Check the battery charge. If the device runs out of power during the process, it may result in the loss of some data or even damage to the file system. The optimal charge level is at least 70% (this is especially critical for methods using ADB or custom recovery).
- ๐ Charging: Connect your smartphone to a charger or use power saving mode.
- ๐ Free space: Make sure that there is enough space on the PC (at least 10-15% more than the data on the phone).
- ๐ Unlock: Remove the pattern/PIN code or add the device to the list of trusted ones (for Android 12+).
- ๐ USB Debugging: Activate developer mode and enable
USB DebugginginSettings โ System โ For developers.
It is also worth disable battery optimization for applications that will be used for backup (for example, Titanium Backup or Swift Backup). To do this, go to Settings โ Applications โ [Select an application] โ Battery โ Battery optimization โ All applications โ Find the one you need and turn off optimization.
โ ๏ธ Attention: If you use MIUI (on Xiaomi, Redmi, POCO), function may be enabled by defaultMIUI Data Protection, which blocks access to some folders. To disable it, go toSettings โ Accessibility โ MIUI Data Protectionand deactivate the option.
2. Method 1: Standard backup via Google Account
The simplest method is to use the built-in backup function from Google. It automatically saves some of the data to the cloud, but it can also be downloaded to a PC. This method is suitable for contacts, calendars, some application settings and SMS (on some devices). However, it does not copy photos, videos, music or installed APK files
To enable backup:
- Open
Settings โ Google โ Backup copy. - Activate the switch
Backup to Google Drive. - Click
Back up now.
To download data to PC:
- Go to the website Google Drive (log in with the same account as on your phone).
- In the left menu, select
Backups. - Find a backup of your device and download it (the file will be in the format
.zipor.ab).
| Data type | Save? | Notes |
|---|---|---|
| Contact | โ Yes | Synchronizes with Google Contacts |
| SMS/MMS | โ ๏ธ Partially | Only on some devices (for example, Google Pixel) |
| Photo/video | โ No | Use Google Photos separately |
| Wi-Fi settings | โ Yes | Including saved networks and passwords |
| Installed applications | โ Yes (list) | Without APK files and application data |
โ ๏ธ Attention: If you use Android 13+ on devices Samsung, the standard Google backup may not save the settings of some branded applications (for example, Samsung Notes or Samsung Health). They will require a separate reservation via Samsung Cloud.
To speed up the reservation process, connect your smartphone to Wi-Fi and charging. On a slow Internet, the backup may take several hours.
3. Method 2: Full backup via ADB
For users who need to save all data, including application settings, system files and even game data, the method using ADB (Android Debug Bridge)is suitable. This method requires an unlocked bootloader on some devices (for example Xiaomi or OnePlus), but provides the most complete backup.
What you will need:
- ๐ฅ๏ธ Computer with installed Android SDK Platform-Tools (or separately
adb). - ๐ฑ Smartphone with included
USB debugging. - ๐ Cable USB Type-C (preferably original).
Instructions:
- Connect your phone to the PC and confirm permission for debugging on the smartphone screen.
- Open the command line (or
Terminalon macOS/Linux) and check connection:adb devicesThe serial number of your device should be displayed.
- Create a backup copy (replace
backup.abto the desired file name):adb backup -apk -obb -shared -all -f C:\backup\backup.abFlags:
-apkโincludes APK application files;-obbโsaves additional game data;-sharedโcopies files from/sdcard;-allโall applications and settings.
Recovery from backup:
adb restore C:\backup\backup.ab
Method limitations:
- Not all manufacturers support
adb backupfully (for example, Huawei and Honor can block this function). - On Android 10+ some system applications may not be backed up.
- The file
.abcannot be viewed without restoring to device.
How to extract the backup.ab file without restoring it to your phone?
This will require a tool abe (Android Backup Extractor). Download it from GitHub, install Java, and run the command:
java -jar abe.jar unpack backup.ab backup.tar [password]
As a result, you will get an archive .tarthat can be opened by any archiver.
4. Method 3: Backup via TWRP (Custom Recovery)
If your device has a custom recovery installed, such as TWRP, you can create a full system image, including /data, /system and even boot. This is the most reliable method, but it requires an unlocked bootloader and may void the warranty.
Advantages of the method:
- ๐ Full image systems, including the kernel and bootloader.
- ๐ก๏ธ Possibility of recovery even on a โbrickโ (if the hardware is not damaged).
- ๐ Saving to an external memory card or PC via
ADB.
Instructions:
- Turn off the phone and boot into TWRP (usually
Power + Volume Up). - Go to section
Backup. - Select partitions for backup (it is recommended to check all except
Cache). - Specify the storage location (for example, an external SD card).
- Swipe to confirm.
To copy the backup to your PC:
- Connect the phone to the computer in
MTP(in TWRP this is done viaMount โ Enable MTP). - Go to the folder
TWRP/BACKUPS/[serial_number]on the phone and copy the files to the PC.
โ ๏ธ Attention: On devices with Android 12+ and file system F2FS (for example, Samsung Galaxy S22) recovery via TWRP may lead to errors. In this case, use alternative recovery, such as OrangeFox.
Bootloader unlocked|TWRP installed|IMEI backup made (for devices with Qualcomm)|Battery charge > 50%|There is an external SD card or free space on the PC-->
5. 4: Manually copying files via MTP
If you only need to save media files, documents and downloads., it is enough to copy them manually through Windows/macOS Explorer. This method does not require root access and works on any devices, but it does not capture application data or system settings.
How to copy files:
- Connect your phone to your PC via a USB cable.
- On your phone, select the mode
File transfer (MTP). - Open File Explorer on your PC and go to the phone folder (usually displayed as removable disk).
- Copy the necessary folders:
DCIMโ photos and videos;Downloadsโ downloads;Pictures,Music,Moviesโ media files;Android/dataโ data of some games (for example, Genshin Impact or Call of Duty Mobile).
Important nuances:
- ๐ The folder
Android/datamay be hidden or inaccessible without root access to Android 11+. - ๐ต Music and videos in DRM-protected format (for example, from Netflix or Spotify) cannot be copied.
- ๐ฑ On some devices (for example, Huawei s EMUI 12+), you need to confirm permission on your PC to access files.
Manual copying via MTP is the safest method, but it does not save application settings, SMS or account data. Use it only for media files and. documents.
6. Method 5: Applications for backup (without root)
If you donโt want to bother with ADB or TWRP, you can use third-party applications. They allow you to create a backup directly from your phone and then move it to your PC. for devices without root access:
| Application | What it saves | Features |
|---|---|---|
| Swift Backup | Applications (+ data), SMS, call log | Requires Android 6+, free version with limitations |
| Titanium Backup | Full backup (including system applications) | Works only with root or on Android 4-7 |
| SMS Backup & Restore | SMS, MMS, call log | Export to .xml or .json |
| Migrate | Applications + data (without root) | Uses ADB, but with a convenient interface |
Usage example Swift Backup:
- Install the application from Google Play.
- Grant all necessary permissions (including
Special accessto Android 11+). - Select applications for backup and click
Create backup. - After completion, copy the folder
SwiftBackupfrom the internal memory of the phone to the PC.
โ ๏ธ Attention: Applications for backup may require additional permission Android 14 backup applications may require additional permissionRESTRICTED_SETTINGS, which is issued only throughADB:adb shell appops set com.machinarium.swiftbackup android:restricted_settings allow
7. Comparison of methods: which one to choose?
The choice of backup method depends on your goals and technical capabilities. Below is a comparative table that will help you decide:
| Method | Backup completeness | Complexity | Root required? | Suitable for |
|---|---|---|---|---|
| Google Account | โญโญ (partial) | โญ (simple) | โ No | Beginner users |
| ADB | โญโญโญโญ (full, except for some system files) | โญโญโญ (average) | โ No (but debugging is needed) | Users who need a full backup without root |
| TWRP | โญโญโญโญโญ (full system image) | โญโญโญโญ (difficult) | โ Yes (unlocked bootloader) | Enthusiasts and before firmware of custom software |
| MTP (manual copy) | โญ (user files only) | โญ (simple) | โ No | Saving photos, videos, documents |
| Third-party applications | โญโญโญ (applications + data) | โญโญ (easy) | โ No (but permissions are required) | Users without root who need application backup |
Recommendations for selection:
- ๐ฑ For beginners: Use Google Backup + manual copying of files via
MTP. - ๐ง For experienced users:
ADBor Swift Backup (if you donโt want to unlock bootloader). - ๐ ๏ธ For firmware/repair: TWRP (if the device is supported).
8. Common errors and their solutions
Even if you follow the instructions, problems may arise. Let's look at the most common errors and ways to eliminate them:
- ๐ซ
adb: device unauthorizedSolution: A request for debugging permission will appear on your phone - confirm it. If the request does not appear, check whether
USB debuggingis turned on and reconnect the cable. - ๐ The device is not detected in
MTPSolution:
- Try a different cable (preferably original).
- Update the drivers Android on your PC (download from the phone manufacturer's website).
- On your phone, select a different connection mode (
File transferinstead ofCharging).
- ๐ฑ TWRP does not see internal memory
Solution: This may be due to encryption
FBE(File-Based Encryption) on Android 10+To solve the problem:- Enter your screen lock password in TWRP (if prompted).
- Use OrangeFox Recovery instead TWRP (better supports
FBE).
- โณ Backup via
ADBtoo longSolution:
- Exclude unnecessary applications from the backup (for example, game cache).
- Use the flag
-nosystem, so as not to copy system applications:adb backup -apk -obb -shared -nosystem -f backup.ab
โ ๏ธ Attention: If you use MacOS, additional settings of environment variables may be required to work withADB. Make sure that the path toplatform-toolsis added to$PATH, or use the full path to the command (for example,/Users/yourname/Library/Android/sdk/platform-tools/adb).
FAQ: Answers to frequently asked questions
Is it possible to create a backup on Android without computer?
Yes, but with restrictions. You can:
- Use cloud services (Google Drive, Yandex Disk).
- Copy files to an external SD card (if supported).
- Install applications like Swift Backup and save backup to internal memory.
However, for full backup (including system data) you cannot do without a PC.
How to restore a backup to another phone?
It depends on the method backup:
- Google Account: When you turn on a new phone for the first time, select the option to restore from a backup.
- ADB/TWRP: Restoring is only possible to an identical device (or with the same firmware). On another phone, this may lead to errors.
- Manual copying: Files (photos, videos) can be transferred to any device, but application data can only be transferred if they are compatible.
To transfer applications between different models, use Swift Backup or Titanium Backup (with caution!).
Why does backup via TWRP take up so much space?
TWRP creates a full image of the partitionincluding free space. To reduce the size:
- Eliminate unnecessary sections (for example,
cache). - Use compression (in settings TWRP select
Compression). - Remove unnecessary files from
/databefore the backup (for example, game cache).
You can also convert the backup to .tar and compress it on your PC.
Is it possible to restore a backup after a factory reset?
Yes, but:
- Google backup: It is restored automatically when setting up the phone.
- ADB/TWRP: You must first unlock the bootloader (if you had one) blocked) and install TWRP again.
- Manual copy: Just transfer the files back to the phone.
Important: If you reset the phone via Fastboot (command fastboot -w), the data in /data will be erased irrevocably.
How to check the integrity of the backup?
Verification methods:
- For
ADB: Try restoring the backup on a test device or check the file size (if it is too small - the data may not have been copied). - For TWRP: In recovery, select
Restoreand see if the archive is recognized. - For manual copying: Compare the number of files and their sizes with the original.
You can also use utilities like md5sum (on Linux/macOS) or 7-Zip (on Windows) to check control amount.