-
Unlock bootloader
https://www.getdroidtips.com/unlock-bootloader-redmi-9-redmi-9a/ -
Downgrade to android 10 (stock rom) by SP Flash Tool or Mi Flash Tool
https://spflashtool.com/
https://xiaomiflashtool.com/
https://xiaomistockrom.com/ -
Download UB rom
Dandelion in name for 9A. Another is 9C (Angelica)
https://gitlab.com/ubports/porting/community-ports/android10/xiaomi-redmi-9c/xiaomi-angelica -
Download Google platform-tools
-
Extract ub file and flash
Turn off phone, hold "volume down" + "power" to get into fastboot mode or
adb reboot fastboot
Disable VerifiedBoot
https://www.mediafire.com/file/kvz7dsowp09sfb1/vbmeta_disabled.img/file
fasboot flash vbmeta [path to vbmeta_disabled.img]
fasboot flash vbmeta_system [path to vbmeta_disabled.img]
fasboot flash vbmeta_vendor [path to vbmeta_disabled.img]
Flash dtbo and boot
fastboot flash boot [path to boot.img]
fastboot flash dtbo [path to dtbo.img]
Flash system
# boot to fastbootd mode
fastboot reboot fastboot
# delete product partition to get space for system
fastboot delete-logical-partition product
fastboot flash system [path to system.img]
# Reboot to enjoy Ubuntu Touch
fastboo reboot
-
Linux doesn't recognize phone when boot to fastbootd mode ->> try to add udev rules https://wiki.archlinux.org/title/Android_Debug_Bridge#Adding_udev_rules
-
Loop boot at redmi logo --> need to flash vbmata. --> use mtkclient if you cannot boot to flashboot https://github.com/bkerler/mtkclient (python mtk w --loader [path to loader]/MTK_AllInOne_DA.bin --preloader [path to preloader]/preloader_k62v1_64_bsp.bin vbmeta [path to vbmeta]/vbmeta.img)
It's been a year since I wrote this guide, and now I don't own Redmi 9A anymore. Please join this or this chat group for help.