Instructions for adding / replacing a background image in the program MiHome 5.0.0 and higher
1. It is necessary to download / install a program for parsing / collecting arch files, for example
TranslatorApk(on the program, please ask questions in the topic with the program)
2. Disassemble the file
MiHome.apk3. In the folder that appears
MiHome, go on the way
\ assets \ wallpapers \, there will be 3 folders
static1-static3This is the wallpaper storage.
4. Now, to add your own wallpaper, you need to create the required number of folders in which each unit of wallpaper will lie, for example
static4, static5, static65. Find any image you want to add as wallpaper, with resolution
1080x1920in jpg format. Rename to
show.jpg6. Now you need to add information about the new wallpaper in the program resources.
There are 3 such resources:
- \ MiHome \ assets \ wallpapers \ conf.json
- \ MiHome \ original \ META-INF \ CERT.SFD
- \ MiHome \ original \ META-INF \ MANIFEST.MF
7. In the file
\ MiHome \ assets \ wallpapers \ conf.jsonadd to existing lines:
{
"name": "static3",
"show": "show.jpg",
"content": {
"picture": "show.jpg"
}
},
Where
3, this is the number of your new wallpaper folder, for example
static4, then put the number
4, and so on, if there are several new folders.
8. In the file
\ MiHome \ original \ META-INF \ CERT.SFDadd to existing lines:
Name: assets / wallpapers / static3/show.jpg
SHA1-Digest:rsStfqlWGlw + MaDo9tWFCEutPvo=
Where
3, this is the number of your new wallpaper folder, for example
static4, then put the number
4, and so on, if there are several new folders.
BUT
rsStfqlWGlw + MaDo9tWFCEutPvohash is the amount of the file, which you can get here for example
https: //emn178.github...ols/sha1_checksum.htmlby inserting later instead of the original amount.
9. In the file
\ MiHome \ original \ META-INF \ MANIFEST.MFadd to existing lines:
Name: assets / wallpapers / static3/show.jpg
SHA1-Digest:rsStfqlWGlw + MaDo9tWFCEutPvo=
Where
3, this is the number of your new folder with wallpaper, for example
static4, then put the number
4, and so on, if there are several new folders.
BUT
rsStfqlWGlw + MaDo9tWFCEutPvohash is the amount of the file, which you can get here for example
https: //emn178.github...ols/sha1_checksum.htmlby inserting later instead of the original amount.
Those. items
8and
9duplicate each other, and the information is the same, i.e. making a point
8, you can copy all the new data about the folders, and paste into the file from the item
9.
10. Everything. Now we collect the application back, sign it, and enjoy our wallpaper.
I can not change the wallpaper for everyone, it's easy to do it yourself, there are a lot of you, I'm alone.