Xiaomi 14 pro encrypted even after bootloader unlocked


Ahaba

Members
7 Jan 2012
243
62
Hello to everyone, it is 8 month now that I use my Xiaomi 14 pro with unlocked bootloader, TWRP and Magisk installed. Beside that I didn't set any password on lock screen, it ask me when I enter in recovery, and because I don't know any code, I just cancel and of course, the sdcard is encrypted.
It didn't disturbed me too much until that Revolut wasn't working anymore. I wiped all data, I made a factory reset and re-installed TWRP on fastboot mode, but again it ask me the password to decrypt the sdcard. I cannot even plug on USB stick, the device doesn't see it.
I am stuck, I bought the phone in Hong Kong, Bootloader was unlocked remotely from technician, ROM installed is the last stable XIAOMI.EU, TWRP 28.1, how to do a very deep clean installation?
 
I ffed up my phone, after hours I at least have TWRP (14) running, (both a/b) but I when a want to install ANY shennong/dev rom. It gives me errors (sideload/otg/phone) but it doesnt say WHAT error.

Is above mentioned 'A15' twrp compatible with a Xiaomi 14 Pro? Mind you, I still cant install a rom.
 
Okay, any advice which ROM to install after?, without losing (images, dcim, whatsapp etc...)
I have downlaoded:
xiaomi.eu_SHENNONG_OS1.0.24.7.28.DEV_14.zip
xiaomi.eu_SHENNONG_OS1.0.24.5.6.DEV_14.zip
xiaomi.eu_SHENNONG_OS1.0.50.0.UNBCNXM_14.zip <- not tried yet.
 
I don't understand your thought process. I don't understand why you mention the dead branch DEV. ROM or such an old Stable ROM.
If you have xiaomi.eu ROM on your mobile, update via fastboot. And install the current ROM.
 
I don't like updating my phone, (if it ain't broken, don't fix it) its always a shitfest. I usually don't update... ever.
I was hoping to just reinstall existing twrp and existing rom. Currently installing the 2.0 rom. Fingers crossed.

But thank you for your help!
 
xiaomi.eu_SHENNONG_OS2.0.206.0.VNBCNXM_15.zip <- wont install (twrp & otg) after a second, Im back into twrp. So no installing happened. Perhaps try flashing via fastboot?
 
read again what I wrote
I did. Several times. Trust me, I'm trying!

"If you have xiaomi.eu ROM on your mobile, update via fastboot. And install the current ROM."

• I currently don't have a xiaomi.eu ROM on my phone.... or any rom. So what/how should I update then?
• "And install the current ROM"... I don't have a current rom on my phone?

I can only install a new/fitting rom?
 
And what ROM do you have on your phone when you say you want to UPDATE without losing data?
You can also install a new ROM without updating, but you will lose your data.
Installing with Fastboot:
  • Download Xiaomi.eu ROM zip file
  • Extract the ROM zip to a new folder
  • Power off your device
  • Boot your device in Fastboot mode (Hold volume down + power buttons)
  • Connect to PC via USB cable
  • Run one of the installation scripts (according to your PC operating system):
    - install_and_format_data - with data wipe, if you're flashing Xiaomi.eu ROM for the first time or downgrading.
    - install_upgrade - without data wipe, if you're updating from an older Xiaomi.eu ROM.
  • Done!
 
Okay, i'm back. Needed a bit of break. ;) Thank for your help. Again.

result of
adb shell ls /data/media/_ROM_Downloads --> is --> "xiaomi.eu_SHENNONG_OS1.0.24.5.6.DEV_14.zip"
(So before reinstalling twrp-3.7.1_14_A15-shennong-Kyuofox.img)

So I assume it was my latest rom before I ff'ed up. Then I have "xiaomi.eu_SHENNONG_OS2.0.206.0.VNBCNXM_15.zip" as a possible candidate for a new/updated rom.

I do not have a PC, but a macos with adb/fastboot., so I'm not sure how that work in fastboot commands and which arguments.
(did some googling, cant find it yet.)
 
OMG. It's clearly written. So you're using the MacOS script.
Simply follow the instructions above.
 
Btw,.... doesn't work. Can't log in to google on my updated phone:
So..., it sort of worked, but lost many apps (thats okay, i can reinstall, AND images and files are still present.) but I can NOT get any Google to work.

