Hey everyone!
If you're reading this, you probably have the same problem as tens of people here:
your phone reboots when you unlock it.
However, don't lose hope! It can be fixed easily and without wiping the system (which was the first way to fix this, but you'd lose your files
).
You need USB Debugging, which, if it isn't already active, can be a pain to enable (
I know firsthand lol) but you can do it if you're fast enough (tip: use the settings icon in notifications to open settings faster).
I won't go into enabling it, you can find lots of tutorials online.
Here's how (computer with ADB needed, Google it if you don't know):
Plug your phone in your computer *before* unlocking it, then unlock it and accept connection.
For security reasons, I'll recommend you let the phone reboot now, as we don't want the phone to corrupt even more by trying what's next while the device is mid-reboot (that's the dangerous part).
Then, when the phone's on, don't unlock it, and:
-In a cmd prompt with ADB, type in:
adb shell
-Then:
pm uninstall -k --user 0 com.qualcomm.location
Now hopefully, your phone should work normally!
Thanks to pxbrz on Reddit for finding this:
https://www.reddit.com/r/Xiaomi/comments/ymr7yf/_/ivdu7z9