TransWikia.com

adb: Restoration of a backup on Acer Icionia 7 fails by error "archive is encrypted but no password given"

Android Enthusiasts Asked by Michael Kůr on December 15, 2021

Due to some problems with my Acer Iconia 7 tablet (with KitKat 4.4) I decided to perform factory reset. However, because I have there some data that I did not want to lose I created a backup in HoloBackup. The backup was created succesfully (it has around 1 GB), but when I try to restore it, the process fails by error adb: archive is encrypted but no password given.
Now, at this point, I do not understand, because in developer settings I set a password to protect the backup feature of the tablet. But the error message sounds like a password protection is actually required for the .ab file itself. But in the settings nor in HoloBackup, I cannot see any way how to do it.
Can you help me please. Thank you.

One Answer

Thanks to alexcs I was able to get it working, so here are the steps to solve the issue:

  1. You need to convert the .ab file to unencrypted .tar archive, first. To do that, follow next steps.
  2. If you have not installed Java SE on your computer yet, download it and install.
  3. Download android-backup-extractor from SourceForge and extract it.
  4. Now open Windows Explorer and locate the folder, to which you unpacked that archive.
  5. Navigate to ...android-backup-tookitandroid-backup-extractorandroid-backup-extractor-20180521-bin
  6. Open the folder, where is located your .ab backup, in a new window and copy the abe.jar executable from android-backup-extractor-20180521-bin folder and paste it here.
  7. Now open command-line or Windows PowerShell and use the cd "path" command (for example cd "C:omegavesko-HoloBackup-179d978Backups" to change your parent directory to the folder, in which is stored your .ab file
  8. Now convert the .ab file to unencrypted .tar archive by entering this command: java -jar abe.jar unpack [file name of the original .ab file] [file name of the output file],(for example java -jar abe.jar unpack backup_june_2020.ab output.tar).
  9. Now unlock the .ab file by entering password, which should be the same as the password you are using to unlock the backup function of your device.
  10. Wait, until the process is not finished (the size of the .tar file will stop grow) .
  11. Now convert the .tar file to unencrypted .ab file, using command: java -jar abe.jar pack [file name of the converted backup file] [file name of the new .ab backup](for example: java -jar abe.jar pack output.tar backup_june_2020_fixed.ab)
  12. Wait, until the process is not finished.
  13. Now navigate to the directory, where is executable HoloBackup.exe (for example cd "C:omegavesko-HoloBackup-179d978")
  14. Now power on your android device, connect it via USB and eventually make other neccesary settings.
  15. Restore the backup by using command .adb restore "file path" (for example adb restore "C:omegavesko-HoloBackup-179d978backupsbackup_june_2020_fixed.ab")
  16. Enter the password on your device to unlock the backup function.
  17. Wait until the process finishes.

Answered by Michael Kůr on December 15, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP