[Windows 10, 8, 7, XP etc.] Shaqee:
Tutorial removing BIOS flash protection

Warning: This should potentially work only for BIOS ver XMAKB3M0P0B09, XMAKB3M0P0D0A, XMAKB3M0P100B and later. Will NOT work on XMAKB3M0P0705 as they have additional security which can't be removed easy.

As I'm currently on XMAKB3M0P0705 and it doesn't work form, but it should work for above mentioned bios versions.

1. Download "variable patcher.rar" from here: https://xdaforums.com/windows-10/general/xiaomi-air-13-t3659796

2. Unpack. Then delete "Patcher.cmd" inside folder and then delete "variable.ps1" inside bin folder, you wont need them

3. Open CMD (Administrator mode) navigate to folder where "H2OUVE.exe" exists

4. Execute command: H2OUVE.exe -gv AllVars.txt (Don't close CMD)

6. Backup file and keep safe

7. Open AllVars.txt with any editor

8. You will see all tables with your variables, but you will have to edit only some of them

9. Copy this GUID 4570B7F1-ADE8-4943-8DC3-406472842384 and search for two tables in your text editor, should be PchSetup and Custom

10. In both tables find line 00000010: xx xx xx xx xx xx 01 01 xx xx xx xx xx xx xx xx (xx - you will see numbers which are different for every model, ignore them and don't touch them)

11. First number is RTC Lock, second is BIOS Lock. Change both to 00 (Disable), if there's 00 already don't do anything

12. In same both tables (PchSetup and Custom) find line 00000610: xx xx 01 xx xx xx xx xx xx xx xx xx xx xx xx xx

13. If there is 01 (Flash Protection Range Registers) change to 00

14. Copy this GUID B08F97FF-E6E8-4193-A997-5E9E9B0ADB32 and search for two tables in your text editor, should be CpuSetup and Custom

15. In both tables find line 000000E0: xx xx xx xx xx xx xx xx xx xx xx xx 01 xx xx xx

16. Change 01 (BIOS Guard) to 00

17. Copy this GUID 5432122D-D034-49D2-A6DE-65A829EB4C74 and search for two tables in your text editor, should be MeSetup and Custom

18. In both tables find line 00000000: xx 00 xx 00 xx xx xx xx xx xx xx xx xx xx xx xx

19. First number is Local FW Update, second is Me FW Image Re-Flash. Change both to 01

20. Save file with new name AllVarsEdited.txt, then close file and keep it next to "H2OUVE.exe"

21. Now execute CMD command: H2OUVE.exe -sv AllVarsEdited.txt

22. Restart PC

23. Open CMD (Administrator mode) navigate directory where FPTW is located (if you don't have it search in internet)

24. Now backup your current BIOS using command FPTW -d bios.bin -bios

25. Try to flash back your own backup with command FPTW -f bios.bin -bios

26. If you didn't get any errors you are all good to go and flash any bios backup.

In case this doesn't work this wont brick your laptop. Please let me know the outcome so I could look for other protection.

Also this method will definatelly unlock ME region so you can proceed with these tutorials:

https://www.win-raid.com/t596f39-Intel-Management-Engine-Drivers-Firmware-amp-System-Tools.html - Update ME region

https://www.win-raid.com/t1658f39-G...-CS-TXE-Regions-with-Data-Initialization.html - flash cleaned ME region (FPTW command: FPTW -f ME.bin -ME)

Tutorial how to move your unique BIOS data to the BIOS you want to flash:

1. Download HxD hex editor - https://mh-nexus.de/en/downloads.php?product=HxD20 and install

2. Download any BIOS version (size should be 7340032 bytes) you want to flash (search it this thread or reddit or internet)

3. Backup your BIOS FPTW -d bios.bin -bios (size should be identical 7340032 bytes)

4. Open both files in HxD editor and then go to Analysis -> Data comparison -> Compare...

5. New window will open so click OK and both files will be vertically aligned

6. On both files move to offset 3F000 using Search -> goto... (This is where your device serial number is located)

7. On your BIOS file left mouse click at the beginning of offset 3F000 and drag to the end of offset 3F0D0 - totally 14 lines should be selected in blue font, then press ctrl+c

8. On BIOS you want to flash, select same area, then right mouse click and choose Paste Write

9. Just double check if structure is the same after you done paste (number of lines should NOT increase/decrease). Only data should be changed

10. On both files move to offset 490000 using Search -> goto...

11. This is where your WIN key is stored. Copy it from your BIOS to BIOS you will flash. (I haven't test it, but possibility is to insert new OEM Win 10 Home/Pro any language)

12. Save this as a new file

13. Ensure that the file size is the same (7340032 bytes)

14. Cross oneself (lol)

15. Flash using FPTW -f YourBiosName.bin -bios (bios name should be same you used in step 12)

Also please be noted that once you flash someone's else BIOS they most probably will be BIOS locked and XTU disabled - so you will have to perform same steps again.

Disclaimer: As always, BIOS flashing is dangerous procedure! Use it at your own risk!!! I'm not responsible if something goes wrong! But if you already familiar with flashing procedure so there shouldn't be any problems.

Tutorial how to find your Motherboard's serial number and flash into BIOS:

As you have probably noticed you have fake MB S/N 1234567890123456789012. I know because I have it to and everyone else...

To change it:

1. Disassemble your laptop, and find your MB S/N onto battery and write it down somewhere

2. Download this package http://en.inspur.com/eportal/fileDi...ur NF8480M5/NF8480M5_BIOS_3.0.05_20180420.zip

3. Extract it

4. Go to folder NF8480M5_BIOS_3.0.05_20180420\DMI Tool\Windows\ and extract H2OSDE that is all you need from this package, you can delete everything else

5. Open H2OSDE-Wx64.exe

6. Input 3 and press Enter then input 2 and press enter

7. Input s4 (this is string where you should see old serial 1234567890123456789012) and press Enter

8. Add your MB S/N from battery without any "" or other symbols, just number

9. Press enter untill it's changed.

That's all.

Don't ask me for any mods or how to flash on XMAKB3M0P0705 BIOS:

1. By default Mi Air 13 has all features enabled and Pro you have to enable manually. So you're good to go

2. XMAKB3M0P0705 Some day I will experiment with downgrading BIOS to A06 (2016 model) if this will work then I will write tutorial