[Xiaomi Mi 8 Questions & Answers] tsongming:
I created this thread to serve as a "All in One" thread with all possible known solutions to repair the infamous Persist issue that some unfortunate people have experienced. Symptoms can include the EFS No Signal issue, and eventually the phone will shut down and no longer being able to boot to system, even when formatted the ever present persist error messages in TWRP seem unfixable. until now.

Option 1

The most simple and easy option

The easiest solution for resolving a persist issue is to restore your Full TWRP backup. That is if you were careful enough to make a full backup that included backing up the persist image.

Update repair file April 2020:

Option 2

Download this file and follow the steps on the link below

File: https://androidfilehost.com/?fid=4349826312261781866

See this page on this thread for the steps to use the tested and working file above: : https://xdaforums.com/showpost.php?p=82346409&postcount=76

I will leave the other optional methods below posted just in case this file does not work for some people. Also If you are visiting this thread from another device and need similar help. Send me a PM and I can make a solution for your device, I also have made fixes for DBTO issues

Once your issue is resolved :

Immediately go make a full backup and save it to your desktop and you will never have to deal with the annoyance. of a persist related issue.

Note that you must use The most current Orange Fox or the LR Team version of TWRP, because it is one of the few versions that include the option of backing up and restoring persist.

Recommended Tools Needed for preventative measure and for the additional options below

A Recovery that can backup and restore the persist partition

April 2020 version of Orange Fox or LR Team TWRP will suffice

Orange Fox: https://sourceforge.net/projects/orangefox/files/dipper/OrangeFox-R10.1-Stable-dipper.zip/download

LR Team version of TWRP

Non-Q version: https://androidfilehost.com/?fid=4349826312261636232[/url]

Q version: https://androidfilehost.com/?fid=4349826312261636230[/url]

You must use one of these versions of TWRP, because they both have the ability to write to the persist partition.

Backup your data if possible (most likely you can’t ) and you need to remove all encryption by formatting user data

If you do not have a backup and the flashable persist solution does not work, I would suggest starting clean by restoring the phone with a fastboot rom.

Fastboot Images Rom

Any Dipper images rom will work, BUT Must be the version for your device) Below is for Global devices only.

Global Stable Fastboot 11.0.3.0 : dipper_global_images_V11.0.3.0.QEAMIXM_20200118.00 00.00_10.0_global

Alternatively you can use the older 11.0.6

http://bigota.d.miui.com/V11.0.6.0....XM_20191022.0000.00_9.0_global_fe09c43d5a.tgz

OR one of these alternate Archive of Image Roms : Make sure you choose for your device ( Global or China) . Also, I will add additional official links here as I find them I have not been able to find an official link for 11.03. but I have inspected and scanned it and it is purely stock.

https://xiaomifirmware.com/roms/download-official-miui-roms-for-xiaomi-mi8-dipper/

Option 3

In the unlikely event that the flashable fix fails unpack the fastboot rom, and manually extract the persist.img and then place it into the sd folder of your phone using the TWRP recovery file manager.

1.	Boot to TWRP ( Command below only works if booted to TWRP Recovery)

2.	Go to advanced, then terminal

3.	type: dd if=/sdcard/persist.img of=/dev/block/bootdevice/by-name/persist

4.	After its finished reboot to the system, finished

5. Alternate step here

Option 4 - If using an older Oreo or Pie rom

Ensure that you have proper Recovery installed and have downloaded the images file

1.	Chose wipe-> 'format data' in TWRP, type yes, reboot to recovery English and then complete the full wipe steps and flash Magisk.

2.	Next, Install the TWRP that I mentioned later versions of TWRP do not have the option to flash the persist image alone.

3.	This version of TWRP is in Chinese you need to change it to English.

4.	Go to settings/ globe to activate the English version. > Reboot to recovery

5.	Copy persist.image to your MI8 using desktop

6.	The persist image file is inside the unpacked images rom folder that you should have downloaded.

7.	Within In TWRP File manager: Chose to install image, and copy persist image into the partition folder “persist”

8.	Format all data and the persist will be unlocked

9.	Flash Magisk

10.	Done, You should be back in Business.

Option 5 - Flashall.bat restore

1.	Enter Fastboot mode

2.	Download fastboot dipper images rom, and use flashall.bat method to restore the phone.

3.	Download dipper images rom. > Important>>>>>> It must be a fastboot rom and not a Recovery rom

4.	Unpack the rom twice on your desktop

5.	You will be left with a folder and inside you will see batch files and an image folder.

6.	Doubleclick Flashall.bat ( be careful on what you click, you want flashall.bat only) with the phone attached an in Recovery mode, fastboot or EDL

7.	Flashall.bat is a batch script that will wipe your phone and restore all images and then boot to the system.

8.	You should then Setup rom

9.	Afterwards, install TWRP and root then create a full Twrp backup and save to your PC.

10.	This way you will have a quick solution if you ever need it again in the future.

11.	Enjoy a working phone

Flashall.bat : Described here : https://xdaforums.com/showpost.php?p=81532611&postcount=8

Partitions backed up by LR Team listed here : https://xdaforums.com/showpost.php?p=81532463&postcount=7

If I just saved your phone and a mountain of headaches, please say thanks by clicking the thanks button or better yet I would certainly welcome a small donation for Pizza or beer.

Attached Images Explanation :

The first image illustrates the location of the persist image found within the Images Rom, this is what you will use to overwrite, the persist partition.

The 2nd image : shows the backed up files perist files when you have madea backup using one of the recommended versions of recovery. if your issue is resolved, make a backup now and store it on your desktop. This way if you encounter a persist issue, it can be fixed within seconds by booting to recovery and restoring persist ( Again It must be you own persist, You cannot restore someone else persist backup to your phone or you will cause irreparable damage.

Worst case scenario: I live in the US, if you are local and you still having trouble, feel free to send me a PM. If you arrange shipping and mail your phone to me. I will attempt to repair it and if successful there will be a very small and reasonable fee.

Good luck

I have spent literally over one hundred hours researching this issue, before discovering a universal solution that should work for most people. However, I have found that it will not permanently repair phones that have either restored someone else TWRP persist back up, or that they have manually IMEI modified.

DO NOT PM ME

about this is issue unless you have made a donation in advance, this thread provides everything that you need to know and you are getting it for free by reading the above options.