Skip to content

Conversation

@LeonDevLifeLog
Copy link

No description provided.

@nelenkov
Copy link
Owner

Could you share some docs/info about MIUI OS backup format?

@LeonDevLifeLog
Copy link
Author

TIM截图20200610160201
MIUI os backup app just add custom magic header info before android origin backup file header.
MIUI os custom magic header are split by \n,so just skip five line from the file header.

@rustyx
Copy link

rustyx commented May 17, 2021

Don't you want to be able to write such format, too?

@Zipper-1
Copy link

The majority of MIUI BACKUP magic Header is unchanged across packages with the following format. Repacking is quite easy by simply adding the header to repacked Android backup package. Note: there is a blank space between package name and app name.

MIUI BACKUP
2
<packageName> <appDisplayName(UTF-8)>
-1
0

@nelenkov
Copy link
Owner

There is an outstanding PR for this, if someone can test that it actually works with MIUI backup (and doesn't break regular Android backup), I can merge it.

@willem640
Copy link

Worked for me! (tested on a simple backup of my notes app). Thanks for figuring this out :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants