Question CTS doesn't pass even with locked bootloader.

Search This thread

johnr64

Senior Member
Mar 27, 2021
453
299
Yes. I've also touched persist partition and now safety net doesn't pass even with locked bootloader. Guess it's unfixable.
Unlock your bootloader, Install temporary TWRP using my updated Temporary Recovery
download the correct stock firmware for your phone, unzip the firmware copy over the new persist.img and replace your old version using TRWP, as post 57 above.
 
Last edited:
  • Like
Reactions: duckyduck!
Unlock your bootloader, Install temporary TWRP using my updated Temporary Recovery
download the correct stock firmware for your phone, unzip the firmware copy over the new persist.img and replace your old version using TRWP, as post 57 above.
hey, i have redmi note 10 pro and after miui 14 update sensors went bad,cts profile was passing and device certified, tried hard reset many times to get the sensors working but they did not. i then unlocked bl and backed original persist and restored it from persistbk partition, sensors started working but cts profile fails on locked bootloader. i tried restoring original persist but that did not work. any idea or help?
 

johnr64

Senior Member
Mar 27, 2021
453
299
Sorry,
I can only help on a Poco F3, I used the Original Persist file from a stock Miui Rom and used TWRP to overwrite the corrupted version, it worked on my F3, have you tried a older/newer versions of a persists file,

I hope you sort it,
 

user0u

Senior Member
Jun 14, 2018
356
106
hey, i have redmi note 10 pro and after miui 14 update sensors went bad,cts profile was...
The only way to fix this is to install safetynet fix module in magisk.
Force stop play store, uninstall updates. Do the same for play services, install safetynet module, reboot.

 
Last edited:
The only way to fix this is to install safetynet fix module in magisk.
Force stop play store, uninstall updates. Do the same for play services, install safetynet module, reboot.

Can service center repair this persist? Also yes I have already installed magisk for safety net and play integrity pass
 

johnr64

Senior Member
Mar 27, 2021
453
299
Can service center repair this persist? Also yes I have already installed magisk for safety net and play integrity pass
Hi Duckyduck,
Have you tried a Xiaomi.eu rom and see if the persists issue is still present, on my F3 i found installing .EU rom stopped the pop up, before i found the persist.img Fix.

How i Fixed my Persist issue.

Install guide:
1. Download the correct fastboot ROM for your device and extract the stock "persist.img" image.

2. Put persist.img into your device's internal memory or OTG USB Storage and open TWRP Recovery.

3. In TWRP, go to: Install> select install image> select file "persist.img"> select "Persist" partition

4. Restart the device.
 
  • Haha
  • Angry
Reactions: alecxs and uvzen

uvzen

Senior Member
Feb 28, 2020
99
62
Huawei P8
Huawei P10
If you want to permanently corrupt the TEE (Trusted Execution Environment) on your device, go ahead and use this crappy tutorial from @johnr64 which tells you to flash the persist.img image. You will have broken hardware attestation and then there will be problems on stock ROM with locked bootloader when in future google will shut down safetynet servers and replace it completely with Play Integrity which checks your hardware attestation. At the moment the solution is a custom rom that passes safetynet or Universal SafetyNet Fix magisk module by kdrag0n which "tricks" Play Integrity into thinking that the device is not capable of hardware backed attestation, which will force a fallback to basic attestation. More details on how this magisk module works can be found here.

Edit:
If you have a problem with the message "find device storage corrupted", then don't flash persist.img image. Just don't touch it. If you haven't flashed persist.img then I've seen information on various telegram channels that flashing AOSP custom rom with android 12 and using it for 10 minutes then flashing stock MIUI can fix this problem. How much truth is in this, I don't know, because I no longer have Poco F3. I returned it under warranty, got my money back and bought another phone.
 
Last edited:
  • Like
Reactions: alecxs
If you want to permanently corrupt the TEE (Trusted Execution Environment) on your device, go ahead and use this crappy tutorial from @johnr64 which tells you to flash the persist.img image. You will have broken hardware attestation and then there will be problems on stock ROM with locked bootloader when in future google will shut down safetynet servers and replace it completely with Play Integrity which checks your hardware attestation. At the moment the solution is a custom rom that passes safetynet or Universal SafetyNet Fix magisk module by kdrag0n which "tricks" Play Integrity into thinking that the device is not capable of hardware backed attestation, which will force a fallback to basic attestation. More details on how this magisk module works can be found here.
Can tee be restored?
 

johnr64

Senior Member
Mar 27, 2021
453
299
If you want to permanently corrupt the TEE (Trusted Execution Environment) on your device, go ahead and use this crappy tutorial from @johnr64 which tells you to flash the persist.img image. You will have broken hardware attestation and then there will be problems on stock ROM with locked bootloader when in future google will shut down safetynet servers and replace it completely with Play Integrity which checks your hardware attestation. At the moment the solution is a custom rom that passes safetynet or Universal SafetyNet Fix magisk module by kdrag0n which "tricks" Play Integrity into thinking that the device is not capable of hardware backed attestation, which will force a fallback to basic attestation. More details on how this magisk module works can be found here.

Edit:
If you have a problem with the message "find device storage corrupted", then don't flash persist.img image. Just don't touch it. If you haven't flashed persist.img then I've seen information on various telegram channels that flashing AOSP custom rom with android 12 and using it for 10 minutes then flashing stock MIUI can fix this problem. How much truth is in this, I don't know, because I no longer have Poco F3. I returned it under warranty, got my money back and bought another phone.
Hi,
My Crappy tutorial fixed my F3 "find device storage corrupted" issue, i have no intension to return back to stock unless i sell my F3, i did explain that this worked on my F3 and the advice was base on a Poco F3 only, as you know "All the advice given on XDA" is used at your own risk,
i hope duckyduck! finds a work around.
 
Hi,
My Crappy tutorial fixed my F3 "find device storage corrupted" issue, i have no intension to return back to stock unless i sell my F3, i did explain that this worked on my F3 and the advice was base on a Poco F3 only, as you know "All the advice given on XDA" is used at your own risk,
i hope duckyduck! finds a work around.
If you did sell it then wouldn't the next person have cts and integrity issue?.
 
If you have an active warranty then return the phone and get your money back.
Warranty ended last year in October. After that it started showing problems,like heating issues etc. But now after persist restore(original backup and restore process) phone isn't heating up anymore. Last nail in coffin was miui 14. But the phone is now working after persist fix and downgrade to miui 13.0.18 global.
 

uvzen

Senior Member
Feb 28, 2020
99
62
Huawei P8
Huawei P10
Hi,
My Crappy tutorial fixed my F3 "find device storage corrupted" issue, i have no intension to return back to stock unless i sell my F3, i did explain that this worked on my F3 and the advice was base on a Poco F3 only, as you know "All the advice given on XDA" is used at your own risk,
i hope duckyduck! finds a work around.
Nobody cares that you're not going back to stock MIUI, nobody asked. The xda-developers forum is there to help users, not to lead them into an even worse swamp. Any risk should be minimized to the minimum extent so that no one suffers, but you spreading this crappy tutorial of yours only increases the risk. Find another job and stop spreading this harmful content.

If you did sell it then wouldn't the next person have cts and integrity issue?.
I don't know if there will be a buyer who will buy a phone from him that will have a damaged CTS profile and will not be able to pay with banking applications if he would like to stay on stock MIUI and not play with custom roms and magisk. Well, unless he lies to the buyer and disappears with the money.
 
  • Like
Reactions: duckyduck!

johnr64

Senior Member
Mar 27, 2021
453
299
Hi,
As i explained this "FIXED MY ISSUE", i read a post on the Evo-X thread regarding "find device storage corrupted" issue when returning back to stock Miui Firmware, i decided to return back to stock to see if i was affected by the issue and the answer was "YES".
I did some research on xda, as you do and came across the fix.
I used the instructions i posted and applied the FIX and the "nag screen" disappeared.
I remember installing a Xiaomi.eu fastboot rom first and then Stock Miui Firmware, all was good and i returned back to the amazing Evo-X Rom,

I have no intension to sell my F3, also in the UK, i got 24 Months warranty that runs out on the 11-2023.


i hope to find a work around.:unsure:

I have no more to say on this matter.
 
  • Like
Reactions: duckyduck!

user0u

Senior Member
Jun 14, 2018
356
106
I've seen information on various telegram channels that flashing AOSP custom rom with android 12 and using it for 10 minutes then flashing stock MIUI can fix this problem. How much truth is in this, I don't know,

I have tried this and I can say that this does not work.
 

nabecite

