Skip to main content
35 votes
Accepted

Does adb backup/restore still work because it says it's deprecated?

Deprecated means it is fully functional but may be removed in future versions. Google of course prefers that their cloud is used so that they still control access to the backup data. The only part ...
Robert's user avatar
  • 20.5k
24 votes

Can fastboot be used to backup device?

We can temporarily load a custom recovery fastboot boot <kernel> [<ramdisk>] then backup system partitions.
duing's user avatar
  • 241
21 votes

Extracting data from a TWRP backup

cat data.ext4.win??? | tar xvfi - What this does is concatenate each file matching the pattern data.ext4.win??? and then pipe the concatenated files to tar for extraction. The - as the filename tells ...
Johnathon Havens's user avatar
12 votes

ADB pull stops after first error

Quoting is recommended to make it more clear which commands will executed on client and which pipes/redirections are designated to run on host side. Basically this command should work: adb exec-out &...
alecxs's user avatar
  • 4,074
11 votes

trying to adb backup but dialog doesn't show

Might be a little late, but here's what worked for me: put single quotes around the parameters. adb backup '-all -apk -shared -f momsmobile.ab'
David's user avatar
  • 181
11 votes
Accepted

Extracting data from a TWRP backup

The files created by TWRP with a *.win or *.win??? extension are tar archives. If a partition gets split across multiple files, each is a tar archive in its own right. There is a slight difference, ...
user149408's user avatar
10 votes

How do you extract an App's data from a full backup made through "adb backup"?

Based on the information by others, now I know that the backup file is just a prefixed Deflated (GZip) stream, based on this information this simple program can unpack it for you: import java.io.*; ...
TWiStErRob's user avatar
10 votes

How to fully backup non-rooted devices?

A full backup seems to be a very overloaded term in the Android world. Allow me to first define it (paraphrasing a comment from OP): A full backup is anything that will restore your system state to ...
jiggunjer's user avatar
  • 387
10 votes

How to back up Google Keep data

Use Google takeout and select only Google keep. It will export in the format as shown: Compress it any format you want,with the tool of your choice. I use MiXplorer, which can compress in the formats ...
beeshyams's user avatar
  • 41.1k
9 votes

How to fully backup non-rooted devices?

I'm a bit surprised by the other (complicated) answers. Maybe I've misunderstood the question, so feel free to comment and vote accordingly. By definition, a full backup (including ROM, apps and data)...
Celeritas's user avatar
  • 1,795
9 votes

Creating a backup with adb results in 41 byte file

Found solution here, worked for me: https://docs.j7k6.org/android-adb-backup-41-bytes-549-bytes-bug-fix/ Appearantly the adb backup command stopped working for older Android devices in recent ...
user3439968's user avatar
8 votes
Accepted

adb backup not working for certain app

Developers can decide to have their apps opt-out of backups (ALLOW_BACKUP=FALSE). If you try to backup such an app via adb backup, the resulting file will contain nothing but the backup header (...
Izzy's user avatar
  • 91.2k
8 votes
Accepted

ADB pulling files from /data/data fails due to symlinks. How to skip symlinks in ADB pull?

Method 1: If you're okay with getting the output file as a .tar archive, try this command: adb exec-out tar c data/data > data_backup.tar Make sure to omit the leading / in your path. (Source) ...
Gokul NC's user avatar
  • 1,929
8 votes
Accepted

Backup/dump kernel image (and full ROM) without root for Mediatek Devices

To answer my own question! Warning, in some very rare cases this doesn't work or could be dangerous. For example, Amazon Fire devices refuse to communicate with these tools despite being MediaTek. ...
Sruly's user avatar
  • 988
7 votes

How do I back up Google Authenticator?

As a preface this is an approach for configuring MFA ahead of time so that it is always backed up, not recovering or backing up existing codes. I just went through this process after my Nexus 6P ...
user236774's user avatar
7 votes

No confirm prompt when trying to use adb backup

I'm digging up this question since I found it looking for the same problem. Putting single quotes around the parameters solved it for me: adb backup '-all -apk -shared -f mymobile.ab'
David's user avatar
  • 181
7 votes

ADB backup creates 0-byte file; prompts for current backup password even though I never set one; "Failed to set password" for Desktop backup password

None of the workarounds worked for me here, and I don't want to downgrade my SDK tools. Here's what I came up with: skip adb backup on the computer and go straight to device via adb shell. $adb ...
TWiStErRob's user avatar
7 votes

Prevent WhatsApp from restoring media from Google Drive Backup

So disconnecting WhatsApp from Google Drive didn't exactly work out because my chats were also in that Google Drive backup. However, here is how I was successful in restoring only the chats. (No media)...
rahul sarna's user avatar
7 votes

Backup to Google Drive - Disabled by your admin. Why does my device show is? It's preventing me from restoring my backed up apps.

From Google Product forums , this has been widely reported by Nougat users and is a false alarm Reply from Google help yesterday (08 Aug) We just received a feedback from the Android team. The ...
beeshyams's user avatar
  • 41.1k
7 votes
Accepted

How to take full image backup of partitions or eMMC?

Yes you can boot in TWRP if bootloader is unlocked: fastboot boot /path/to/twrp.img Then you can simply dd whole eMMC or individual partitions. You need some extra memory (on external SD card) to ...
Irfan Latif's user avatar
  • 20.7k
7 votes
Accepted

Exporting a full WhatsApp chat to .txt

So, here's the solution I ended up using. Even though it's not ideal, it worked out, so I'll leave this here in case anyone else stumbles upon this. The weak link in the chain is WhatsApp Web. ...
Marc Vaisband's user avatar
7 votes
Accepted

How to make a full local backup of my phone

There is no method to make a full backup of android smartphones. It is always only a partial backup, be it adb backup or google drive. I recommend to manually backup your files from ADB: adb pull -a /...
alecxs's user avatar
  • 4,074
6 votes

How do you extract an App's data from a full backup made through "adb backup"?

As the implicit question is also, "how to restore a single apps data", I would like to mention this nifty script, that splits a given full-backup.ab in single-app.ab files. It requires these ...
joe_zeroh's user avatar
6 votes

How do I back up Google Authenticator?

There are a lot of advice for rooted phones. But it isn't recommended to root your device if you don’t want to make it vulnerable. Two-factor authentication provides an additional layer of protection ...
Christian's user avatar
  • 206
6 votes
Accepted

Best practice for backing up /data/media?

I recommend directly copying files from/to /sdcard. The sdcard service will handle all the permissions and SELinux contexts for you. The /storage/emulated/0, /mnt/shell/emulated/0 and /storage/...
iBug's user avatar
  • 7,787
6 votes

Can two phones with different WhatsApp numbers use the same Google Drive backup?

Yes you can do right now. Set your backup for the second phone number and make back up. After that when you go to Google Drive Backup address you can see two back up for two Whatsapp accounts.
afaik's user avatar
  • 61
6 votes
Accepted

`adb pull` says it pulled all of the files from my Android phone into my Windows PC, but in reality it didn't

Just pulling all files via adb to a Windows computer has multiple problems: Android/Linux allows multiple files in one directory that just differ in their case. The file system on Linux allows ...
Robert's user avatar
  • 20.5k
6 votes
Accepted

Backup app's fingerprint data and restore

No, not possible even with root. And rightly so, since accessing fingerprint data is a huge security risk. Android stores fingerprint data in Trusted Execution Environment and can't be accessed even ...
beeshyams's user avatar
  • 41.1k
6 votes

WhatsApp giving error message "unable to back up" (Google Drive)

Ahh, one of the gut-wrenching WhatsApp problems. Try below after you have tried all other options. Change backup frequency to "never", under 'Back up to Google Drive". Force stop ...
ishaan's user avatar
  • 161
6 votes
Accepted

"You will be out of Google Account storage once your WhatsApp backup begins counting": Solution to avoid being forced to pay & have a safety backup?

WhatsApp backups are tied to the phone number and Google Account they’re created with so syncing with another Google account is not an option AFAIK Edit: After some experiments, It's possible!(unlike ...
beeshyams's user avatar
  • 41.1k

Only top scored, non community-wiki answers of a minimum length are eligible