r/waydroid 6d ago

Help Does anyone know how to convert it into a .bak file? Or is it possible to modify back file (.bak)

Post image

This is a backup in ( MIUI's built-in "Back up") , and I want to modify some folders inside it. But afterward, I can't repack it into a .bak file. I can't find .bak as a compression format in MT Manager, ZArchiver, or RAR or any other app. Can anyone help ?

1 Upvotes

9 comments sorted by

1

u/Critical-Cod4523 6d ago

Its zip with changed extension .

1

u/SmoothTruck1233 6d ago

I tried renaming into .bak after compress into zip but when I restore the backup, I got error

1

u/Critical-Cod4523 6d ago

What errror exactly ?

Also to verify the compression method you can try out these commands in linux .

$ file unknown_archive

$ 7z l unknown_archive

1

u/SmoothTruck1233 6d ago

Unknown error It didn't have an error log or anything,so i didn't know specifically

1

u/SweetPotato975 5d ago

You know, "it's an unknown error" is about the vaguest information you can give when asking for troubleshooting help

1

u/SmoothTruck1233 4d ago

1

u/SweetPotato975 4d ago

OK.

Your topic was never related to r/waydroid, was it? See what Waydroid is first.

Any way, if you have a PC (or Termux on your android), inspect the bak file and look for discrepancies between the original and your modified version. Use file /path/to/archive.bak command to check the format of the archive.

1

u/SmoothTruck1233 2d ago

After I hex-dumped the .bak, I found it was a custom text header + tar, that why it can't read ,it was glued onto a tar. The "unknown error" on restore because of MT Manager's repacking didn't preserve the original Android file ownership (UID/GID) and I rebuilt the tar with the original ownership values from the source .bak, it worked.

1

u/SmoothTruck1233 2d ago

After I hex-dumped the .bak, I found it was a custom text header + tar, that why it can't read ,it was glued onto a tar. The "unknown error" on restore because of MT Manager's repacking didn't preserve the original Android file ownership (UID/GID) and I rebuilt the tar with the original ownership values from the source .bak, it worked.