Everything About Anti Roll-back [Whyred]

Search This thread

AL_IRAQI

Recognized Contributor / Themer
  • May 18, 2012
    5,948
    11,258
    Baghdad
    Hi everyone


    Xiaomi added Anti roll-back to latest Stable/Beta ROMs and many users bricked their phones because of it, i unlocked my bootloader yesterdays and started testing everything about Anti, and here is what i found so far:

    As of right now, anything Beta 8.7.6 and above has it, and for Stable 9.5.19.0 and above, check Xiaomi announcement about it, in 2nd post you will find the last Miui builds without Anti Roll-back

    • you can flash TWRP again
    • you can Root Anti ROMs with Magisk or Disable Encryption
    • you can switch from CN builds to Global builds or vise versa
    • you can switch between all anti 4 builds just fine, like from 8.7.12 to 9.5.19.0 or anything with anti 4
    • you can flash any AOSP/LOS based ROM
    • you can flash anti 4 fastboot ROMs
    • based on fastboot script we might get anti 5 in the future
    • how to bypass anti roll back lock in fastboot and flash/run anything

    1- TWRP flashing method:

    1. Boot Twrp or Redwolf using “fastboot boot XYZ.img”
    2. Copy img to device then flash Image file of XYZ.img again from recovery.
    3. Flash Lazyflasher Or Magisk
    4. Or you can just flash any AOSP/LOS based ROM
    5. or check #6 to unlock bootloader commands

    2- Switching from CN Beta to Global Beta

    1. Download Global Beta 8.7.12 Fastboot Here or Global Stable 9.5.19.0 Fastboot Here
    2. Make sure to backup your data first
    3. Run flash_all.bat to flash Global build and wipe everything
    4. Wait for system to boot up, and everything should be fine

    3- Flashing Custom ROMs

    • Flashing AOSP/LOS ROMs should be easy, flash twrp, wipe data & flash ROM
    • Flashing Miui based ROMs is a bit tricky, you have to make sure they didnt include bootloader inside the Zip, check for firmware-update inside Zip's before flashing or just ask other users

    4- based on fastboot new script we might get anti 5 in the future, so dont keep flashing newer bootloader/modem unless ROM developer tell you to do so

    here is how the new script works:

    • it check for Anti vlaue
    • if Anti is smaller than 4, then it flashes normally, but your device will be anti 4 also
    • if Anti is 4, it flashes dummy to anti roll-back pass, then proceed to flash ROM, after flashing is done you will have the same Anti 4 vlaues
    • if Anit is bigger than 4, like 5 or something else, the script will abort and tell you to get Anti 4 ROM

    5- Unlocking Fastboot:
    • This method let you flash twrp or run fastboot commands again
    • Download fastboot-unlock-anti-4-whyred from attachments or Drive
    • Flash from fastboot running this command
    • fastboot flash antirbpass dummy.img
    • Now flash twrp, run any fastboot command

      arb-pass.png


      you have to flash dummy/unlock every time you go into fastboot, or ARB will block your commands


    ill keep this thread updated, make sure to follow up with updates
     

    Attachments

    • fastboot-unlock-anti-4-whyred.zip
      178 bytes · Views: 74,412
    Last edited:

    jmartinho

    Member
    Dec 23, 2010
    20
    2
    So, I'm on 8.7.5 right now with twrp and magisk and I'd like to keep updating as new builds come out. Can I just do what I always do? Download 8.7.12 rom, flash with twrp, flash lazyflasher and magisk?

    Also would flashing other stuff risk bricking, like camera2 API zip, or YouTube vanced?
     

    UCFour

    Senior Member
    May 3, 2013
    925
    293
    So, I'm on 8.7.5 right now with twrp and magisk and I'd like to keep updating as new builds come out. Can I just do what I always do? Download 8.7.12 rom, flash with twrp, flash lazyflasher and magisk?

    Also would flashing other stuff risk bricking, like camera2 API zip, or YouTube vanced?

    8.7.5 doesn't have Anti-rollback feature while 8.7.12 (All roms with 8.7.6 n above) has it
    So u better dont update to newer versions of Official MIUI firmware to avoid issues
     

    jmartinho

    Member
    Dec 23, 2010
    20
    2
    8.7.5 doesn't have Anti-rollback feature while 8.7.12 (All roms with 8.7.6 n above) has it
    So u better dont update to newer versions of Official MIUI firmware to avoid issues

    Yes I know, but I don't want to be stuck in 8.7.5 forever because I doubt Xiaomi will go back on this. I like Miui and I don't have any intention of downgrading either, I just want to be able to keep TWRP and root.
     

    DedeDocil

    Senior Member
  • Feb 2, 2013
    179
    64
    Bekasi
    • Flashing Miui based ROMs is a bit tricky, you have to make sure they didnt include bootloader inside the Zip, check for firmware-update inside Zip's before flashing or just ask other users

    One question:
    So if i want to update to the newest version of MIUI10 will it be okay if i just replace the files inside firmware-update of the zip with the one from 8.7.5?

    Forgive my english if it make you confused:laugh:
     

    AL_IRAQI

    Recognized Contributor / Themer
  • May 18, 2012
    5,948
    11,258
    Baghdad
    One question:
    So if i want to update to the newest version of MIUI10 will it be okay if i just replace the files inside firmware-update of the zip with the one from 8.7.5?

    Forgive my english if it make you confused:laugh:
    Nope, just remove it, and edit the script

    2- Switching from CN Beta to Global Beta

    this method also need to unlock bootloader right ??
    Yeah, fastboot ROM is needed

    I'm on 8.7.12 and my bootloader is still locked.
    am I still able to. unlock bootloader and install twrp?
    thanks

    Yeah it should be fine, i unlocked on 8.7.12 then flashed twrp & AOSiP

    What file is the bootloader in rom or firmware zips?

    More than one file, so just remove the fw folder

    So, I'm on 8.7.5 right now with twrp and magisk and I'd like to keep updating as new builds come out. Can I just do what I always do? Download 8.7.12 rom, flash with twrp, flash lazyflasher and magisk?

    Also would flashing other stuff risk bricking, like camera2 API zip, or YouTube vanced?

    Mods should be perfectly fine, just make sure not to flash bootloader from twrp
     

    orion.30

    Member
    Mar 30, 2015
    28
    3
    Let me clear a thing... 9.5.19 will be anti roll back enabled... When xiaomi release update next to 9.5.19 whatever it will... Can i roll back from that buil to 9.5.19... I mean to say can i roll back an anti roll back rom to it previous version of anti roll back rom... Waitting for your ans...
     

    AL_IRAQI

    Recognized Contributor / Themer
  • May 18, 2012
    5,948
    11,258
    Baghdad
    Let me clear a thing... 9.5.19 will be anti roll back enabled... When xiaomi release update next to 9.5.19 whatever it will... Can i roll back from that buil to 9.5.19... I mean to say can i roll back an anti roll back rom to it previous version of anti roll back rom... Waitting for your ans...

    You can't roll back to older bootloader after flashing 9.5.19.0 bootloader

    Do I still need to remove the firmware-update folder if I just want to update to official MIUI 10 builds (like 8.7.5 to 8.7.12, etc) or is it only other third party MIUI roms?

    Yeah for the most part, check my other thread for modded Miui ROMs

    https://forum.xda-developers.com/redmi-note-5-pro/how-to/index-redmi-note-5-pro-miui-roms-t3816343
     

    DEBASISH

    Senior Member
    Nov 30, 2015
    432
    64
    Bhubaneswar
    I am in miui 8.7.5 global beta now with unlocked bootloader and twrp installed. If I will flash 8.7.12 global beta and then flash lazyflasher zip, will it remove my twrp ??
     

    Top Liked Posts

    • There are no posts matching your filters.
    • 200
      Hi everyone


      Xiaomi added Anti roll-back to latest Stable/Beta ROMs and many users bricked their phones because of it, i unlocked my bootloader yesterdays and started testing everything about Anti, and here is what i found so far:

      As of right now, anything Beta 8.7.6 and above has it, and for Stable 9.5.19.0 and above, check Xiaomi announcement about it, in 2nd post you will find the last Miui builds without Anti Roll-back

      • you can flash TWRP again
      • you can Root Anti ROMs with Magisk or Disable Encryption
      • you can switch from CN builds to Global builds or vise versa
      • you can switch between all anti 4 builds just fine, like from 8.7.12 to 9.5.19.0 or anything with anti 4
      • you can flash any AOSP/LOS based ROM
      • you can flash anti 4 fastboot ROMs
      • based on fastboot script we might get anti 5 in the future
      • how to bypass anti roll back lock in fastboot and flash/run anything

      1- TWRP flashing method:

      1. Boot Twrp or Redwolf using “fastboot boot XYZ.img”
      2. Copy img to device then flash Image file of XYZ.img again from recovery.
      3. Flash Lazyflasher Or Magisk
      4. Or you can just flash any AOSP/LOS based ROM
      5. or check #6 to unlock bootloader commands

      2- Switching from CN Beta to Global Beta

      1. Download Global Beta 8.7.12 Fastboot Here or Global Stable 9.5.19.0 Fastboot Here
      2. Make sure to backup your data first
      3. Run flash_all.bat to flash Global build and wipe everything
      4. Wait for system to boot up, and everything should be fine

      3- Flashing Custom ROMs

      • Flashing AOSP/LOS ROMs should be easy, flash twrp, wipe data & flash ROM
      • Flashing Miui based ROMs is a bit tricky, you have to make sure they didnt include bootloader inside the Zip, check for firmware-update inside Zip's before flashing or just ask other users

      4- based on fastboot new script we might get anti 5 in the future, so dont keep flashing newer bootloader/modem unless ROM developer tell you to do so

      here is how the new script works:

      • it check for Anti vlaue
      • if Anti is smaller than 4, then it flashes normally, but your device will be anti 4 also
      • if Anti is 4, it flashes dummy to anti roll-back pass, then proceed to flash ROM, after flashing is done you will have the same Anti 4 vlaues
      • if Anit is bigger than 4, like 5 or something else, the script will abort and tell you to get Anti 4 ROM

      5- Unlocking Fastboot:
      • This method let you flash twrp or run fastboot commands again
      • Download fastboot-unlock-anti-4-whyred from attachments or Drive
      • Flash from fastboot running this command
      • fastboot flash antirbpass dummy.img
      • Now flash twrp, run any fastboot command

        arb-pass.png


        you have to flash dummy/unlock every time you go into fastboot, or ARB will block your commands


      ill keep this thread updated, make sure to follow up with updates
      68
      The Last builds without Anti Roll-back

      The last builds without anti roll-back

      Recovery/TWRP builds

      Stable is Miui 9 9.5.17.0

      Beta is Miui 10 8.7.5

      Fastboot Builds

      Stable is Miui 9 9.5.17.0

      Beta is Miui 10 8.7.5

      22
      and this just in case
      6
      I am on 9.5.13 Global stable but I cannot figure out how to install 8.7.5 from it...

      Wipe Data & Flash it with TWRP, it doesnt have ARB

      That is annoying that we can't flash older MIUI versions with Mi Flash, does it only apply to more recent version?

      Does NON-HLOS.bin also contain bootloader files, which would mean we can not update the modem without triggering ARP?

      I didnt test myself, but some said they were not able to flash older anti 4 builds

      And NON-HLOS.bin is modem doesnt affect anything ARB related, anti 3 users already flashed it and stayed anti 3


      My friend as I said in the other thread:
      I'm on China Stable 9.5.21 and I wanna flash Global Stable + root, but I don't know how to flash twrp too.
      My bootloader will be unlocked in 4 hours. Little help? ?

      Flash Miui Global Stable 9.5.17.0 with fastboot, just use flashall.bat, but backup your data first because it will wipe

      i am talking about downgrade miui.
      fastboot and edl are diffrent right? so can we flash full rom(with firmware and all stuff) via edl may brick phone?
      i was thinking may be this will gonna work i had locked bootloader on RN3 so i was unable to flash rom(miui) then i do same with edl and it work (it takes more time then fastboot to flash rom),i didn't try that with ARB it's just a thinking may b work or not don't know.

      Even Flashing with EDL could brick it, Xioami already found a way to block edl flashing without permission , so i wouldn't recommend doing it

      in the OP about flashing custom roms instruction. On #3

      Just a normal WIPE, no need to format your internal storage

      I'm on 10.8.7.12 I tried to install 9.5.19 via updater, but it said can't update from unofficial rom. What to do to go to stable rom instead of the long term 10 beta?

      9.5.19.0 should be fine, try to download again and flash, you might downloaded edited build


      There is something I don't get...
      Is it necessary to unlock Fastboot with the script no matter which ARB version is installed?
      I thought unlocking the bootloader is sufficient to be able to install TWPR via Fastboot?!

      This dummy.img was added in latest MIUI fastboot ROMs to Enable fastboot commands on anti 4, then the flashing script start

      and No its not at this point, because Xiaomi blocked most commands :\


      Great, I didnt look that automatic updates are enabled by default. After nights charging Im now anti 4. Remember to disable them if you dont want them. Luckily all I want is TWRP+custom ROM, so its not that bad... Unlock timer isnt affected.

      Sent from my Redmi Note 5 using Tapatalk

      Yeah its safe, because both builds are anti 4

      I'm currently on Global Beta MIUI 10 8.7.17 build. I want to switch to Global Stable. Since my ROM is with anti roll back I want to be sure if flashing global stable MIUI 9 9.5.19 using flashall.bat will not brick my phone.

      And if any advices regarding switching to stable would be highly appreciated.

      Hello there... I own a Redmi Note 5 Global (Pro in India), I was wondering: Is it safe to downgrade from MIUI 10 8.7.12 Global Beta to MIUI 9.5.19.0 Global Stable through the Updater App? My bootloader is locked... I have downloaded MIUI 9 zip from Xiaomi's website.

      from anti 4 to anti 4 is safe

      I'm on miuipro 8.7.5 And I want to go on masik miui. 8.7.19 Do I need this before changing the rom?
      Does it only apply miuipro?
      I'm afraid of a brick

      Use latest Masik, they removed BL files from it

      Can you still touch the vendor partition (flashing treble roms, GSIs etc...) with anti 4 triggered?

      Yes

      @AL_IRAQI Is someone using your antirbpass dummy.img tool in this toolkit without crediting your work.

      [Tools, Tips & Tutorials] FALSHER TOOLKIT TWRP & UNLOCK ANTI ROLLBACK REDMI NOTE 5/PRO (WHYRED)

      From what I can make out, it is just a tool to flash TWRP.

      Hi, this file was uploaded by Xioami in latest fastboot ROMs, so its okay to use it


      I'm asking about Redmi 5 Plus aka Indian Redmi Note 5
      Sarfaraz Habib:
      I've checked on Redmi 5 Plus MIUI 10 Beta 8.7.19 is Anti: results blank & want to ROLLBACK to MIUI 9 Stable 9.6.2 didn't checked for Anti Results.
      Is it possible to rollback
      Please answer
      Vince doesnt have anti roll back


      Stupid question:
      I updated to last version (because I'm dumb) and got the anti rollback.

      I managed to installe TWRP recovery with the dummy.img method.

      Now, if I install, let's say, Lineage OS, I will get rid of the antirollback? or is permanently installed on the device with no way of removing it?

      You can remove ARB at all, just stick to newer miui builds or AOSP/LOS builds


      hi! i just want a confirmation since i'm really afraid of bricking my device. My Miui version is 9.5.19.0, i can still unlock the bootloader and root it right??

      Yes

      Hi i am on miui 9.5.17 also unlocked boatloader and have anti roll back-3, So i can flash TWRP via PC by Fastboot method or i need to follow other method can anyone guide me on flashing recovery...?

      Just flash it normally, anti 3 ROMs doesnt need extra steps

      So just to clearify if I understood the first post: When I flash your unlock image in fastboot, I can install TWRP with no restrictions and flash every custom ROM I want?

      Yes, just make sure not to flash older bl/fw

      just updated to CN rom 9.5.22, can i downgrade to global rom 9.5.19?

      Yes, both ROMs are anti 4

      I'm trying to flash the same fastboot rom (8.7.12) I was on before but mi flashtool says "anti rollback check fail". any solution?

      what is your current miui veriosn ?

      Can i install china rom on my redmi note 5 pro

      Yes, but check your anti first

      is Anti roll-back (ARB / ARP) in here means Quallcomm Qfuse?
      if true there is no downgrade from bigger version
      cos the qfuse all ready tripped every time ARB going up (on LG G4 is like there 3 step Qfuse, or 2)
      and no fix for this, the qfuse is on the processor (i think)
      i want to try this phone but ARB is scare me .... ( im just killed my LG G4 couple times, only motherboard change can fix this)

      we dont really know, because edl flashing worked after taking edl permissions from Xiaomi


      Can I install xiaomi eu 8.7 latest from global 9.5.17 with twrp? Arb i change to 4 or 3?

      I think EU team removed Bootloader from their latest ROMs, you can ask them before flashing

      Can I flash Global Stable 9.5.19.0 from China Stable 9.5.22.0 on my Redmi Note 5 AI, Have it any Anti Rollback Issue/Does this make hard brick??

      You can, because both builds are anti 4, try to flash 9.5.19 fastboot images