Trying to activate Google App account, (please sign in, confirm on other devices, (use either google, authenticator, sms, but no, bc it then stalls, like the info doesn't come back?) I empytied, (dalvik) caches, downgrade google app, did a reflash of both twrp, (I know twrp is not supported here, but for information) and reinstalled the rom again via fastboot via the upgrade shell found in the rom (on Mac here)
Its deffo in Google Play and/or perhaps in password storage?
 
Last edited:
Btw,.... doesn't work. Can't log in to google on my updated phone:
So..., it sort of worked, but lost many apps (thats okay, i can reinstall, AND images and files are still present.) but I can NOT get any Google to work.

Trying to activate Google App account, (please sign in, confirm on other devices, (use either google, authenticator, sms, but no, bc it then stalls, like the info doesn't come back?) I empytied, (dalvik) caches, downgrade google app, did a reflash of both twrp, (I know twrp is not supported here, but for information) and reinstalled the rom again via fastboot via the upgrade shell found in the rom (on Mac here)
Its deffo in Google Play and/or perhaps in password storage?
So.....
you are on Mac OS, right?
from which ROM are you coming from?

if you come from anything else, be it stock MIUI/HyperOS or any other custom ROM like LineageOS and whatever else exists, if you install the Xiaomi.EU ROM for the FIRST TIME, (also relevant for any other ROM)
run the file macos_install_and_format_data.sh

i am going to write this in capslock and in bold text, PLEASE BACK UP YOUR FILES BEFORE DOING THAT YOU WILL LOSE YOUR FILES IN A CLEAN FLASH SO BACKUP THE FILES, the install and format data script is deleting all your pictures, videos, files etc because you need to do a clean install when coming from a different ROM, since it to format data partition to not have issues in the long run (which probably explains your bootlooping if you get any).
once its installed, for future updates you can just flash the zip in TWRP or running the macos_install_upgrade.sh on your Mac Device.
 
So.....
you are on Mac OS, right?
from which ROM are you coming from?

if you come from anything else, be it stock MIUI/HyperOS or any other custom ROM like LineageOS and whatever else exists, if you install the Xiaomi.EU ROM for the FIRST TIME, (also relevant for any other ROM)
run the file macos_install_and_format_data.sh

i am going to write this in capslock and in bold text, PLEASE BACK UP YOUR FILES BEFORE DOING THAT YOU WILL LOSE YOUR FILES IN A CLEAN FLASH SO BACKUP THE FILES, the install and format data script is deleting all your pictures, videos, files etc because you need to do a clean install when coming from a different ROM, since it to format data partition to not have issues in the long run (which probably explains your bootlooping if you get any).
once its installed, for future updates you can just flash the zip in TWRP or running the macos_install_upgrade.sh on your Mac Device.
At this point, my phone works, EXCEPT logging into Google. After 1/2(?) weeks of desperately trying I realize I need a clean install. (FML, I didn't want this ff update to begin with.) Now HOW do I backup my Whatsapp, Photos etc, as I can NOT use google. In the early days I could backup/migrate the latest LOCAL WhatsApp database, but now its all pointing to Google... Main prios: whatsapp backup, and ALL images files (DCIM folder, Pictures folder, Snapseed etc.)
(Perhaps ADB pull/ push and then only relevant folders?)

Perhaps a referral to another topic is needed? ... Stupid thing is, I only need Google to work, like the earlydays flashing a gapp would work. *Sigh*
 
Last edited:
Have you tried just running the upgrade script via Fastboot? Even if there is no actual upgrade, it should rewrite (fix) the vital partitions while leaving your data untouched.
Remember to reflash TWRP (A15 variant by kyuofox), as it will be overwritten with stock recovery during update.
 
At this point, my phone works, EXCEPT logging into Google. After 1/2(?) weeks of desperately trying I realize I need a clean install. (FML, I didn't want this ff update to begin with.) Now HOW do I backup my Whatsapp, Photos etc, as I can NOT use google. In the early days I could backup/migrate the latest LOCAL WhatsApp database, but now its all pointing to Google... Main prios: whatsapp backup, and ALL images files (DCIM folder, Pictures folder, Snapseed etc.)
(Perhaps ADB pull/ push and then only relevant folders?)

Perhaps a referral to another topic is needed? ... Stupid thing is, I only need Google to work, like the earlydays flashing a gapp would work. *Sigh*
I still dont know which ROM you come from, have you been on xiaomi.eu the whole time?
 
I still dont know which ROM you come from, have you been on xiaomi.eu the whole time?
I have a hard time finding the rom before update, (lost some files) but I bought it like this:
• Xiaomi 14 Pro - 16GB/1TB - Snapdragon 8 Gen 3 - Firmware : Firmware: Xiaomi.eu (already flashed) - Unlocked.
(I'm still looking for the ROM (I usually store them), but it was pre HyperOS for sure, I'm pretty sure it was EU - MIUI 13.)
EDIT: FOUND IT? --> xiaomi.eu_SHENNONG_OS1.0.24.5.6.DEV_14

Then I
- used the macos_install_upgrade file (via fastboot) in the zip of xiaomi.eu_SHENNONG_OS2.0.206.0.VNBCNXM_15 via the Terminal (on Mac)
- reflashed TWRP - twrp-3.7.1_14-Xiaomi_14_Pro-A15-shennong.img, to make sure it 'stays' after the upgrade.

Need more info, pleas ask.

(Additional info about the Google account issue: on the Pro14: please enter email&pass, then confirm on your (old) phone (Pro13), 'ping' is received on my 13, so I acknowledge on the 13, the 'pingback' is received on the 14, but then it doesn't 'store' the actual feedback or something, but the 'pings' are received both ways. It's so weird.)
 
Last edited:
I have a hard time finding the rom before update, (lost some files) but I bought it like this:
• Xiaomi 14 Pro - 16GB/1TB - Snapdragon 8 Gen 3 - Firmware : Firmware: Xiaomi.eu (already flashed) - Unlocked.
(I'm still looking for the ROM (I usually store them), but it was pre HyperOS for sure, I'm pretty sure it was EU - MIUI 13.)
EDIT: FOUND IT? --> xiaomi.eu_SHENNONG_OS1.0.24.5.6.DEV_14

Then I
- used the macos_install_upgrade file (via fastboot) in the zip of xiaomi.eu_SHENNONG_OS2.0.206.0.VNBCNXM_15 via the Terminal (on Mac)
- reflashed TWRP - twrp-3.7.1_14-Xiaomi_14_Pro-A15-shennong.img, to make sure it 'stays' after the upgrade.

Need more info?
oh.. got all the info for now.
you went from xiaomi.eu_SHENNONG_OS1.0.24.5.6.DEV_14 (Weekly Dev rom and also kind of unstable due to the cutting edge features) to the latest stable version xiaomi.eu_SHENNONG_OS2.0.206.0.VNBCNXM_15.
there was the time when you couldnt go from DEV to stable until the Weekly dev roms ended and xiaomi made it possible to go over to stable.

Sadly the first roms for xiaomi 14/14 pro and Ultra were weekly roms first before stable came out.

Unfortunately knowing that, it would be probably easier to start with clean flash when having your files all backed up.
You can copy over every folder to your PC or Mac.
You can also root your phone and use the app SwiftBackup to backup your apps (not all apps perfectly restore though, especially banking apps but for an example with WhatsApp its super easy) and move that to PC/Mac.

the TWRP you can use afterwards is the Kyuofox TWRP since that can decrypt your files in TWRP recovery
 
oh.. got all the info for now.
you went from xiaomi.eu_SHENNONG_OS1.0.24.5.6.DEV_14 (Weekly Dev rom and also kind of unstable due to the cutting edge features) to the latest stable version xiaomi.eu_SHENNONG_OS2.0.206.0.VNBCNXM_15.
there was the time when you couldnt go from DEV to stable until the Weekly dev roms ended and xiaomi made it possible to go over to stable.

Sadly the first roms for xiaomi 14/14 pro and Ultra were weekly roms first before stable came out.

Unfortunately knowing that, it would be probably easier to start with clean flash when having your files all backed up.
You can copy over every folder to your PC or Mac.
You can also root your phone and use the app SwiftBackup to backup your apps (not all apps perfectly restore though, especially banking apps but for an example with WhatsApp its super easy) and move that to PC/Mac.

the TWRP you can use afterwards is the Kyuofox TWRP since that can decrypt your files in TWRP recovery
Thank you VERY much for you response. I will look into salvaging my files (images) and Whatsapp, for the rest of my apps/files, I don't care so much, but my images (and correct timestamps are very important to me (I have memory issues, and images are my reminders) and Whatsapp for the same reason. The rest is webbased anyway.

Btw, I cant install SwiftBackup, bc I would need Google account, I will look for a proper apk.

Thank you again.

EDIT:
Found an SwiftBackup APK via a website, and installed that;
• Lovely: I want to buy premium, but to be able, Google needed.
• I cant use ANY cloud storage (I have dopbox, mega etc), bc they rely on Google log-ins?
• Local storage seems to work, so after backing up WA, (then pull to Macbook) I hope I can restore (after a push to phone)

EDIT2:
• Lost root access (I think with the upgrade script, it just keeps getting better, yay.)
 
Last edited:
Thank you VERY much for you response. I will look into salvaging my files (images) and Whatsapp, for the rest of my apps/files, I don't care so much, but my images (and correct timestamps are very important to me (I have memory issues, and images are my reminders) and Whatsapp for the same reason. The rest is webbased anyway.

Btw, I cant install SwiftBackup, bc I would need Google account, I will look for a proper apk.

Thank you again.

EDIT:
Found an SwiftBackup APK via a website, and installed that;
• Lovely: I want to buy premium, but to be able, Google needed.
• I cant use ANY cloud storage (I have dopbox, mega etc), bc they rely on Google log-ins?
• Local storage seems to work, so after backing up WA, (then pull to Macbook) I hope I can restore (after a push to phone)

EDIT2:
• Lost root access (I think with the upgrade script, it just keeps getting better, yay.)
download magisk.apk and boot into twrp and install root that way
 
download magisk.apk and boot into twrp and install root that way
I tried to do that, but i cant get into the folder where I stored it, and the folders that are accessible in twrp, arent accesible in the file managers.

So I tried to push to twrp accessible folders, I get that the folder doesn't exist, (nut the shell list commands shows the folder fine)
sequoia@Sequoias-MacBook-Pro ~ % adb shell ls data/media/_ROM_Downloads

gives some results, i would like to push files there (previously possible), but now i get:
adb push data/media/_ROM_Downloads /Users/sequoia/Downloads/Magisk-v29.0.zip adb: error: cannot stat 'data/media/_ROM_Downloads': No such file or directory

I have magisk manager installed, but now I have to patch it? With what? If I try the Magisk-v29.0.zip file it fails.

The reason I want adb pull to work is to backup my phone files to my mac, so i can restore them later. Or is there a better way?
 
Last edited: