yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] corkiejp:
[MENTION=7609059]kiran G.[/MENTION]

Read the op again.

That will depend on what Anti version you have, if you didn't update MIUI or flash newer firmware, your probably on Anti 3, and don't need the fastboot file. Check your version with this command: -

fastboot getvar anti

lazyflasher is only for MIUI roms or possibly to remain decrypted on custom roms.

[MENTION=7963400]zvi0[/MENTION] Off-topic discussion for this thread, check the custom rom threads (LOS) and Magisk thread for instructions. As already said xposed doesn't work on Oreo MIUI, so stop grouping it and LOS together in your questions.

[MENTION=5778867]kuance[/MENTION]

Anti 3 or Anti 4 discussion.

My device is still Anti 3 and would rather stick on that for the foreseeable future, for convenience. I mainly use custom roms and do not see myself returning to MIUI anytime soon. Unless my device get's corrupted and need to flash MIUI fastboot rom to fix it.

With Anti 3, I am safe to use an older fastboot rom and not the latest. Reports of Mi Flash broken on Anti 4.

As long as custom rom developers stick to 8.7.5 bootloader, I will hopefully remain on Anti 3, by just updating Modem, Bluetooth and DSP.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] kiran G.:
Forgot to mention i have ARB=4
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Metaphyte:
I'm having dificulties understanding what this whole anti rollback thing means. I only just got my redmi note 5 and I updated it before i knew about the rollback. Does this mean I can't install custom roms on it without risking bricking it? Or is it only if I wanna go from one major android (8.1) to an older one (7.1) for example?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] numbazZ:
Bought this phone today and updated to 9.5.19.0 after unboxing..... Then I came here to download AospExtended and it turns out that there is this Anti Roll-Back thing.... What a fail

Also, my phone came unlocked from the box, when it boots up it says "Unlocked'' at the bottom
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] rEsonancE_0404:
My knowledge still deceives me

I'm currently on latest beta build of MIUI

So if I want to flash twrp, fo I need to flash the dummy image first?

And I f I want to return to MIUI, does flashing via MIFlash don't brick the device?

If someone willing to give me as much info as I need because OP doesn't mention anything about switching from latest builds

Goodday
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] La Yung:
i tested via fastboot. I got 2. Neither 3 nor 4.

what about. Explain me pls.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] jugalpawar27:
I have the miui 9.5.19 stable rom on my device. I want to flash a custom rom on my device. Is it safe to just follow all the regular steps about unlocking the device and flashing twrp and custom rom along with Gapps or do i have any problem? Is it safe for me ?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] corkiejp:
[MENTION=7537365]jugalpawar27[/MENTION] It is safe to flash custom roms as long as you don't downgrade your firmware, if the rom suggests an older firmware.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] deadman_owl:
Flash firmware

I have a question, if i have anti 4 can i flash any custom firmware? or how can i check if that custom firmware will not cause me problems?, thanks!
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] corkiejp:
[MENTION=8624163]deadman_owl[/MENTION]

Are you confusing firmware with custom roms?

There is no such thing as custom firmware, xiaomi release the firmware with the roms and others just extract that firmware so it is easily flashed on custom roms.

Check the date/version of the firmware to see if it anti 3/4/5, date for beta roms and version for stable.

Don't flash older firmware than what you presently have installed.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] deadman_owl:
You're right, sorry I confused kernel with firmware :p , I need to have any special consideration flashing a new kernel? thanks!
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] jugalpawar27:
No the miui 9.5.19 is working on oreo so if i flash any oreo rom like the latest rr, it will work good?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Duden17:
Hi guys, just want to make sure. I am on anti 3 global rom 9.5.17.0 and i wanna try ROM on this thread maybe some roms on this OP. After flash the rom can i go back to real stock global rom with same version 9.5.17.0 any problem if i go back stock global rom with anti 3 thanks before

Thanks man for the rom
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] corkiejp:
[MENTION=8624163]deadman_owl[/MENTION] Custom kernels have no effect on bootloader, so safe to flash whatever your on.

