• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

Move from Global to Global

Search This thread


New member
May 24, 2021

I have bought a Xiaomi Mi 10T Pro, "apollo" code name, with MIUI Global (QJDEEUXM) and I want to flash Miui Global - Indonesia rom (for miui dialer).
On my current ROM after running "fastboot getvar anti" returns 1.
Well, the .bat files from the fastboot, are a little bit different from other fastboot phones roms versions (see below).
Anyway, the question is more than clear:
Is it safe to flash this rom?
::check anti_version
if exist %~dp0images\anti_version.txt (for /f "delims==" %%a in (%~dp0images\anti_version.txt) do (set CURRENT_ANTI_VER=%%a))
for /f "tokens=2 delims=: " %%i in ('fastboot %* getvar anti 2^>^&1 ^| findstr /r /c:"anti:"') do (set version=%%i)
if [%version%] EQU [] set version=0
set anticheck="antirollback check pass"
if %version% GTR %CURRENT_ANTI_VER% set anticheck="Current device antirollback version is greater than this pakcage"
echo %anticheck% | findstr /r /c:"pass" || @ECHO "Antirollback check error" && exit /B 1

Thank you in advance!