Hot answers tagged

117

Just for reference of others, here is some background on the .ab file format. The Android Backup (*.ab) file is a compressed TAR file. It is compressed using the DEFLATE algorithm. On top of that, there can be AES encryption used. This is determined when you create the backup, if you enter a password then the backup is encrypted, otherwise; there is no ...


92

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


42

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 ...


33

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 ...


31

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....


18

Well, this took a long time. For future searchers, here's what you can do: Find your contacts2.db file hidden somewhere in Android. Most of the time it's located in /data/data/com.android.providers.contacts/databases. I was lucky and found it in a search through Titanium Backups' tarballs. Nab that file. It has everything in it in a sql database. I then ...


13

"0-click" batch restore (as the Market page describes it) is one of the features of the Pro version. You cannot do it in the free version, but purchasing a key for the Pro version allows you to perform a batch restore unattended.


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 ...


11

If you want to do what is essentially a 1-to-1 backup of your device, you can use a custom recovery to create a "nandroid" backup. Doing so effectively creates disk images of your NAND partitions (hence "nandroid") that you can restore from at a later point. This is going to vary a bit by device and recovery system, but in general if you want to perform a ...


11

I found this page on Google's support site which states the following about restoring your phone's settings during the initial setup: "Important: If you want to restore your settings, you must do that now during setup. You can’t restore data after setup is complete." Based on this, I'm guessing there's no way to restore my account data at this point, short ...


9

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 ...


8

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

There's no option to resume. If you stop you can only manual download later. If you didn't pressed stop, you could just disable data transfer and, when connected again, download will continue. If you stop, the current sync state will be sent to the server and it will be (without the apps that weren't installed) stored as the device final state after ...


7

The pro version of Titanium Backup supports batch restore without user interaction. It's worth it.


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

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 ...


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

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

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.


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 ...


6

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 ...


5

May be the app is not recognizing the location of the backup. Do the following and see if that works Remove all the backup files from the new Samsung Captivate Now, from Captivate do a Titanium backup, it will create a backup folder with backed up apps. Then, copy all old backup files from HTC to that location. Try titanium backup again, this might show ...


5

Take a look at this thread over at XDA-Developers forum. Someone wrote a Java app to extract the contacts out of the .sbf file into VCard files, which are a lot easier to deal with. Also, in the same thread people report that with the latest version of Kies you can execute a Restore without having a Samsung phone connected to the PC, and extract the ...


5

Synopsis Titanium Backup, is the most popular tool for everybody, not just for ROM Flashers, its for everybody, due to a large number of features such as: Backing up user apps and their data All backups are saved on the SD-Card (really, I should be calling this external storage to future proof this answer as SD-Card readers are in favour of getting ...


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

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 ...


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 ...


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