🔒 Closed Flashing another firmware without flashing full rom of xiaomi phones

Status
Not open for further replies.

Professora Akira

☯️ SôulNinetãiL☯️
Its a simple trick to extract [or use] previous firmware in our phone without downgrading our ROM. Don't worry, it's simple and easy to follow, and this method is really useful too to anyone who use custom ROM in their phone.

Prerequisites:

*Recovery ROM
*Archive Manager such as WinRAR, 7Zip, or anything you can use
*Unlocked bootloader
*Custom Recovery [TWRP]

Here's the method:

Download full Recovery ROM that you desired for your device.
If it's not available there, just go to corresponding device sub-forum and go to ROM section.
Open the zip file using archive manager [it's better to make a duplicate file for a backup]
After it opened, you can see 2 folders and some files, remove all the files except the folders

Open META-INF folder, remove all the files there except the com folder
Open com folder, and remove android and miui folder

Open google folder, then open android folder as well and you can see two files there

Leave alone update-binary, and open updater-script file using text editor and remove these lines

<font size="3">package_extract_file("boot.img", "/dev/block/bootdevice/by-name/boot");

package_extract_file("META-INF/com/miui/miui_update", "/cache/miui_update");

set_metadata("/cache/miui_update", "uid", 0, "gid", 0, "mode", 0555, "capabilities", 0x0);

run_program("/cache/miui_update");
delete("/cache/miui_update");

show_progress(0.600000, 250);
ui_print("Patching system image unconditionally...");

block_image_update("/dev/block/bootdevice/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.ρá†ch.dat") || abort("E1001: Failed to update system image.");</font>Save the updater-script file, then the archive manager will ask you to confirm the changes, confirm it then close the archive manager
Copy the zip file to your phone, now it'll reduced to about 50MB more or less
Reboot your phone to TWRP, flash the zip, and reboot to system

If there's any error message there, it might you are not edit the updater script perfectly. But don't worry, your firmware still flashed to your phone.

Enjoy!




Source:xiaomitips





~Professora Hakimi Kazumi
Asianism
 
Status
Not open for further replies.

About this Thread

  • 4
    Replies
  • 727
    Views
  • 4
    Participants
Last reply from:
Professora Akira

Trending Topics

Online now

Members online
929
Guests online
756
Total visitors
1,685

Forum statistics

Threads
2,275,569
Posts
28,964,139
Members
1,231,867
Latest member
LabaMC
Back
Top