FORUMS
Remove All Ads from XDA

[Guide] How to edit Miui ROMs to flash without bootloader

5,888 posts
Thanks Meter: 10,871
 
By AL_IRAQI, Recognized Contributor / Themer on 22nd July 2018, 01:30 PM
Post Reply Email Thread
Hi Everyone

We all know that Xiaomi added Anti roll-back to latest Stable/Beta ROMs and many users bricked their phones because of it, check my thread about ARB Here, then check out this one

Here ill provide a Guide to Mod Miui ROMs to flash it without "firmware-update", to prevent any potential bricking while switching between Miui Based ROMs

Download Xiaomi Flashable Firmware Creator and follow those steps:
1- Download .exe for windows, or the one without extension for linux, and download Miui Based ROM you want to edit

2- Put them in the same folder tool & .zip file

3- Open CMD/Terminal in that folder and type the command you want with file name, it has three options



Code:
  -F FIRMWARE, Create normal Firmware zip
  -N NONARB, Create non-ARB Firmware zip
  -L FIRMWARELESS, Create Firmware-less zip


Commands will be like this.
Code:
create_flashable_firmware.exe -F miui_HMNote5HMNote5ProGlobal_8.11.23_12bcf570ce_8.1.zip
create_flashable_firmware.exe -N miui_HMNote5HMNote5ProGlobal_8.11.23_12bcf570ce_8.1.zip
create_flashable_firmware.exe -L miui_HMNote5HMNote5ProGlobal_8.11.23_12bcf570ce_8.1.zip
Run the command you want and result file will be in the same folder




Final Zips after running all the commands


Manual Method

ill post two way of doing it, on PC & Mobile, ill start off with PC method:
  1. Open ROM ZIP and remove firmware-update & META-INF folders










  2. Copy over my modified META-INF folder







  3. and Done, copy over the modded ZIP to your phone and flash


Check attachments or Drive folder for already modified scripts to use


2nd Post will have Mobile method

NOTE: never contact me on PM's or on Telegram, because ill simply ignore your msgs, ask in here or in whyred chats
Attached Files
File Type: zip META-INF-Masik-1.6.zip - [Click for QR Code] (1.78 MB, 870 views)
File Type: zip META-INF-Stock-Miui.zip - [Click for QR Code] (826.6 KB, 1986 views)
File Type: zip MiuiPro-8.7.19-META-INF.zip - [Click for QR Code] (856.0 KB, 1146 views)
File Type: zip META-INF-EU-Miui.zip - [Click for QR Code] (826.4 KB, 942 views)
File Type: zip Miui-Fastboot-Scripts-Modded.zip - [Click for QR Code] (4.6 KB, 1636 views)
The Following 48 Users Say Thank You to AL_IRAQI For This Useful Post: [ View ] Gift AL_IRAQI Ad-Free
22nd July 2018, 01:30 PM |#2  
AL_IRAQI's Avatar
OP Recognized Contributor / Themer
Flag Baghdad
Thanks Meter: 10,871
 
More
Mobile Method
with this mehtod, ill be using FX File Explorer, you could use MiXplorer also, just make sure to follow the same steps
  1. Extract ROM






  2. Remove firmware-update & META-INF folders





  3. Copy over my modified META-INF folder




  4. Re-Zip/Compress ROM files



  5. Make sure to use those settings or TWRP wont flash it







  6. and Done, Flash from TWRP



Check attachments or Drive folder for already modified scripts to use


NOTE: never contact me on PM's or on Telegram, because i'll simply ignore your msgs, ask in here or in whyred chats
The Following 24 Users Say Thank You to AL_IRAQI For This Useful Post: [ View ] Gift AL_IRAQI Ad-Free
22nd July 2018, 01:31 PM |#3  
AL_IRAQI's Avatar
OP Recognized Contributor / Themer
Flag Baghdad
Thanks Meter: 10,871
 
More
Editing Fastboot ROMs
Fastboot ROMs are easy to edit, just follow these simple steps
  1. Excract ROM



  2. Copy over included flash scripts to ROM folder


  3. Then Run the script you want to use, like flash_all.bat to flash everything and wipe data, or use MiTool to flash it


Scripts are included in OP
The Following 11 Users Say Thank You to AL_IRAQI For This Useful Post: [ View ] Gift AL_IRAQI Ad-Free
22nd July 2018, 01:35 PM |#4  
Vatumb's Avatar
Senior Member
Thanks Meter: 87
 
More
Thanks...great work buddy
22nd July 2018, 01:38 PM |#5  
parth111999's Avatar
Senior Member
Flag Mumbai
Thanks Meter: 4,382
 
Donate to Me
More
Super Helpful Guide @AL_IRAQI
Cheers
22nd July 2018, 02:00 PM |#6  
Junior Member
Thanks Meter: 0
 
More
Thank you very much. Greatfull for this information

---------- Post added at 03:00 PM ---------- Previous post was at 02:40 PM ----------

Is that possible with bootloader locked?. Is possible to flash oficial modded rom with stock recovery?
22nd July 2018, 02:46 PM |#7  
Senior Member
Flag Cork
Thanks Meter: 919
 
More
Thanks for the guide!

Can something similar be done with Fastboot roms?

You reported the Xiaomi have blocked using old roms with Mi Flash.

So if something happens to our devices, we can use Mi Flash with modded rom, so not to trigger ARP. Or do you need permission(from them) to even flash roms with that now?

Also does NON_HLOS.bin contain bootloader files?
22nd July 2018, 03:25 PM |#8  
Junior Member
Flag Mukomuko
Thanks Meter: 1
 
More
Thank you very much.
22nd July 2018, 05:07 PM |#9  
Junior Member
Flag Batu
Thanks Meter: 1
 
More
Can i do it with OTA rom which is smaller download size?
22nd July 2018, 08:22 PM |#10  
zoko's Avatar
Senior Member
Flag Lisbon
Thanks Meter: 9
 
More
Very Nice..
whats the diferences between META-INF-EU-Miui and META-INF-Stock-Miui ?
thanks
22nd July 2018, 09:09 PM |#11  
ahadrox's Avatar
Senior Member
Flag Cox's Bazar
Thanks Meter: 48
 
Donate to Me
More
Can I go back to 9.5.17.0 from 9.5.19.0 by modding with this method?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes