Hot answers tagged

109

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


36

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


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

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


8

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


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

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

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


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

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


6

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

I've adapted niels' script a little to fix some issues with it: #!/bin/bash set -e if [ $# -ne 1 ]; then echo "Usage: $0 <package-name>" exit 1 fi echo -n "Enter password: " read -s password echo java -jar abe.jar unpack $1 $1.tar "$password" tar -xf $1.tar --wildcards '*/base.apk' rm $1.tar for apk in apps/**/a/...


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


5

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 with root. This data doesn't leave the device nor is it a part of app data. For more details, see key points related to the question (from our sister sites) : ...


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


4

In my case it was necessary to change the owner and group of the file to wifi: mount -o rw,remount /system chown wifi:wifi /data/misc/wifi/wpa_supplicant.conf ls -la /data/misc/wifi/wpa_supplicant.conf -rw-rw---- wifi wifi 2343 2016-07-11 10:31 wpa_supplicant.conf Note: you need a rooted device to do that.


4

I'm having the same problem. So far, the only working solution that I discovered is to disconnect WhatsApp from your Google Drive (during the restoration). In a browser, go to your Google Drive → Setting (the gear icon) → Manage Apps → look for WhatsApp Messenger → click Option next to it → click Disconnect From Drive. The media ...


4

I solved it with the following script #!/bin/bash killall adb > /dev/null 2>&1 set -e if [ $# -ne 1 ]; then echo "Usage: $0 <package-name-without-ab>" exit 1 fi export PATH=/opt/jdk1.8.0_152_jce/jre/bin:$PATH ab=$1.ab java -jar /opt/android-backup-extractor-20160710-bin/abe.jar unpack $ab $ab.tar apw; tar -xf $ab.tar --wildcards '*.apk'...


4

As it turns out, TWRP/nandroid backups aren't encrypted. The encryption layer sits lower at the level of the device. You can therefore restore the backup on a new device like any other backup simply by using the restore function in TWRP. You have to re-enable encryption afterwards, of course. This also means that backup data is not encrypted and therefore ...


4

Restore individual apps from a full backup adb restore always restores the full content of an Android backup file. Therefore if you want to restore apps individually you have to make individual backups so that you get one backup files per app: adb backup <packagename> -f <packagename>.ab Alternatively you can use Android Backup Extractor (abe) ...


3

If you have the db files then the only way is to root your mobile and copy the corresponding db files to the location(data/data/com.socialnmobile.dictapps.notepad.color.note).


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