[MENTION=7537365]jugalpawar27[/MENTION] and [MENTION=8799586]Duden17[/MENTION]

Most of your question are covered in the OP.

You can flash any custom rom you want no matter your anti version.

If your returning to MIUI afterwards, just to make sure your returning to same or latter version, that you where on previously.

Just Don't downgrade your firmware if the custom rom suggest an older firmware, than what your on already.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] rEsonancE_0404:
Thanks for the clear up, but when I want to flash back to MIUI via fast oot, does it goes to bootloop? Or not?

My understanding is that, whatever firmware you're using, never flash anything lower version, right?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] corkiejp:
Basically but a little more complicated if your device is on Anti 4 firmware or rom, don't flash anything with Anti 3.

Similar if we get Anti 5, don't flash anything lower.

But you can flash anything with the same Anti version.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] deadman_owl:
Excellent response mate, all my doubts are clear Thanks! :highfive:
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] kostas gp:
Is there a way to downgrade the anti level? Get from anti 4 to anti 3? Or some way to bypass or even completely remove this safety feature?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Duden17:
Thanks man just wanna make sure :D
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] :
I bought that device it ended up being shipped with MIUI Global 9.5 | Stable 9.5.13.0(OEIMIFA) Security Update 2018-05-01.

When flashing the latest nightly from https://download.lineageos.org/whyred they recommend in the documentation

I am guessing that they want you to have ARP4 before commencing the flash of LineageOS ie up to date firmware. To me that firmware updater could be risky. I'm not usually in the habit of blindly accepting FW updates, particularly when they can be irreversible.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] av7373:
Hey guys, I am on Aosp rom and my device is Anti4 but I am facing the dual volte problem after installing the rom. Now can I flash the latest stable anti4 miui rom with firmware using Redwolf/twrp (to fix the dual volte bug) or will I require Mi flash tool with it. :rolleyes:
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] koteshrv:
Can any one say me what is the Anti value of recent beta update 8.8.2 for Redmi note 5 pro

---------- Post added at 06:15 AM ---------- Previous post was at 06:13 AM ----------

You can not remove it...but u can flash older versions....which don't have any firmware.....

And we should thank Dev's for doing this....
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] gr8techie:
[MENTION=4648515]AL_IRAQI[/MENTION] Hello, Could you plz tell me how to check the anti version on my device? I have indian whyred (Redmi Note 5 Pro). I just upgraded to 8.8.2 using your fastboot method to flash dummy.img and then TWRP followed by the official package for 8.8.2 global beta.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Aqq123:
[MENTION=9262768]tya99[/MENTION] Good news then, and thanks for sharing the version number.

I think that was written before ARP was even a thing. I would certainly prefer to stay on ARP3 as it keeps your options open in the future. I haven't tried this but you should be able to flash newer firmware (NON-HLOS, aka "Non-High-Level Operating System" in Qualcommspeak) updates from newer builds without being bumped up to ARB4. It's only with the next major Android update that we might be forced to make the choice as it might require bootloader update, and it might be ARB44 by that point already.

Be careful though when bringing the phone online (I assume you have to keep MIUI for 15 days while waiting for the unlock) as it will update itself unless you prevent it from doing so in advance. Here's how to switch it off: https://xdaforums.com/showthread.php?p=77110409#post77110409
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Kalyan8106:
Custom ROMs

Can I flash custom ROMs like resurrection remix and masik 2.1:D
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] :
I do agree about staying on ARP3. I see nothing to gain from updating right now.

I have disabled the auto updates and my plan is not to use the phone until I have LineageOS on it. I see no point in migrating beforehand, just means I need to back things up.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] corkiejp:
[MENTION=9262768]tya99[/MENTION]

The firmware updater link you mentioned is just extracted firmware files (packed into a zip) you can flash on your device. It is not an automatic process and it is quite safe to use. <<< exception been now that you don't downgrade change your anti version. Resulting in a bricked device.

Been using them zips on both WHYRED and Kenzo.

As for recommend firmware, the LOS/RR threads on XDA, are still recommending 8.7.5 (Anti 3) with warnings not to downgrade.

[MENTION=1987749]Aqq123[/MENTION] There is three files from firmware that are safe to flash without triggering ARP. Modem, Bluetooth and DSP.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] percyrohr:
Factory Reset and flash from MiFlash

I have upgraded my Redmi Note 5 to 9.5.19 without knowing about Anti Roll-back. I do still have TWRP installed (using dummy.img) and have rooted with Magisk. But I have several problems with doing a TWRP backup -

"Failed to mount '/vendor' (Structure needs cleaning)" and

"createTarFork() process ended with ERROR: 255"

I have been unable to find an answer to these problems, but before this "Anti Roll-back" stuff I would have done a Factory Reset and flashed MIUI again from MiFlash, then reinstalled TWRP and Magisk - hoping this might resolve my issues. However, all this talk of bricking, etc, makes me hesitant to go down that track. My question is - is it still considered safe to do a Factory Reset and flash MIUI (9.5.19) from MiFlash? Thanks.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] corkiejp:
[MENTION=9128514]percyrohr[/MENTION] You could probably could resolve your TWRP issues without FR and reflashing MIUI.

Make sure your on the latest TWRP and is installed permanently on your device and not temporarily booted.

Also try mounting your partitions before trying to backup.

A reinstall of just TWRP also might resolve your problems.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] percyrohr:
Twrp problems

Thanks, but I have tried all of your suggestions with no joy. I think my only option is to Factory Reset and flash 9.5.19 again
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] corkiejp:
[MENTION=9128514]percyrohr[/MENTION] A FR will not touch your system partition.

Flashing MIUI might repair the system partition.

See this Thread, for another solution to repairing it. You might need only to flash the system.img after repairing the partition.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] :
I can confirm those instructions work well.

I am now on v9.5.17.0 from there I shall go to LineageOS.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] irvanokt1778@gmail.com:
how to fix fake ubl?? i cant unlocked bootloader.. coz its fake UBL..? original ROM is Global Stable 9.5.17.. and I update it to Global Beta 8.8.2 MIUI 10.. using xiaomitool.. but now my device rom version still 9.5.17.. but all change to MIUI 10.. u can see my screenshoot..

how i fix this.. and i want to unlock the bootloader.. my mi account already permission to unlock device..
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] otonieru:
you might have to do a test point method to flash proper bootloader.

and this is wrong thread to ask about that,

try to find help in Q&A section. i remember there's similar case already addressed in some thread over there.

this thread is for something related to ARB.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] compgenie:
Looks like every time I change phones there's some new BS.

I'm currently on 9.2.13 Global Stable, Nougat based. I'll be able to unlock my phone in two weeks.

I want to install Resurrection Remix 8.1+treble based.

Should I just unlock, twrp, flash?

Or should I first update to Oreo based MIUI then unlock? Because marshmallow bootloaders and nougat bootloaders weren't compatible or something......anything like that this time?

How do I check my anti version or which firmware has which anti version?

I almost never flash the latest firmwares. What's the best firmware so far? If I flash something new will my device's ARP get activated? Link if possible pls.

Thanks.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] irvanokt1778@gmail.com:
ok.. sorry for wrong thread.. thanks
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] corkiejp:
First off it is a bad idea to use your email as a username on public forums. Invites spam.

Second you have what is called a vendor/reseller rom, which can not be update by miui update or by OTA. I suspect even xiaomitool probably gave an error and did not actually update the device.

Luckily going by your screenshot, the bootloader may already be unlocked, test with fastboot oem device-info and flash an official rom with Mi Flash, if it is not locked.

Edit: - Also test your Anti with fastboot getvar anti, If you have 4, you need to enable fastboot with commands in the OP to flash with Mi Flash. And don't flash anti 3 firmware/rom.

As [MENTION=4066277]otonieru[/MENTION] pointed out, wrong thread for that type of query and you may have to use testpoint method.