New member
May 8, 2023
4
1
another confirmation that safetynet passes on the chinese rom with a locked bootloader. It does not resolve the issue. Instead it seems like it falls back to basic attestation akin to a custom rom. Google services work surprisingly well with minimal effort.

Switched back to xiaomi eu because I cannot figure out how to get android auto working on chinese phones.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Can I install someone else's persist backup and fix CTS fail bcz I didn't backed mine
    Someone help me out and help me pass safety net ALIOTH
    Flashing persist from another alioth device won't work, your device is permanently damaged. If you care so much about safetynet pass on a locked bootloader, replace motherboard or return the device under warranty if you have it. And if it doesn't bother you, just flash a custom rom and continue using Alioth.

    If your bootloader is unlocked, just install (F3-NoGravityKernel-1.5.0-HotFix or BaalamKernel-6.0-ksu-ALIOTH) from twrp.
    Nonsense

    Will it going to fix CTS in my alioth? Can I lock bootloader After flashing No gravity kernal?
    No

    Just flash latest fastboot rom if you are on global use global by miflash tool
    Nonsense
    1
    Flashing persist from another alioth device won't work, your device is permanently damaged. If you care so much about safetynet pass on a locked bootloader, replace motherboard or return the device under warranty if you have it. And if it doesn't bother you, just flash a custom rom and continue using Alioth.


    Nonsense


    No


    Nonsense
    Did you try installing (F3-NoGravityKernel-1.5.0-HotFix or BaalamKernel-6.0-ksu-ALIOTH) and yet cts issue in your device, or just bluffing? try at first before writing your nonsense response.
    1
    Did you try installing (F3-NoGravityKernel-1.5.0-HotFix or BaalamKernel-6.0-ksu-ALIOTH) and yet cts issue in your device, or just bluffing? try at first before writing your nonsense response.
    Please explain to me, "Mr. Genius", how a custom kernel is supposed to repair a permanently damaged CTS? Do you really know what the problem is in this thread, or does reading comprehension hurt? Those who mindlessly flashed persist.img have their TEE (Trusted Execution Environment) permanently damaged and will never successfully pass safetynet without magisk modules or a custom rom with passed safetynet out of the box. Flashing a custom kernel won't help, so don't spread nonsense.
  • 2
    I have installed china rom 13.0.6.0 through fastboot using option clean all and lock. My phone didn't brick because china miui can be installed with bootloader lock on global or china version of phone, but not on indian
    This is the first time i ever heard that china rom can be flashed on global device with options to lock bl without brick.
    U guys need to doublecheck this statement before trying to do that.

    afaik the problem is caused by corrupted /persist partition due to misconfigured touch. Is there such backup partition exist by default? If devs are aware of the issue then the issue should have been addressed unless they want to make it happen.
    yes, every xiaomi device have persist backup img file in system, named persistbak.img.
    and its how we on poco f2 pro fix problem with widevine L3 problems, by flashing persistbak as persist.
    1
    I have poco f3 and i installed a custom ROM on it but then i wanted to use MIUI but when i locked bootloader i got device memory corrupted issue which someone suggested me to fix by flashing persist img and i did that but another problem arise that was the failure to pass cts by default.
    So if any developer is reading this please find a fix for this if you can.
    1
    I have poco f3 and i installed a custom ROM on it but then i wanted to use MIUI but when i locked bootloader i got device memory corrupted issue which someone suggested me to fix by flashing persist img and i did that but another problem arise that was the failure to pass cts by default.
    So if any developer is reading this please find a fix for this if you can.
    heard rumors that issue happens after flashing A13 custom roms and its unfixable

    good luck finding a fix (y)
    1
    I don't have high hopes for that..
    I think am stuck with device not certified issue now
    I agree with him. For the timebeing, just keep BL unlocked and use Magisk + Universal-SafetyNet-Fix Magisk Module.

    1
    Did you try installing (F3-NoGravityKernel-1.5.0-HotFix or BaalamKernel-6.0-ksu-ALIOTH) and yet cts issue in your device, or just bluffing? try at first before writing your nonsense response.
    Please explain to me, "Mr. Genius", how a custom kernel is supposed to repair a permanently damaged CTS? Do you really know what the problem is in this thread, or does reading comprehension hurt? Those who mindlessly flashed persist.img have their TEE (Trusted Execution Environment) permanently damaged and will never successfully pass safetynet without magisk modules or a custom rom with passed safetynet out of the box. Flashing a custom kernel won't help, so don't spread nonsense.