Want to improve this question? Update the question so it’s on-topic for Stack Overflow.

Closed 2 years ago .

I am running an android 4.0.3 device, and I want to extract the back up file created by :

The above line works inside the CMD (windows) and I am able to get the data.ab file inside the ‘

What I can’t do is extact that file using CMD . I tried the below two methods.

I get the below error

I tried extracting it via CYGWIN, however, I failed too.

Where should I do the extraction ? In which directory should my command prompt be ? Any insights ?

2 Answers 2

As per https://android.stackexchange.com/a/78183/239063 you can run a one line command in Linux to add in an appropriate tar header to extract it.

( printf "x1fx8bx08x00x00x00x00x00" ; tail -c +25 backup.ab ) | tar xfvz —

Replace backup.ab with the path to your file.

I have had to unpack a .ab -file, too and found this post while looking for an answer. My suggested solution is Android Backup Extractor, a free Java tool for Windows, Linux and Mac OS.

Make sure to take a look at the README, if you encounter a problem. You might have to download further files, if your .ab -file is password-protected.

У вас есть резервная копия userdata_*.backup созданная в стоковом Recovery Andro >

Сайт Android +1 (этот, а не его клоны), замечателен тем, что здесь находиться уникальная информация, которая доступно изложена. В этот раз мы приготовили очередной полезный материал.

Если вы разбили дисплей или у вас установлен графический код, а может быть пин-код, то возможно вы сможете извлечь необходимые данные с помощью резервной копии созданной в стоковом Recovery Android. Об этом мы уже рассказывали вам в прошлой статье, рекомендуем ознакомиться — как создать бэкап Android стоковым Recovery.

Теперь в этой статье мы расскажем вам как вскрыть бэкап, с помощью 2 способов.

Способ 1. Открываем резервную копию userdata_*.backup

  1. На компьютер загрузить 7-zip архиватор и установить его
  2. Переместите резервную копию userdata_*.backup
  3. Правым кликом по резервной копии вызовите дополнительное меню и выберите «Открыть с помощью» и указать «7-zip»
  4. После чего вы можете извлечь все данные из архива

Если userdata_*.backup при попытке открыть его через 7-zip не увенчалась успехом, переходим ко второму способу.

Способ 2. Открываем резервную копию userdata_*.backup

Прежде всего вам необходимо будет установить на компьютер Ubuntu Linux или создать виртуальную машину с Ubuntu Linux (расскажем позже).

  1. Все Файлы резервной копии userdata_*.backup переместите в Ubuntu
  2. В папке где находиться резервные копии сделайте правый клик мыши на свободной области и в появившемся меню выбрать «Открыть в терминале»
  3. Далее вводим команду с помощью которой мы создадим из текущих файлов userdata_*.backup в образы
    dd if=userdata_ваша_дата.backup of=part 0 .img bs=512 skip=1
    dd if=userdata_ваша_дата.backup 1 of=part 1 .img bs=512 skip=1
    dd if=userdata_ваша_дата.backup 2 of=part 2 .img bs=512 skip=1
  1. Теперь необходимо создать из всех частей образов один целый образ
    cat part*.img > backup.img
  2. Теперь необходимо примонтировать данный образ к системе, чтобы мы могли увидеть что находиться внутри
    sudo mount -t ext4 backup.img /mnt
  3. Теперь необходимо запустить файловый менеджер под root правами чтобы можно было полностью открыть все что нам необходимо
    sudo nautilus
  4. Переходим по пути /mnt и видим кучу папок которые являются данными вашего backup файла

Извлекаем данные, где что?

Все файлы видео, фото, видео, аудио, документы, можно найти в папку /media/o/. База данных контактов можно найти по пути data/com.android.providers.contacts/databases/ файл contacts2.db (как извлечь контакты). Приложения находятся в /app/.

У вас еще остались вопросы? Пишите их в комментариях, рассказывайте, что у вас получилось или наоборот!

Вот и все! Больше полезных статей и инструкций читайте в разделе Статьи и Хаки Android. Оставайтесь вместе с сайтом Android +1, дальше будет еще интересней!

Andro > 1 Android резервного копирования

  • Резервное копирование Andro > 2 Samsung резервного копирования
  • Программное обеспечение Samsung резервного копирования
  • Удаление автоматического резервного копирования снимков
  • Samsung Kies резервного копирования
  • Samsung Облако резервного копирования
  • Резервное копирование Samsung Account
  • Samsung Contacts Backup
  • Резервное копирование Samsung сообщение
  • Samsung Фото резервного копирования
  • Резервное копирование на ПК Samsung
  • Резервное копирование Samsung устройств
  • Резервное копирование Samsung S5
  • Резервное копирование Samsung S4
  • Samsung Kies
  • Samsung Kies 3

