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


Question

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.


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-tookit\android-backup-extractor\android-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-179d978\Backups" 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-179d978\backups\backup_june_2020_fixed.ab")

  16. Enter the password on your device to unlock the backup function.

  17. Wait until the process finishes.


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes