MIUI Roll back issue and How it changes few things.

Search This thread

Kapiljhajhria

Senior Member
May 3, 2011
1,381
1,106
gurgaon
Thread Content
-How to check anti version?
-Methods we have tried so far and failed.
-How to flash custom recovery
-FAQ will add as i go through the thread and update it accordingly)
-If you own whyred and use telegram then you can follow the updates HERE .
-if any ifnormation missing or wrong then comment below.
Note: My previous post shifted to at the end under spoilers,


How to check your anti version?​
Method 1:

You can do this on both locked and unlocked bootloader. You don’t need to be on MIUI.

you need to make sure that you have fastboot drivers installed. Youc an install the drivers from http://whyred.tk/adbfastboot (Make sure you select install for everyone when asked to do so)




Execute
Code:
fastboot getvar anti
in command prompt while your device is connected in fastboot mode.
as shown below.


N7FEASH.png

LyiiS8o.png



as you can see it gives v3 onetime and v4 othertime. so youc an’t downgrade from v4 to v3.


Method 2:
if fastboot file is available for that ROM then you can download that and check its anti_ver . Just unzip the file. open flash_all.bat file with a text editor.

and look for


Code:
set CURRENT_ANTI_VER=

pGwKs5o.png


Screenshot from fastboot file of 8.7.12 Global public beta

as you can see in above screenshot. this rom will set your anti_ver to 4. so you won’t be able to come back to any rom which has anti_ver lower than 4. it can be equal to 4 or higher but not lower.




Methods tried so far to fix bricked device


We have tried bunch of methods so far and they all seems to have failed to revive a hard bricked device.

1. we have tried QFIL tool and used fastboot rom of same and lower anti_ver.

2. we have tried test point method.

3. we have treid drivers installation, changing cables, windows, etc

4. as of 14 july there are two more methods. one involve posting your user id on http://ru.miui.com/thread-10664-1-1.html thread and then trying to unlock your device using fastboot file of 8.7.12. but this method also didn't work for us. so far it has only worked for one person that i can find. Even the original thread says that this method success rate is not 100% so it could be that we are just unlucky. or we have to wait for reply from them in PM or forum post. so we haven't reieved that till now as well. so lets just wait few days before declaring this method as working solution.

and many more methods that you can think of. let me know about more methods so that i can add them to this list. but we have tried every possible method that we could find on youtube or google.




Possible solutions?


As per google's documentation and implementation unlocking bootloader should be enough.. But in xiaomi case they haven't implemente it in such a manner. they may or may not change this in future. So no solution so far. Me and bunch of use have tried various method that are floating around and none of them works. Only hope is that russian forums thread. and even that is not 100% guranteed method. but still we are waiting for a reply or PM from them and are trying every day. Will update the post here if we find anything that works.

How to Flash custom recovery



There are two methods to use custom recovery.
Method 1

1) Boot twrp or redwolf using fastboot boot XXXX.img
2) Flash XXXX.img again from recovery.
3) Flash lazyflasher.
Thats it. now its business as usual. Just don;t flash any MIUI ROM which has anti v lower than what you are on right now. You can upgrade but can't downgrade. Also i suggest you use redwolf recovery so that you don't need lazy flasher and you don't have to worry about loosing your recovery when you flash MIUI rom again.

Method 2

1 .Download img file from thttp://bit.ly/2ujYbUO
2. Flash from fastboot running this command
3. execute
Code:
fastboot flash antirbpass dummy.img


Now you can use any fastboot command like you usually do. so just flash twrp using the normal method.

You will have to do this evertime you want to use any fastboot commands.
More abut this HERE


FAQ
Q: I am on so and so MIUI ROM with ant v3? can i update to so and so MIUI ROM?
A: you can update to any ROM with anti v3. you can even dowgrade to a rom with ant v3. you can update to rom with anti v4 as well. But if you do so then you won't be ablet to downgrade to anti v4

Q: i am on anti v4 and want to to switch to MIUI ROM which has anti v3.
A: You can use MIUI ROMs from this thread https://xdaforums.com/showthread.php?t=3816343

Q: What about custom roms?
A: You will have no issue with custom roms if you are on v3. . and for people who want to switch to custom roms and are on v4. just flash redwolf like explained above. and then its all as usual when it comes to custom roms.

Q: is it safe to flash masik?EU or any other custom MIUI rom.
A: Check their announcement thread with every release. Do not flash those roms before you check their thread. if they don't mention anything about anit version then post in their thread and avoid them till you can get an answer about this anti version. Just like MIUI roms. you will have to follow the same precaution with those roms as well


