Bricked after TWRP+Magisk on Mi9T pro


elektrinis

Members
Mar 5, 2021
8
13
I had a Magisk-rooted xiaomi.eu ROM, version from few months back. An update came, and so I have updated to the latest stable version. After this, Magisk disappeared and root was lost.
I have tried to install Magisk in their recommended way: patching the custom recovery, TWRP in my case.
After doing this, the ROM no longer booted. Problem is, I have not backed it up, and I really need some things back, like call logs and SMS.
So I have cleared cache and dalvik, also wiped system and flashed a fresh xiaomi.eu ROM. It still does not boot: hands at MIUI logo.
Back in TWRP, it does not ask for pattern and all my data is encrypted (scrambled filenames). I can only get the files if I flash global MIUI stable, which also does not boot.
So is there a way to make it boot, to at least back up some things?
 
You don't wipe system because Magisk is not working... Why didn't you ask for help before wiping things or flashing another ROM? ... :(

You messed everything now so it's time to do a clean install = "Format Data" button in the "Wipe" menu of TWRP. Then reboot your phone to TWRP and install any ROM you want.

SMS & Call logs should have been saved in Google Cloud and/or Mi Cloud, no?
 
To be honest I was in a rush to get back and running asap, and I did not expect a quick solution on forums. I don't recall the exact steps I did, but I did not wipe anything initially. First I dirty flashed clean TWRP, that did not work. Then I dirty flashed the same (latest) version of xiaomi.eu. Did not boot.
Then I dirty flashed global stable MIUI. Did not boot. Only then it seemed like wiping is the next step, so here I am.

Just to understand it better, where are call logs located? Are they in data or system?
Can I use existing data for fresh install of the same version of xiaomi.eu ROM?
 
Last edited:
Just to understand it better, where are call logs located? Are they in data or system?
Can I use existing data for fresh install of the same version of xiaomi.eu ROM?
There are in the data partition. ;)

First, install this zip in TWRP to fully uninstall Magisk => Magisk-uninstaller-20210117.zip

You can try to create a TWRP backup of your data partition then save the "TWRP" folder (in the root of your phone's storage) on your computer. (But the use of an USB-OTG is recommended :))

Clean install then boot & finish the first setup wizard. After that, you can try to restore your TWRP backup.

Also, what Magisk version did you install?
 
  • Like
Reactions: geoanto555
OK thanks, will try once whole 100GB of storage files finishes transferring to PC. MTP is so painful.
I'm now on TWRP 3.5.0_9-0. Previous one was v3.3 of something like that.

Magisk is v22 from https://magiskmanager.com/
The app installed from within manager, however Magisk itself, as instructed by manager, had to be installed by patching recovery image, which I did from within manager.
 
Magisk is v22 from https://magiskmanager.com/
The app installed from within manager, however Magisk itself, as instructed by manager, had to be installed by patching recovery image, which I did from within manager.
Ok about TWRP but for Magisk you can simply rename it and install it in TWRP => https://xiaomi.eu/community/threads...nstalling-android-11-update.60181/post-594671

;)

EDIT: This website "https://magiskmanager.com/" is NOT an Official website for Magisk. Official Magisk releases are available here => https://github.com/topjohnwu/Magisk/releases :)
 
While I'm backing it up, I'll mention I also have an issue with encryption.
With xiaomi.eu flashed, TWRP does not prompt for pattern, and I see encrypted filenames in storage.
With MIUI flashed, TWRP asks for pattern. When provided, it says it has successfully decrypted "user 0", and failed with "user 999". I am also being reminded about this when backing up data. Not sure where the second user is from, perhaps from dual apps feature? I then wonder if it's needed and if there's a way to decrypt it before I mess with it any further.
 
OK, so I have backed up /data. Once fresh ROM was installed, TWRP failed to restore with error 255. However some data was in fact restored - a small portion of settings (language prefs) and SMS.
For call log I had to fish out from TWRP backup. If anyone interested, these are the locations for xiaomi.eu MIUI 12, Android 10:
call logs: /data/com.android.providers.contacts/databases
call recordings: /data/com.android.soundrecorder/databases (only database, recordings are located in media storage.

Note to future self:
don't ever wipe /system
don't wipe /data. Format it instead.
xiaomi.eu needs official MIUI to be installed prior flashing.