most guides I found online are for windows based computers and those that even name linux are outdated.
-
Linux distro I run: debian 12.5, adb and fastboot installed through apt
-
Phone I want to experiment with: redmi 9c
-
Firmware I’m installing: https://xdaforums.com/t/rom-13-unofficial-lineageos-20-0-unified-for-redmi-9a-9c-10a-blossom.4609367/
fastboot devices
recognizes the device and I can also boot the phone to fastboot: it shows a black (not blank) screen with the word FASTBOOT printed orange.
I tried following https://android.gadgethacks.com/how-to/complete-guide-flashing-factory-images-android-using-fastboot-0175277/ but fastboot flashing unlock
and fastboot oem unlock
return FAILED (remote: 'Token Verify Failed, Reboot the device ')
developer options and OEM unlocking are both activated on the device
With some phones you need to go through extra steps to be able to do OEM unlocking. Looks like it is the case here, see the steps in the FAQ linked here : https://en.miui.com/unlock/download_en.html
I’ve never used miui devices but I think you need to make an account and use this https://en.miui.com/unlock/download_en.html so you will probably need to have wine installed to run it, unless it has a native linux version in the zip file. Then you should have an unlocked bootloader