[MENTION=5120057]compgenie[/MENTION] Your rom currently is not effected by ARP. (Oreo only feature), recommend you update to Oreo based rom which is an Anti 3 version. (Anything before Beta 8.7.6 or Stable 9.5.19.0). Goto the MIUI forums for downloads.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] glamourservices01:
Is it possible to go back to a Nougat based rom? I have anti 4 unfortunately! I understand that I need a Nougat bootloader?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] aank:
Don't do it my way as i need to flash fastboot rom, i broke my fingerprint sensor and playing a bit with firmware files while i at it ?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Kalyan8106:
Can I change from beta to stable

Can I change from beta 8.8.2 to 9.5.19.0 stable..?:)
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] :
[MENTION=5120057]compgenie[/MENTION] you sound like much the same as I was.

You should update to 9.5.17.0 and then go to LineageOS from there. Remember MIUI roms include the firmware LineageOS does not. I have verified Aqq123's instructions as they worked for me. I did it on two Redmi Note 5s, the first one was on 9.5.13.0(OEIMIFA) Security Update 2018-05-01 and the second one was 9.5.6.0(OEIMIFA) Security Update 2018-03-01. Now they are both on 9.5.17.0(OEIMIFA) Security Update 2018-06-01.

In that other thread Aqq123 wrote:

9.5.19.0 I assume came out around 2018-07-01 and included Anti-Rollback protection 4. I cannot say I really agree with the instruction on the

Install LineageOS on whyred but from what people have said that was written before 9.5.19.0 Anti-rollback 4 came out, ie

Apparently that was written before Xiaomi implemented Anti-Rollback Protection 4.

My understanding also is people bricked their phones because they installed MIUI10 or 9.5.19.0 then tried to install an earlier version of MIUI which includes older firmware. LineageOS doesn't include firmware so it really shouldn't matter whether you're on ARP3 or ARP4. Just note that once you move to a MIUI version that includes ARP4 you can no longer use any version that had a firmware for ARP3. I would assume Resurrection Remix 8.1 also doesn't include any firmware but you might want to check that.

At some point in the future newly manufactured Xiaomi Redmi Note 5s will come with something newer than 9.5.19.0 anyway so everyone will have ARP4.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] JaggedPill:
I'm on ARB4.0 failed to get fingerprint on Lineage after flashing TWRP. Tried every suggestion. Even fastboot flashed dev ROM. Friends can you please tell me what exactly is needed to get it back.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] drmuruga:
Just changed motherboard. Bad decision from Xiaomi. Atleast they provide Authorization to all to unbrick. Waiting for 360 hrs to unlock.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Kalyan8106:
Noooo but u can flash the ROMs modded by Abdul but your ARB version still remains 4
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] glamourservices01:
I already have flashed a modded ROM, I wonder if I can modify a nougat MIUI based ROM with the tutorial, will it work?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] corkiejp:
Probably won't work as you will probably need the older bootloader for it to work with Nougat. And you can't downgrade your bootloader without bricking the device.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] glamourservices01:
The truth is I'm really disappointed with Xiaomi's dictatorship policy considering the Whyred devices. Users should have the freedom to do anything they want with their devices! I even consider selling my brand new phone, the question is which device has the same specs and "alleged" support....
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] corkiejp:
Another ARP [Anti 4] Video guide!

How to Flash Custom ROMs & MIUI ROMs on Antirollback enabled device! TWRP installation guide.

[YOUTUBE]7cyzKebbah8[/YOUTUBE]

https://www.youtube.com/watch?v=7cyzKebbah8
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] percyrohr:
MiFlash

My Note 5 has 9.5.19 installed. I would like to reflash 9.5.19 due to errors, are there any problems flashing a fastboot ROM with MiFlash now that there is Anti Roll-back?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Robert-:
I can't check anti for some reason. I got this error:

getvar:anti FAILED (remote: GetVar Variable Not found)

And if I write the command, i get this error:

getvar:anti FAILED (command write failed (No error))
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] corkiejp:
[MENTION=5718294]Robert-[/MENTION] did you use the full command?

Edit: And there is no >>> . <<< between getvar and anti!
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Robert-:
Yes. I just tried again. Same error..

Is my bootloader broken?

edit: i tried multiple times and it came with anti 3. So it's fine..i guess?

Is there anything wrong with my phone or is it ok?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Aqq123:
That's interesting. I think it's fine if you eventually managed to get it to answer but if you want to know the reason, I'd try the following:

If you're using a different fastboot version, can you try the one provided with the latest MiFlash Unlock tool?

Are you connecting the phone directly to a USB port on your computer, or through a hub, possibly with some other devices sharing the port as well? Does it still happen if you unplug any other USB devices from the computer?

If you have a USB 2.0-only port on your computer, can you try using that?

Finally, if it's none of the above, can you confirm it also happens on another computer, and with another cable?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Robert-:
I've just tried on another PC and everything went fine, so it must be my PC. What could it be tho? Drivers? :confused:
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Jeff.angkasa:
I want to ask something. I dont care about arb, but i got fake ubl and fake rom with arb 4, and i dont have mi id authorized, so how to fix that? And xiaomi will be open mi id authorized registration again to be repair this problem??
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Pahein:
I have exact same problem

How can I flash to official rom when my phone had antirollback and bootloader locked? I just want to use official rom on my device, or custom rom is fine

Ps I have authorized account to unlock bootloader
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] phoxx12:
Finally recieved my RN5Pro! :) Now in the process of unlocking the boatloader and flashing LOS. Two questions:

1. I'm on Global Stable 9.5.6. Would like to switch to Developer to unlock. I think it's best not upgrade to an arb4 version of the Developer rom? I tried to flash developer 8.7.5 from post #2 (recovery/twrp file) trough the MIUI updater app, but that doesn't seem to work. Any suggestions where I can find the developer 8.7.5 rom, that's compatible with the MIUI updater app?

2. If the above won't work, I'll have to update to the latest Developer rom (with arb4). What are the disadvantages of this? I understand that flashing TWRP is a bit more complicated, but that's no problem. However will TWRP be kept as recovery? Or do I have to flash TWRP every time I want to update? Are there any other disadvantages? I won't go back to (previous versions of) MIUI, so the bricking thing won't affect me.

Any help is highly appreciated :)
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] ramig:
Fastboot device

First
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] corkiejp:
[MENTION=7576386]phoxx12[/MENTION] You should be able to unlock on Global Stable 9.5.6. So don't know why you want to switch to developer rom.

There is upto 360 hours (15 Days) wait on the unlock process once you have registered your device.

As for using the updater app, see here: - https://www.reddit.com/r/Xiaomi/wiki/advanced/updater
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] phoxx12:
Ah, I thought I needed Developer rom to unlock. I'll try with the current stable rom, thanks!

Edit: succeeded! Only thing now, is 360 hours to wait... :)
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Jeff.angkasa:
When will Xiaomi open registration again? I want to delete fake ubl on my redmi note 5 i frustated to tried flash all rum but cannot unlock bootloader
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] psbhullar:
Great work !
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] taco9:
About future implementations of ARB... It seems to me that not all phone manufacturers implement it the way Xiaomei/MIUI does. Someone with a Motorola phone says he has ARB, but the worst that happens when trying to install an older ROM is that he gets an "installation failed" message but the phone has no problem booting back to its original OS. Dont know what Googles guidelines are to the phone manufacturers on ARB, but seems that hard bricking a phone is an extreme or very stupid implementation of ARB. It would only create massive support problems for the manufacturers as they get requests to fix the hard bricked phones. I cannot see this as a viable approach. The way ARB is implemented by Xiaomei will have to change for their own good.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] MikiGry:
[MENTION=5484811]taco9[/MENTION]

Xiaomi manager to screenshot up every single aspect of ARP

1. User should be able to turn it off (for example by unlocking bootloader) - Xiaomi messed up

2. It should block older firmware installations - Xiaomi messed up again. It doesn't block the installation. It install just fine but never boots up. It bricks the phone

Xiaomi"s implementation shouldnt be called ARP. It should be called PiBM - Phone Intro Brick Maker
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] taco9:
I think Xiaomei sooner or later will realize how stupid they were and will change it.