Taking a backup of your Android device is of utmost importance. Nobody likes to lose their crucial data while facing an unforeseen situation. A lot of people assume that one can backup their data only by rooting their device. If your device is not rooted, then don’t worry. There are plenty of options for one to backup their important data and restore it whenever required.

We will help you backup your data without any trouble using an Android extractor. If you use an Android device and would like to make sure that all your data remains safe, then you got to make an effort. Follow our suggested approach and secure your data from any unexpected loss.

Part 1: How to Make ADB Backups

One can easily backup their data using an Android backup extractor. If your device has Android 4.0 and above, then you can easily follow these easy steps. Though, it works for other versions as well, but the approach could be a little different. Start by getting familiar with the Android SDK tool as it will come handy to you on various occasions and follow this foolproof process to save your data on your computer in a trouble-free manner.

1. Commence by installing the latest version of the Android SDK toolkit. This will help you access your device in a whole new way.

2. Simply open Android Studio and click on “SDK Manager”. Now select the “Android SDK Platform tools” to install all the essential packages you would need.

3. Select the packages you want to have and click on the “Install” button.

4. As soon as the process gets complete, pick your Android device and go to “Settings”. Click on “About phone/tablet” option.

5. Now you would be required to tap “Build number” a certain amount of times (most probably 7) until it would say “You are now a developer.” Congratulations! You have already taken the first step to work on the android extractor.

6. Again, go to “Developer options” and set the “USB Debugging” option to “on”.

7. Simply connect your Android device to your computer using a USB cable.

8. Open the terminal prompt and make sure you have the Admin rights. Now, navigate to the ADB’s location. Usually, it is located at: C:UsersusernameAppDataLocalAndroidsdkplatform-tools

9. Depending on the type of backup you want to attain, you can type either of these commands – adb backup-all or adb backup -all -f C:filenameichoose.ab. The first command will backup all the data from the device to a folder backup.ab while the second one can be used to backup data from an Android backup extractor to a certain file location.

10. You can also switch command accordingly. –apk can be used to backup your app data, -noapk won’t backup app data, -shared will backup data on the SD card while –noshared won’t backup data on the SD card.

11. After typing the chosen command, press Enter and it will make the following screen appear on your device.

12. The screen will ask you to provide a password for your backup. Provide a respective password and tap the “Back up my data” option for the process to commence automatically.

After following these steps you would be able to backup your data from your Android device to computer.

Part 2: How to Extract files from ADB Backups

After knowing how to backup your data using an Android extractor, it is essential to know how to restore the same data as well. If you are able to ace the process of backup, then restoring data would be a piece of cake for you. Simply follow these easy steps.

1. Make sure that you have got yourself familiar with the SDK tool and were able to backup your phone without any trouble.

2. Connect your device and follow the same initial process as above.

3. Instead of giving the backup command, make sure you give “adb restore” instead and the initial file location. For example, “adb restoreC:UsersusernameAppDataLocalAndroidsdkplatform-tools”

4. Your device would prompt you to give a password. This would be the same password that you used to backup your data.

5. Provide your password and tap “Restore my data” for the process to begin.

Part 3: Alternative Solution: Andro > The above-suggested process of Android extractor is quite complicated. If you want to move past such a tiresome process, then we recommend trying Dr Fone. With this cutting-edge tool, you can attain your backup and restore activity in no time. Simply follow these easy steps.

dr.fone — Andro > Flexibly Backup and Restore Android Data

    Selectively backup Andro > Available on: Windows

1. Run Dr Fone on your computer and make sure that your Android device is connected via USB port.

2. Now, click on the “More Tools” and choose “Android Data Backup & Restore”.

3. The next window will let you know basic information about your device and would give either Backup or Restore option. Click on the “Backup” button.

4. The tool will detect different kinds of data files that are available for backup. Simply select the ones you like to backup.

5. Press the “Backup” button for the process to start. It will let you know the progress of it as well.

6. The tool will notify you as soon as the backup is completed. You can select “View the backup” to get a glimpse of your recently performed task.

Dr Fone will allow you to backup your data with a single click and that too without using any Android backup extractor. In case you want to restore your data, follow these steps.

1. This time, instead of selecting the “Backup” option, click on “Restore”.

2. On the top left corner, you will get a list of all the backup files that are available. Pick the one you want to restore.

3. Your data will be displayed in a bifurcated manner. Simply select the files you want to restore.

4. Give the authorized permission for the tool to access your device.

5. The restore would be completed in the next few minutes and you would be notified promptly.

That was certainly easy! Needless to say, it is one of the best ways to backup your device without using a traditional Android extractor.

Maintaining a timely backup of your data is really important. If you were simply delaying it because you were reluctant to use an Android backup extractor, change your mind. Either use the traditional method or Dr Fone to backup your data right away!

They’re downloading

dr.fone toolkit — Android Data Recovery

Recover deleted data from more than 6000+ Android phones.

dr.fone toolkit — Android Data Backup & Restore

Selectively backup and restore Android data to computer with one click.