Hot answers tagged

107

Or with a one-liner: ( printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" ; tail -c +25 backup.ab ) | tar xfvz -


44

Let's talk about sets, baby Android's backup service has a concept called a set: the set of all data backed-up from one device (on one transport, but that's a detail). Each set is identified by a unique string, such as the IMEI on the device. When an app (or the list of installed apps) is backed up, its backup data go into the set associated with the device ...


35

One more option is to use bash, cat and gunzip (gzip). The full process could be this (with an unencrypted backup): backup one app's data (for example "Override DNS for KitKat"): $ adb backup -f net.mx17.overridedns.ab -noapk net.mx17.overridedns Now unlock your device and confirm the backup operation. extract the compressed data $ dd if=net.mx17....


34

Use bmgr from adb shell. See this answer for a complete explanation of backup sets. Root access is not required. shell@maguro:/ $ bmgr list sets 1234567890abcdef : droid48 34567890abcdef12 : galaxy49 ... shell@maguro:/ $ bmgr restore 1234567890abcdef Scheduling restore: droid48 done This triggered a full restore of all the previously installed apps ...


13

The answer can be found in the backup tag-wiki. In short: ADB Backup is the newer file based backup scheme introduced in Android 4.0. It creates a backup of the file system tree and files. Better explanation would be it's a logical backup, as files are mainly grouped by apps. Side-effect is that files not having a clear relation might be missing from such ...


10

If you've already allowed Google Backup to backup your apps, then changing settings before you do the factory reset won't make any difference. After the factory reset, when you next start the device, it'll go through the first-time setup steps again: where it guides you through connecting to a Wi-Fi network and signing into a Google account. On the screen ...


9

Picking up my comment on the question: Is it true that restoring a single package backup wipes all data on the phone? No. As I suspected in my comment, the warning just relates to the settings of the app being restored, as they would be replaced by those from the backup. I used adb backup to backup a single app on one device, and restored it to multiple ...


8

I found out how to do it with the official firmware from asus.com. I'll post this for the benefit of all sentient beings future readers with the same problem. I'm writing this in a very beginner-friendly fashion. Note: I had stock recovery. These steps will not work if you have a custom recovery. Disclaimer: This is only what worked for me. It may or may ...


7

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.*; import java.util.zip.*; /** Run: javac unab.java && java unab backupfile.ab */ public class unab { private static final int BACKUP_HEADER_LENGTH = ...


7

The following is by far no answer to the question, but might shed some light on some details: Some pieces extracted from the Backup API Though the API is mainly targeted at developers, there are a few facts we might be able to extract for our case. In the following list, italics mark quotes from the API documentation. Android automatically performs a ...


7

Does the in built-in backup service work? Yes. But maybe not how you expect/want. As you mentioned apps need to 'opt in' to backup data and most apps don't actually use this. I'm only aware of a couple that do. As far as i know, the backed up data is only actually restore to a device when the device is initially set up, not when you install an app from the ...


7

The best way I know (using CM11 as a reference) is to go to Settings -> Backup & Reset and removing the checkmark next to Auto Restore. It may be under another heading on different ROMS so you may need to look around for it. It is best to do this before you do the factory reset.


7

I especially wonder why adb backup doesn't cover this. It is not that adb backup doesn't want to cover the app com.android.providers.telephony. This app is not much different from any other system app based on its AndroidManifest.xml. The problem is with the flag its developer has declared in the manifest which as a default mechanism for some reason adb ...


6

Some more info on Google backup. When I flashed a custom firmware it didn't restore the apps as I expected. In Settings -> Backup & reset it was showing "Backing up to debug-only private cache", and bmgr list sets gave no results. I solved my problem by doing these steps in adb shell: $ bmgr transport com.google.android.backup/.BackupTransportService $ ...


6

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 jar files: abe.jar and tar-bin-split.jar. At least for my testcase, it worked using the referenced resources.


6

In addition to the well-known Titanium Backup app (for which you must purchase the Pro key to unlock the CWM/TWRP nandroid backup support), there is another app now: Nandroid Manager, which according to its description can restore apps from nandroid backups even with the free version (there is a Pro key too, but it is required if you want to restore special ...


6

To fix this issue, set TitaniumBackup to use the legacy path. The easiest way to do this is to go into TitaniumBackup, press "Menu" and then "Preferences". "Backup folder location" a bit down and click it. Click "DETECT!" and TitaniumBackup will ask you where to scan for backup locations. It's very important that you here choose to scan your whole device and ...


6

First, make sure that your contacts from your old phone were saved as Google contacts. You can do that by going to: http://www.google.com/contacts from any computer and login in with the Google account you used on your old phone. If your contacts are there - you're in luck. Just add this Google account to your new phone and the contacts will be synced.


6

Though you don't want to make a full backup, you might still wish to take a look at Full Backup of non-rooted devices to get an idea what is possible. That page also mentions some helpers for your issue: Simple Backup runs from your computer and, as the screenshots indicate, can also be used to backup a single app (so you could use it for each app you want ...


5

Yes you can, but it will be a bit convoluted: ColorNote's notes can only be exported from the SQLite colornote.db file, but it's not available from the sd card backups. So we will have to do it in two steps: first reimport the sd card backup into the ColorNote app, then extract the generated colornote.db SQLite file (note that you must have rooted your phone ...


5

I had this problem trying to push back a backup of my Samsung Galaxy S2, using ADB with the CWM (clockworkmod) recovery tool. When pushing to a device file, ADB simply deletes the block device file and creates a regular file in its place, and thus no data actually ends up on the mmcblk0 device. Unfortunately, piping the output of a command into "adb shell" ...


5

I have just got this very same problem here and got it solved. Here is how I did it: I got my previous phone that still had all messages on it and did a new backup on WhatsApp settings. Unistall WhatsApp on your new phone and remove the WhatsApp folder from it. After that, copy the whole WhatsApp folder to SD card and transferred to the new phone. Here ...


5

Yes, your earlier ROM will be fully restored as long as you backup system partition as well since that's where the ROM resides. If you wants your apps and apps' data, then you should back up data partition. Note: Backup feature doesn't backup SDcard's content. If you delete all the data of the SDcard you will not be able to restore it.


5

A nandroid backup is a full device backup – so you could ask the same question about a full backup of your PC: After restoring the backup, you'd be at exactly the state the device was in when you performed that backup – all changes done between making the backup and restoring it are lost. Reading between the lines of your question, you're rather asking how ...


5

So disconnecting the whatsapp from the google drive didnt 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). Install Whatsapp and verify the number. Make sure your Data connection is active. WIFI should be OFF. Click on restore backup (Entire backup. ...


5

I'm going to post an alternative answer to my own question, in spite of having accepted the previous answer. The reason is that I have since learned, on my personal device, that the Android Backup and Restore doesn't work as well as I expected, so while that wasn't the case in the case above, this might be the case for other people finding this question. ...


4

Another option is using the Perl AdbBackupRoutines from this XDA thread. They have a few requirements, though: Perl obviously, plus libterm-readkey-perl, libcrypt-cbc-perl, and libcrypt-pbkdf2-perl (if your backups are unencrypted, you can skip the last dependency by simply commenting out line 103 of backupdecrypt.pl where it's included -- worked fine for me)...


4

I tested this, and your concern is valid. I added a dummy file to /system and then did a nandroid restore. The dummy file survived. Repeated the same test on /data with same result. So I don't know why CWM doesn't wipe those partitions first. The CWM author probably made an assumption it doesn't matter or there may be a valid reason they don't get wiped....


4

It is very possible for someone to unlock it, especially with the right skills. Here is what I don't like about pattern unlocks: I once sat next to someone at school who wiped his 'friends' phone screen off, and then waited for him to unlock it. He then stole it and looked at the smudge on the screen to get the unlock pattern. In my personal experience, ...


4

I think the sorting problem depends on your messaging app. Many stock messaging app doesn't sort messages by date but by received time. The AOSP messaging app does sort by date (in cyanogenmod at least). Textra does (4.0+), Go SMS too, and also the new Hangouts app (4.0+).


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