[General Questions and Answers] atcii:
I have a MI Play that I am trying to unbrick.

I can get into both recovery and fastboot modes. However, everything that I try to do gives an error:

I cannot factory reset, it gets stuck at 65% and fails.

I cannot flash the original firmware or custom recovery because my bootloader is locked. I cannot unlock the bootloader because I do not have a MI account bound to this device. My device is detected as sideload, not device in ADB. When I try "adb shell" I receive "error:closed".

Is there any way for me to unlock the bootloader and enable usb debugging? The device is not rooted.

My fastboot variables are as follows:

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot getvar all

(bootloader) token: VQECIwEEQ5whEAMFbG90dXMCFPr2pS0yaM+fWXFnkY5E5UJJ1o6

(bootloader) max-download-size: 0x8000000

(bootloader) partition-size:flashinfo: 1000000

(bootloader) partition-type:flashinfo: raw data

(bootloader) partition-size:otp: 2b00000

(bootloader) partition-type:otp: raw data

(bootloader) partition-size:userdata: d2a4fbe00

(bootloader) partition-type:userdata: ext4

(bootloader) partition-size:cache: 1b000000

(bootloader) partition-type:cache: ext4

(bootloader) partition-size:vbmeta: 800000

(bootloader) partition-type:vbmeta: ext4

(bootloader) partition-size:devinfo: 800000

(bootloader) partition-type:devinfo: ext4

(bootloader) partition-size:system: c0000000

(bootloader) partition-type:system: ext4

(bootloader) partition-size:cust: 34000000

(bootloader) partition-type:cust: raw data

(bootloader) partition-size:vendor: 30000000

(bootloader) partition-type:vendor: raw data

(bootloader) partition-size:tee2: a80000

(bootloader) partition-type:tee2: raw data

(bootloader) partition-size:tee1: 500000

(bootloader) partition-type:tee1: raw data

(bootloader) partition-size:odmdtbo: 1000000

(bootloader) partition-type:odmdtbo: raw data

(bootloader) partition-size:logo: 800000

(bootloader) partition-type:logo: raw data

(bootloader) partition-size:boot: 2000000

(bootloader) partition-type:boot: raw data

(bootloader) partition-size:lk2: 100000

(bootloader) partition-type:lk2: raw data

(bootloader) partition-size:lk: 100000

(bootloader) partition-type:lk: raw data

(bootloader) partition-size:nvram: 4000000

(bootloader) partition-type:nvram: raw data

(bootloader) partition-size:gz2: 1000000

(bootloader) partition-type:gz2: raw data

(bootloader) partition-size:gz1: 1000000

(bootloader) partition-type:gz1: raw data

(bootloader) partition-size:sspm_2: 100000

(bootloader) partition-type:sspm_2: raw data

(bootloader) partition-size:sspm_1: 100000

(bootloader) partition-type:sspm_1: raw data

(bootloader) partition-size:scp2: 100000

(bootloader) partition-type:scp2: raw data

(bootloader) partition-size:scp1: 100000

(bootloader) partition-type:scp1: raw data

(bootloader) partition-size:spmfw: 100000

(bootloader) partition-type:spmfw: raw data

(bootloader) partition-size:md1img: 6400000

(bootloader) partition-type:md1img: raw data

(bootloader) partition-size:efuse: 80000

(bootloader) partition-type:efuse: raw data

(bootloader) partition-size:proinfo: 300000

(bootloader) partition-type:proinfo: raw data

(bootloader) partition-size:sec1: 200000

(bootloader) partition-type:sec1: raw data

(bootloader) partition-size:persist: 3000000

(bootloader) partition-type:persist: ext4

(bootloader) partition-size:seccfg: 800000

(bootloader) partition-type:seccfg: raw data

(bootloader) partition-size:protect2: 978000

(bootloader) partition-type:protect2: ext4

(bootloader) partition-size:protect1: 800000

(bootloader) partition-type:protect1: ext4

(bootloader) partition-size:metadata: 2000000

(bootloader) partition-type:metadata: raw data

(bootloader) partition-size:nvdata: 4000000

(bootloader) partition-type:nvdata: ext4

(bootloader) partition-size:nvcfg: 2000000

(bootloader) partition-type:nvcfg: ext4

(bootloader) partition-size:frp: 100000

(bootloader) partition-type:frp: raw data

(bootloader) partition-size:expdb: 1400000

(bootloader) partition-type:expdb: raw data

(bootloader) partition-size:para: 80000

(bootloader) partition-type:para: raw data

(bootloader) partition-size:recovery: 2000000

(bootloader) partition-type:recovery: raw data

(bootloader) partition-size:boot_para: 100000

(bootloader) partition-type:boot_para: raw data

(bootloader) partition-size:preloader: 40000

(bootloader) partition-type:preloader: raw data

(bootloader) off-mode-charge: 1

(bootloader) warranty: yes

(bootloader) unlocked: no

(bootloader) secure: yes

(bootloader) rollback_ver_avb: 1

(bootloader) rollback_ver_nosec: 1

(bootloader) rollback_ver: 1

(bootloader) kernel: lk

(bootloader) product: lotus

(bootloader) version-preloader:

(bootloader) version: 0.5

all: Done!!

finished. total time: 0.234s