FORUMS
Remove All Ads from XDA

[FAQ][Anti-Rollback] All your questions are answered here.

85 posts
Thanks Meter: 341
 
Post Reply Email Thread
Hi all.
So, as we know with recent MIUI update Xiaomi screwed our whyred. And this gave birth to many questions which is like a struggle for many users to find all those answers. So, I tried to answer all your questions. If you think your question isn't included please feel free to ask.



Q1: What is this "Anti-Rollback" thing?
A: Its a security measure that Google brought with the release of Android Oreo. It makes sure that your data is secure even when phone is stolen or if any attacker tries to downgrade the software and wants to gain control over your data.



Q2: How is this harmful to my device?
A: Well, as a security measure it should never give you a hard-brick. When someone tries to downgrade, it should display a warning and get turned off but there's difference between how things should work and how Xiaomi does. As Google has stated, "Anti-Rollback" should get automatically turn off when the user unlocks the bootloader but in case of MIUI even unlocked users are getting hard-bricks. Hopefully the developers of MIUI should push an update soon and if they don't, our beloved devs will find a way for sure



Q4: So, what now? Will Xiaomi solve this issue?
A: We do not know. But our beloved developers in the XDA-Forum will find a way for sure



Q5: How to know if my device is affected by it?
A: Run fastboot command :
Code:
fastboot getvar anti
The displayed output : 3 shall mean you're fine while 4 shall mean you're in the Anti-Rollback squad.



Q6: I'm in the Anti-Rollback squad what now?
A: Don't worry you can still flash custom recovery and roam around custom ROMs but avoid flashing any firmware or any MIUI ROM which is older than what you're using now otherwise you'll brick your device.



Q7: Which MIUI builds include "Anti-Rollback"?
A: All the MIUI builds which are released after Stable MIUI V9.5.17.0 and Beta MIUI V8.7.5 include "Anti-Rollback". And yes the Chinese versions are affected as well.



Q8: Do MIUI Stable V9.5.17.0 and Beta V8.7.5 have "Anti-Rollback" enabled?
A: NO. If you're on either of these builds you are safe to downgrade and use any older version.



Q9: How to flash custom recovery and custom ROMs on "Anti-Rollback" enabled devices?
A: On "Anti-Rollback" enabled ROMs you cann't flash custom recovery permanently. You'll have to boot into recovery first by running fastboot command:
Code:
 fastboot boot xyz.img
(where xyz is name of your recovery file). Once you're booted into the custom recovery, copy the recovery image file in the internal storage and flash that recovery from recovery itself. Now you've successfully flashed custom recovery and you're good to go with custom ROMs. WARNING: Avoid flashing any firmware.



Q10: Can I migrate from Stable to Beta and vice-versa?
A: You can install Beta from Stable, make sure you flash latest Beta build same is the case with Stable. If you're on anti-4 firmware, whether its Beta or Stable you can switch to any anti-4 MIUI ROM Beta or Stable but remember you must flash latest version available while switching. (anti-4 means "Anti-Rollback" enabled firmware)



Q11: Can I unlock bootloader and flash custom ROMs on an "Anti-Rollback" enabled device?
A: Yes. Again to flash custom ROMs and recovery refer to Q9.




Q12Can I flash "Anti-Rollback" enabled ROM via TWRP?
AWell, in some cases it did work, just flash lazy flasher zip file after flashing MIUI ROM via TWRP. But while switching to MIUI from AOSP based ROMs on an "Anti-Rollback " enabled device I recommend you to go with fastboot method to avoid chances of brick.





For active discussion join whyred telegram group: https://t.me/redminote5proofficial
Hit thanks if helped.
The Following 37 Users Say Thank You to Saabu For This Useful Post: [ View ] Gift Saabu Ad-Free
 
 
14th July 2018, 03:25 PM |#2  
Senior Member
Thanks Meter: 101
 
More
Quote:
Originally Posted by Saabu

[SIZE="4"]
Q9: How to flash custom recovery and custom ROMs on "Anti-Rollback" enabled devices?
A: On "Anti-Rollback" enabled ROMs you cann't flash custom recovery permanently. You'll have to boot into recovery first
by running fastboot command:

Code:
 fastboot boot xyz.img
(where xyz is name of your recovery file). Once
you're booted into the custom recovery, copy the recovery image file in the internal storage and flash that recovery
from recovery itself. Now you've successfully flashed custom recovery and you're good to go with custom ROMs.
WARNING: Avoid flashing any firmware.

Thanks for the above, but I believe that #9 is true. All MIUI roms regardless of version and anti roll back protection willl reflash the default MIUI recovery when you boot the OS. The only way to get it to stay is by flashing a custom ROM after TWRP, or by obtaining root and removing the "/system/bin/install-recovery.sh" file. If you're on anti-rollback you won't even be able to flash the recovery - you'll get an anti-rollback protection error.
FassTech
14th July 2018, 03:35 PM |#3  
Guest
Thanks Meter: 0
 
More
This only concerns the "Xiaomi Redmi Note 5"?
14th July 2018, 10:07 PM |#4  
Junior Member
Thanks Meter: 0
 
More
For the Fastboot Command : fastboot getvar anti , I have : Anti:1 .. What does means ?

When you says "avoid flashing any firmware or any MIUI ROM which is older than what you're using now." , So Imagine if I have MIUI 10 Official with Android 8.1 and I Would like to flash like Xiaomi.eu or Lineage OS with Android 8.0 , The phone will brick ?

If I want to Flash Mod with TWRP Flashable Zip , the phone will brick or not ?

Thanks for your FAQ !
17th July 2018, 01:25 AM |#5  
Member
Thanks Meter: 4
 
More
For me when i type fastboot devices it shows my device number but when i type this command fastboot getvar anti it shows nothing please help and im using Redmi note 5 vince version and miui version is 9.6.2.0 global stable.
17th July 2018, 03:03 PM |#6  
Junior Member
Flag Vrchlabí
Thanks Meter: 1
 
More
Quote:
Originally Posted by kunal bro

For me when i type fastboot devices it shows my device number but when i type this command fastboot getvar anti it shows nothing please help and im using Redmi note 5 vince version and miui version is 9.6.2.0 global stable.

You answered yourself... It is ONLY for Redmi Note 5 (Pro) aka whyred! You are even in wrong device forum!
17th July 2018, 03:22 PM |#7  
DEBASISH's Avatar
Senior Member
Flag Bhubaneswar
Thanks Meter: 66
 
More
One doubt..... I am on AOSP right now. If I flash global beta 8.7.12 in twrp and then flash lazyflasher, will my twrp be removed !! Will I be able to go back to AOSP ?? @Saabu
17th July 2018, 03:29 PM |#8  
Saabu's Avatar
OP Member
Flag Rohtak, Haryana
Thanks Meter: 341
 
Donate to Me
More
Quote:
Originally Posted by DEBASISH

One doubt..... I am on AOSP right now. If I flash global beta 8.7.12 in twrp and then flash lazyflasher, will my twrp be removed !! Will I be able to go back to AOSP ?? @Saabu


After you flash a ROM that has Anti-Rollback enabled, you can still switch to AOSP anytime as I discussed in Q9. And yes, flashing lazy flasher simultaneously after MIUI will keep your TWRP.
Happy flashing
The Following User Says Thank You to Saabu For This Useful Post: [ View ] Gift Saabu Ad-Free
18th July 2018, 01:58 PM |#9  
Jorge Moreira's Avatar
Senior Member
Flag Porto
Thanks Meter: 122
 
Donate to Me
More
Quote:
Originally Posted by Saabu



Q5: How to know if my device is affected by it?
A: Run fastboot command :
Code:
fastboot getvar anti
The displayed output : 3 shall mean you're fine while 4 shall mean you're in the Anti-Rollback squad.

Hi, @Saabu,

Many thanks for the clarification.

However to enter the code through the fastboot, it has to be with the equipment turned off in fastboot mode, right?

Best regards,
Jorge
18th July 2018, 02:17 PM |#10  
Saabu's Avatar
OP Member
Flag Rohtak, Haryana
Thanks Meter: 341
 
Donate to Me
More
Quote:
Originally Posted by Jorge Moreira

Hi, @Saabu,

Many thanks for the clarification.

However to enter the code through the fastboot, it has to be with the equipment turned off in fastboot mode, right?

Best regards,
Jorge


Ofc.
Fastboot commands work only in fastboot mode😂
18th July 2018, 02:28 PM |#11  
Jorge Moreira's Avatar
Senior Member
Flag Porto
Thanks Meter: 122
 
Donate to Me
More
Quote:
Originally Posted by Saabu

Ofc.
Fastboot commands work only in fastboot mode

It was a silly question, I know ...

Just to confirm....

Thanks,
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes