1

I have a full backup file using adb backup command. When I try to restore the full backup file using adb restore command it always displays "Unfortunately Clean Master has stopped working" while restoring the package of Clean Master app com.cleanmaster.mguard.

adb logcat - (too long to paste it here)

How can I skip the clean master app package alone while restoring the full backup?

  • I'm restoring the full adb backup file after factory resetting. Nothing is installed on my phone. I've cleared all the data and only pre-installed apps are present in my system. – Lucky Jul 31 '15 at 10:39
  • Other option is to remove the folder having that app's backup inside your backup file. You can use Android Backup Extractor to convert .ab into .tar then remove the folder and then convert back to .ab. All instructions are in its README. Needs JRE to run. – Firelord Jul 31 '15 at 10:39
  • @Firelord The Android Backupk Extractor gives me javax.crypto.BadPaddingException: Given final block not properly padded. I've raised an issue on the github link github.com/nelenkov/android-backup-extractor/issues/33 – Lucky Jul 31 '15 at 14:06
  • Did you encrypt the backup using a password? That error isn't specific to ABE. – Firelord Jul 31 '15 at 14:22
  • From the next time, you might wanna consider Izzy's Adebar. It takes separate app backup, so you can easily avoid the one you don't want to restore. – Firelord Jul 31 '15 at 14:24
1

I removed the clean master app data from the backup and re-created the backup.ab file again using the Android Backup Extractor(ABE). It seems that the backed up file was corrupted and couldn't able to restore it properly. So I suggest to,

  • use the adb backup command atleast twice to make sure the backup is fully completed and compare both file are same sized ones

    ( OR )

  • extract the backup file using ABE as .tar export and make sure the extracted .tar file can be opened without any errors.

Since I also had app backups using Helium Backup(Carbon) app, I was able to restore my app data using the Helium app. And all the shared data folder contents I moved from the extracted .tar file to my device via an USB cable manually.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.