madgoeslim
backup mi A1 qcn,
download mi 5x fastboot rom & extract it.
then full erase, flash mi 5x rom via edl mode
(tick all partitions before flashing)
download mi 5x qcn
restore qcn & repair imei.
done.
note: 5x is chinese rom,google services not available.also low camera clarity.