Previous post
MUST READ
Do no update to
-China 8.7.9 (my case)
-global 8.7.10 (most people reported on this build)

Anti Roll back feature of oreo seems to be implemented in these versions.
You won't be able to roll back to previous versions or flash custom recovery.
People are ending up with hard brick.

»Why xiaomi did this?
We don't know?

»Will future build have same issue?
again we don't know. someone will have to test it on future builds as well. if you are brave enough to do that then test on these builds and future builds and let us know.

»Someone said xyz method might work?
give it a try if you are ok with visiting service center

» i am on these versions, what should i do?
Stay on it and only update to fuutre versions. maybe in some future build they might roll back this feature.

» but won't xyz work?
again give it try if you are willing to take the risk.

We have mentioned everything we know so far. multiple people have bricked their device trying to use things that used to work.
So its your choice if you want to ignore the warning.

Read more about anti roll back using these two links

https://www.xda-developers.com/android-oreo-rollback-protection/

https://www.androidpolice.com/2017/...verified-boot-wont-allow-start-downgraded-os/


Source: https://t.me/rn5prodownloads/416

Some usefull links
http://en.miui.com/thread-3156438-1-1.html
http://ru.miui.com/thread-10664-1-1.html



Update1: looks like 9.5.17 build is safe. more and more people are reporting as its safe and they switched from it. 8.7.10 is the main culprit so far. Will collect more responses soon, maybe 24 hours and update this post with what i find
update 2: 14 july. was busy with exam and getting my brciked device fixed. got my device and also managed to bypass 360hrs limit. Shhh, can't tell the trick. updating thread so that all relevant information regarding this is at one place.
[/HIDE]
[/HIDE]
 
Last edited:

devcon69

Senior Member
Jul 20, 2012
396
366
Philippines
UP for this. Some users also who installed custom roms like RR and Lineage, etc. also bricked their device. Maybe they bricked it after installing old firmware files from miui.
 

Alisummer

Member
Jan 25, 2016
7
0
MIUI China Stable 9.5.22 has this too!!
I have already bricked my phone
And EDL didn't work at all,says timeout.
 
Last edited:

mxilil

Member
Aug 11, 2016
33
5
I'm using rmn5p china. I flash miui10 8.7.10 and the phone bootloop after i choose china region. Can i dowgara form 8.7.10 global to 8.7.5 china via miflash. This method can brick my phone ???

---------- Post added at 07:09 AM ---------- Previous post was at 07:07 AM ----------

Same here. I can switch easily between stable to/from miui 10 and between miui 9 stables.

What the version rom you switch beetwen miui 10 to 9. It's has anti rollback ???
 

Sigray

Senior Member
Aug 15, 2011
1,645
280
Google Pixel 7 Pro
I'm using rmn5p china. I flash miui10 8.7.10 and the phone bootloop after i choose china region. Can i dowgara form 8.7.10 global to 8.7.5 china via miflash. This method can brick my phone ???

---------- Post added at 07:09 AM ---------- Previous post was at 07:07 AM ----------



What the version rom you switch beetwen miui 10 to 9. It's has anti rollback ???
I have the global version of RN5.
 

21071992

Senior Member
Feb 26, 2012
211
29
I wonder if they will find a way to hard brick all RMN5 Pro China phone running Global rom even with unlocked bootloader.
 

j1505243

Senior Member
Jan 2, 2016
488
489
Masovia
Google Nexus 5
LG G2 Mini
To clarify, it isn't a "feature of Oreo", but probably the good old qFuse blowing, likely applied by mistake from Xiaomi with bootloader update. That's how Mi 5X units with fake MIUI got bricked after installing a legit build. The legit one had a lower bootloader version, not accepted because of qFuse blown by bootloader kanged from Mi Max 2. Knowing the incopetency of Xiaomi, it'll be really hard for them to resolve this or they'll just push this bootloader update to all whyred units.

The source to relate: http://en.miui.com/thread-840402-1-1.html
 

schmidde

Member
Mar 31, 2017
21
1
Does this mean I should not Install Xiaomi.eu on my rn5 global? Or better install ressurection or aosip?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 38
    Thread Content
    -How to check anti version?
    -Methods we have tried so far and failed.
    -How to flash custom recovery
    -FAQ will add as i go through the thread and update it accordingly)
    -If you own whyred and use telegram then you can follow the updates HERE .
    -if any ifnormation missing or wrong then comment below.
    Note: My previous post shifted to at the end under spoilers,


    How to check your anti version?​
    Method 1:

    You can do this on both locked and unlocked bootloader. You don’t need to be on MIUI.

    you need to make sure that you have fastboot drivers installed. Youc an install the drivers from http://whyred.tk/adbfastboot (Make sure you select install for everyone when asked to do so)




    Execute
    Code:
    fastboot getvar anti
    in command prompt while your device is connected in fastboot mode.
    as shown below.


    N7FEASH.png

    LyiiS8o.png



    as you can see it gives v3 onetime and v4 othertime. so youc an’t downgrade from v4 to v3.


    Method 2:
    if fastboot file is available for that ROM then you can download that and check its anti_ver . Just unzip the file. open flash_all.bat file with a text editor.

    and look for


    Code:
    set CURRENT_ANTI_VER=

    pGwKs5o.png


    Screenshot from fastboot file of 8.7.12 Global public beta

    as you can see in above screenshot. this rom will set your anti_ver to 4. so you won’t be able to come back to any rom which has anti_ver lower than 4. it can be equal to 4 or higher but not lower.




    Methods tried so far to fix bricked device


    We have tried bunch of methods so far and they all seems to have failed to revive a hard bricked device.

    1. we have tried QFIL tool and used fastboot rom of same and lower anti_ver.

    2. we have tried test point method.

    3. we have treid drivers installation, changing cables, windows, etc

    4. as of 14 july there are two more methods. one involve posting your user id on http://ru.miui.com/thread-10664-1-1.html thread and then trying to unlock your device using fastboot file of 8.7.12. but this method also didn't work for us. so far it has only worked for one person that i can find. Even the original thread says that this method success rate is not 100% so it could be that we are just unlucky. or we have to wait for reply from them in PM or forum post. so we haven't reieved that till now as well. so lets just wait few days before declaring this method as working solution.

    and many more methods that you can think of. let me know about more methods so that i can add them to this list. but we have tried every possible method that we could find on youtube or google.




    Possible solutions?


    As per google's documentation and implementation unlocking bootloader should be enough.. But in xiaomi case they haven't implemente it in such a manner. they may or may not change this in future. So no solution so far. Me and bunch of use have tried various method that are floating around and none of them works. Only hope is that russian forums thread. and even that is not 100% guranteed method. but still we are waiting for a reply or PM from them and are trying every day. Will update the post here if we find anything that works.

    How to Flash custom recovery



    There are two methods to use custom recovery.
    Method 1

    1) Boot twrp or redwolf using fastboot boot XXXX.img
    2) Flash XXXX.img again from recovery.
    3) Flash lazyflasher.
    Thats it. now its business as usual. Just don;t flash any MIUI ROM which has anti v lower than what you are on right now. You can upgrade but can't downgrade. Also i suggest you use redwolf recovery so that you don't need lazy flasher and you don't have to worry about loosing your recovery when you flash MIUI rom again.

    Method 2

    1 .Download img file from thttp://bit.ly/2ujYbUO
    2. Flash from fastboot running this command
    3. execute
    Code:
    fastboot flash antirbpass dummy.img


    Now you can use any fastboot command like you usually do. so just flash twrp using the normal method.

    You will have to do this evertime you want to use any fastboot commands.
    More abut this HERE


    FAQ
    Q: I am on so and so MIUI ROM with ant v3? can i update to so and so MIUI ROM?
    A: you can update to any ROM with anti v3. you can even dowgrade to a rom with ant v3. you can update to rom with anti v4 as well. But if you do so then you won't be ablet to downgrade to anti v4

    Q: i am on anti v4 and want to to switch to MIUI ROM which has anti v3.
    A: You can use MIUI ROMs from this thread https://xdaforums.com/showthread.php?t=3816343

    Q: What about custom roms?
    A: You will have no issue with custom roms if you are on v3. . and for people who want to switch to custom roms and are on v4. just flash redwolf like explained above. and then its all as usual when it comes to custom roms.

    Q: is it safe to flash masik?EU or any other custom MIUI rom.
    A: Check their announcement thread with every release. Do not flash those roms before you check their thread. if they don't mention anything about anit version then post in their thread and avoid them till you can get an answer about this anti version. Just like MIUI roms. you will have to follow the same precaution with those roms as well


    Previous post
    MUST READ
    Do no update to
    -China 8.7.9 (my case)
    -global 8.7.10 (most people reported on this build)

    Anti Roll back feature of oreo seems to be implemented in these versions.
    You won't be able to roll back to previous versions or flash custom recovery.
    People are ending up with hard brick.

    »Why xiaomi did this?
    We don't know?

    »Will future build have same issue?
    again we don't know. someone will have to test it on future builds as well. if you are brave enough to do that then test on these builds and future builds and let us know.

    »Someone said xyz method might work?
    give it a try if you are ok with visiting service center

    » i am on these versions, what should i do?
    Stay on it and only update to fuutre versions. maybe in some future build they might roll back this feature.

    » but won't xyz work?
    again give it try if you are willing to take the risk.

    We have mentioned everything we know so far. multiple people have bricked their device trying to use things that used to work.
    So its your choice if you want to ignore the warning.

    Read more about anti roll back using these two links

    https://www.xda-developers.com/android-oreo-rollback-protection/

    https://www.androidpolice.com/2017/...verified-boot-wont-allow-start-downgraded-os/


    Source: https://t.me/rn5prodownloads/416

    Some usefull links
    http://en.miui.com/thread-3156438-1-1.html
    http://ru.miui.com/thread-10664-1-1.html



    Update1: looks like 9.5.17 build is safe. more and more people are reporting as its safe and they switched from it. 8.7.10 is the main culprit so far. Will collect more responses soon, maybe 24 hours and update this post with what i find
    update 2: 14 july. was busy with exam and getting my brciked device fixed. got my device and also managed to bypass 360hrs limit. Shhh, can't tell the trick. updating thread so that all relevant information regarding this is at one place.
    [/HIDE]
    [/HIDE]
    7
    To clarify, it isn't a "feature of Oreo", but probably the good old qFuse blowing, likely applied by mistake from Xiaomi with bootloader update. That's how Mi 5X units with fake MIUI got bricked after installing a legit build. The legit one had a lower bootloader version, not accepted because of qFuse blown by bootloader kanged from Mi Max 2. Knowing the incopetency of Xiaomi, it'll be really hard for them to resolve this or they'll just push this bootloader update to all whyred units.

    The source to relate: http://en.miui.com/thread-840402-1-1.html
    5
    Here is public announcement from Xiaomi

    [Others] Important Announcement about Updating of Redmi Note 5 Pro/Redmi Note 5

    Dear MIUIers,

    To maintain system stability and ensure the security of the device, we have introduced a mechanism of anti-rollback. After you have updated to MIUI 10 Public ROM 8.7.5 or ROM afterwards, you can not downgrade your ROM to previous Stable ROM and Beta ROM.

    If you have already updated your device to MIUI 10 Global Beta ROM 8.7.5 or ROM afterwards, please don't try to downgrade the ROM of your device. Otherwise, your device will be bricked, which may also affect your device stability.

    If you want to test ROM prior to 8.7.5, you can remain on the previous ROM, which will not affect your using of the device.

    Thanks for your understanding and cooperation.

    MIUI Team
    3
    Guys, seriously, let me throw in my two bits for you all to chew on: why would you trust _any_ OEM (Samsung, LG, Sony, Xiaomi, etc.) to build a ROM with the users' best interest at heart? Doesn't make sense. That's why we buy devices that we can unlock, and break free. We should be supporting community ROMs and developers and help them to port features we need. There are lots of open source options out there (LOS, RR, etc.) that don't compromise your data or lock you in under the guise of "stability and security".
    Thanks for reading.
    2
    So it's true. Official announcement by Xiaomi.

    http://en.miui.com/thread-3156438-1-1.html

    Seems like it's done by Google and implemented by Xiaomi now.

    Security grab bag
    No more OS downgrades—If an attacker steals your phone, Android has several security features in place that will make it more difficult to access your device. It doesn't help matters much if the attacker can just downgrade the operating system to a version that didn't have those protections in place, so with that in mind Android 8.0 introduces "rollback protection" into the Verified Boot process. With rollback protection, Verified Boot will no longer start up an OS that it detects has been downgraded to an earlier version.

    Developers (or Android-obsessed journalists) that need to downgrade their device to an older version for testing or checking something can disable this feature, which will trigger the usual slew of boot-up warning messages. Google also says it has "hardened the bootloader unlocking process," which should make it harder for bugs or malicious apps to unlock the bootloader without user approval.

    https://arstechnica.com/gadgets/2017/09/android-8-0-oreo-thoroughly-reviewed/5/#h1