XiaomiWiki_RU/wiki/About_Anti-Rollback_Protect...

25 lines
1.6 KiB
Markdown
Raw Normal View History

2019-04-19 21:40:56 +02:00
[Index page](../)
2019-04-19 21:39:44 +02:00
2019-03-01 02:33:20 +01:00
## About Anti-Rollback Protection
2018-11-21 18:22:28 +01:00
2019-03-01 02:33:20 +01:00
Anti-Rollback Protection (ARP) was introduced by Google in Android 8.0 (Oreo) and they made its implementation mandatory for devices launching with Android 9.0 Pie. ARP is a security countermeasure aiming to prevent devices from booting older, less-secure versions of Android. In Google's implementation, ARP is disabled if the bootloader is unlocked, whereas on Xiaomi devices it cannot be disabled once it's enabled by a ROM that implements it. Xiaomi likely made this decision to stop resellers from exploiting vulnerabilities found in older versions of MIUI.
2018-11-21 18:22:28 +01:00
### Checking if ARP is enabled
2019-03-01 04:11:36 +01:00
1. Download and launch the Xiaomi ADB/Fastboot Tools from [here](Tools_for_Xiaomi_devices.md).
2018-11-21 18:22:28 +01:00
2019-10-24 02:04:08 +02:00
2. Connect the device in Fastboot mode. See the instructions [here](https://szaki.github.io/XiaomiADBFastbootTools/).
2018-11-21 18:22:28 +01:00
If don't get any number for anti version, ARP isn't enabled. If you get a number, ARP is enabled.
### Anti version explained
Having an anti version means that you cannot flash whatever ROM you want, only ROMs that have an anti version equal to or higher than the device's.
* Flashing a ROM with an anti version higher than the device's will set it to the higher value.
* Flashing a ROM with an anti version equal to the device's won't change anything.
* Flashing a ROM with an anti version lower than the device's will result in a hard brick.
For now, only Fastboot ROMs check for anti version and act accordingly. They will abort without making any changes if the device's anti version is higher than its own.
2019-02-11 19:11:37 +01:00
Custom ROMs are unaffected by ARP and flashing them won't brick the device or change the anti version.