[Android Security] Xiaomi 8 flashing, brick saving, and root tutorials

Wire Flash: Use the flash software on your computer to transfer the ROM through the data cable and install it to in the phone’s memory. ROM packages have the suffix tgz.

Card flash: Download or copy the required ROM tomemory/SD card root directory middle.

Xiaomi 8 brick saving tutorial (line brush)

Just follow https://www.mi.com/service/support

Flash tool: http://bigota.d.miui.com/tools/MiFlash2018-5-28-0.zip

BL unlock tool: http://www.miui.com/unlock/index.html

ROM package download: https://www.miui.com/shuaji-393.html (select Xiaomi phone 8)

Note that when flashing a new version of the OS, select "Clear All Data" in the flash tool.
Insert image description here

Xiaomi 8Root tutorial (line brush)

Overall idea: Use TWRP to flash into Recovery:

https://forum.butian.net/share/1068
https://forum.butian.net/share/1069

If an error is reported:

Sending ‘recovery’ FAILED (Write to device failed (Invalid argument))
fastboot: error: Command failed

Or report an error:

< waiting for any device >

Insert image description here
Solution method:
Shinken txt:

@echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f

pause

Modify to bat and run as administrator
and then succeed:
Insert image description here

Xiaomi 8 Root tutorial (card swiping)

It is said that it is more likely to beat SafetyNet, so I will give it a try!

(1) Unlock BL:

Unlock BL and enable USB related permissions.

(2) Get boot.img:

Download ROM package: http://www.miui.com/shuaji-393.html
Get: dipper_images_V12.5.2.0.QEACNXM_20211028.0000.00_10.0_cn_f4ae6b9441.tgz< /span>

Unzip it and get boot.img from it

Push boot.img to /sdcard/Download/

(3) Install Magisk Manager:

https://github.com/topjohnwu/Magisk/releases?page=3
(Install the stub-release version of Magisk Manager 7.5.1 here. It is said that this can pass SNet)

Install stub-release.apk to your phone
Install SS and download the complete Magisk Manager.

I found that the full version cannot be installed, so I can only use the normal version of Magisk Manager 7.5.1.
Install MagiskManager-v7.5.1.apk to your phone

Picture name

Then it was mandatory to update to Magisk 22.1. . .

Picture name

Select installation and push the boot.img before patching:

Picture name

adb pull /storage/emulated/0/Download/ Get magisk_patched-22100_LMHbQ.img to PC

adb reboot bootloader
fastboot flash boot magisk_patched-22100_LMHbQ.img
fastboot reboot

The root management function of Magisk 22.1 does not work well.

No, you still have to install Magisk-v23.0.apk or its stub-release version
In addition, after trying:
Magisk-v24. 2. The apk is not easy to use
Magisk v24.2-stub-release.apk is not easy to use
Magisk v24.1-stub-release.apk is not easy to use

Then use Magisk-v23.0.apk to patch boot.img again and get magisk_patched-23000_MKzzy.img

(4) Pass SafetyNet:

Refer to https://blog.csdn.net/a1240193326/article/details/113866931
Install the Riru module, and then install the Riru-Lsposed module (online)< a i=2> Riru-Lsposed installation of Magisk 22.1 failed, Magisk v23+ is required Riru-Lsposed installation of Magisk 23.0 was successful

Install XiaomiCTSPass module (local): https://github.com/yanbuyu/XiaomiCTSPass
Install Universal SafetyNet Fix module (local): https://github.com/kdrag0n /safetynet-fix
Install MagiskHide Props Config module (online)
Insert image description here
Enter 1:
Insert image description here
Enter f: < a i=5> Enter 30:
Insert image description here

Insert image description here
Insert image description here

After successful change, type y twice in succession and press Enter to restart the device to complete the operation:
Insert image description here

Guess you like

Origin blog.csdn.net/qq_39441603/article/details/124703257