[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] redsky0:
EDIT3 - Thanks everyone - fixed, the main confusion was MIUI fastboot not recognising my phone. I had previously installed Andorid Composite ADB Interface from device manager on my PC but for some reason it dissapeared.

Reinstalled from disk, used MiFlash with stock ROM below and no longer got error below. Accidentally did "Clean all and lock" but it seems like you don't have to wait 7 days again. Logged into MIUI via developer options >MIUI unlock, was able to unlock immediately from MIUI fastboot again.

Then redid everything:

Followed guide here - https://xdaforums.com/t/rom-11-0-0-alioth-aliothin-arrowos-11-0-official-weekly.4279481/

Rebooted to MIUI fastboot (not Arrow Recovery fastboot)

fastboot boot twrp.img (named my twrp alpha image this)

I tried pushing twrp image to install to ramdisk (so twrp was permanent recovery) but I get error "unable to decrypt FBE device" so I skipped that (kept Arrow OS recovery)

adb push magisk-v23.0.zip /storage

installed zip, reboot

Was able too boot (got a weird lockup/restart but all good after)

Immediately recognised it was already rooted when it got to google pay setup

---------------

Trying to reset Poco F3 to stock (but keep bootloader unlocked).

I currently have ArrowOS (I can boot, but I can't root it) and ArrowOS Recovery but I think I have messed up my partitions.

Steps:

From Arrow OS Recovery > Fastboot

Running MiFlash, I am patching global unzipped fastboot from tar:

alioth_global_images_V12.5.1.0.RKHMIXM_20210517.0000.00_11.0_global

https://xiaomifirmwareupdater.com/miui/alioth/stable/V12.5.1.0.RKHMIXM/

I am getting below error, is there anything else I can do to try to restore to stock or fix partitions?

Can I sideload the firmware somehow?

EDIT - I have also tried from MIUI fastboot but it does not see my devices.

EDIT2 - It shows up as Android in device manager, if I install usb_drivers (Andorid Composite ADB interface) it fixes it so I can use MIUI fastboot now.

View attachment 5348785

log file:

[6:19:58 PM ddcb8276]:MiFlash 2018.11.15.0

[6:19:58 PM ddcb8276]:Thread id:15 Thread name:ddcb8276

[6:19:58 PM ddcb8276]:image path:C:\Content\IDM\_poco_f3_setup\tgz\alioth_global_images_V12.5.1.0.RKHMIXM_20210517.0000.00_11.0_global

[6:19:58 PM ddcb8276]:env android path:"C:\MiFlash20181115\Source\ThirdParty\Google\Android"

[6:19:58 PM ddcb8276]:script :C:\Content\IDM\_poco_f3_setup\tgz\alioth_global_images_V12.5.1.0.RKHMIXM_20210517.0000.00_11.0_global\flash_all.bat

[6:19:59 PM ddcb8276]:physical Memory Usage:3846144 Byte

[6:19:59 PM ddcb8276]:start process id 12196 name cmd

[6:19:59 PM ddcb8276]:info:$fastboot -s ddcb8276 getvar product 2>&1 | findstr /r /c:"^product: *alioth" || echo Missmatching image and device

[6:19:59 PM ddcb8276]:info:product: alioth

[6:19:59 PM ddcb8276]:info:$fastboot -s ddcb8276 getvar product 2>&1 | findstr /r /c:"^product: *alioth" || exit /B 1

[6:19:59 PM ddcb8276]:info:product: alioth

[6:19:59 PM ddcb8276]:info:$if exist C:\Content\IDM\_poco_f3_setup\tgz\alioth_global_images_V12.5.1.0.RKHMIXM_20210517.0000.00_11.0_global\images\anti_version.txt (for /F "delims==" %a in (C:\Content\IDM\_poco_f3_setup\tgz\alioth_global_images_V12.5.1.0.RKHMIXM_20210517.0000.00_11.0_global\images\anti_version.txt) do (set CURRENT_ANTI_VER=%a ) )

[6:19:59 PM ddcb8276]:info:$(set CURRENT_ANTI_VER=1 )

[6:19:59 PM ddcb8276]:info:$if [1] EQU [] set CURRENT_ANTI_VER=0

[6:19:59 PM ddcb8276]:info:$for /F "tokens=2 delims=: " %i in ('fastboot -s ddcb8276 getvar anti 2>&1 | findstr /r /c:"anti:"') do (set version=%i )

[6:19:59 PM ddcb8276]:info:$if [] EQU [] set version=0

[6:19:59 PM ddcb8276]:info:$set anticheck="antirollback check pass"

[6:19:59 PM ddcb8276]:info:$if 0 GTR 1 set anticheck="Current device antirollback version is greater than this pakcage"

[6:19:59 PM ddcb8276]:info:$echo "antirollback check pass" | findstr /r /c:"pass" ||

[6:19:59 PM ddcb8276]:info:"antirollback check pass"

[6:19:59 PM ddcb8276]:info:$fastboot -s ddcb8276 erase boot_ab ||

[6:19:59 PM ddcb8276]:err:erasing 'boot_ab'...

[6:19:59 PM ddcb8276]:err:FAILED (remote: Partition doesn't exist)

[6:19:59 PM ddcb8276]:err:finished. total time: 0.001s

[6:19:59 PM ddcb8276]:info:"Erase boot_ab error"

[6:19:59 PM ddcb8276]:error:FAILED (remote: Partition doesn't exist)

[6:19:59 PM ddcb8276]:process exit.

[6:19:59 PM ddcb8276]:flashSuccess False

[6:19:59 PM ddcb8276]:isFactory False CheckCPUID False

[6:19:59 PM ddcb8276]:before:flashSuccess is False set IsUpdate:True set IsDone True

[6:19:59 PM ddcb8276]:after:flashSuccess is False set IsUpdate:false set IsDone true