TWRP / Orangefox recovery for Redmi Note 9 Pro (Joyeuse)


gogocar62

Members
Apr 22, 2021
1,865
297
Yes if the ROM name has the word fastboot. If it does not contain the word fastboot, it is a recovery ROM that is installed in TWRP or OrangeFox.
 
Last edited:

baxalo

Members
Nov 7, 2021
7
15
Install it using windows_fastboot_update_rom.bat without any problem.
after that i install new orangefox which work great too..
all seems work well since now..
 

sir_bazz

Members
Jun 18, 2020
138
40
Install it using windows_fastboot_update_rom.bat without any problem.
after that i install new orangefox which work great too..
all seems work well since now..
The .bat file does a format though like previous fastboot files right?
I suspect this one will need to as well in order to update to fbev2, so was wondering if there's any strong reason to update.
 

baxalo

Members
Nov 7, 2021
7
15
there is two .bat files. One just update without format and another for clean install which format data.
I use just to update the rom. since now i have no problem.
 
  • Like
Reactions: sir_bazz

silasHunter

Members
Sep 4, 2022
1
3
****** and Share-it apps cannot create Hotspot connection for file transfer
MIUI 13 for joyeuse

Sent from my Redmi Note 9 Pro using Tapatalk
 

crok.bic

Members
Sep 12, 2017
196
40
TWRP 3.7 for MIUI 13 - miatoll:
Tested: flashed this rom: https://xiaomifirmwareupdater.com/miui/joyeuse/stable/V13.0.1.0.SJZMIXM/
And Decrypted it
Thank you. Is the source is open?
I have this problem with OrangeFox - guess you solved it? I hope..!
Edit: nope, it fails exactly the same way..

copying '/data/misc/keystore/persistent.sqlite' to '/tmp/misc/keystore/persistent.sqlite'
I:Is encrypted, do decrypt page first
I:Switching packages (TWRP)
I:Set page: 'decrypt'
I:Set page: 'decrypt_pattern'
I:Set page: 'trydecrypt'
I:eek:peration_start: 'Decrypt'
Attempting to decrypt FBE for user 0...
Attempting to decrypt user
Handle is 'cc82fab6864eaaac'
password type: pattern
Using synthetic password method
Attempting to decrypt user's synthetic password
fscrypt::GetPassword_Token
Is_Weaver
using secdis to decrypt spblob
Attempting to unwrap synthetic password blob
spblob v2 / v3
Attempting to unlock user storage
I:recv error on uevent
Attempting to prepare user storage
failed to fscrypt_prepare_user_storage
Free_Return
Failed to decrypt user 0

Full log attached.

I don't know whether it's important or not but /metadata/vold/metadata_encryption is empty for me..
 

Attachments

  • recovery.log.zip
    7.8 KB · Views: 27
Last edited:
  • Like
Reactions: dungphp

dungphp

Members
Jan 19, 2011
11
15
Thank you. Is the source is open?
I have this problem with OrangeFox - guess you solved it? I hope..!
Edit: nope, it fails exactly the same way..

copying '/data/misc/keystore/persistent.sqlite' to '/tmp/misc/keystore/persistent.sqlite'
I:Is encrypted, do decrypt page first
I:Switching packages (TWRP)
I:Set page: 'decrypt'
I:Set page: 'decrypt_pattern'
I:Set page: 'trydecrypt'
I:eek:peration_start: 'Decrypt'
Attempting to decrypt FBE for user 0...
Attempting to decrypt user
Handle is 'cc82fab6864eaaac'
password type: pattern
Using synthetic password method
Attempting to decrypt user's synthetic password
fscrypt::GetPassword_Token
Is_Weaver
using secdis to decrypt spblob
Attempting to unwrap synthetic password blob
spblob v2 / v3
Attempting to unlock user storage
I:recv error on uevent
Attempting to prepare user storage
failed to fscrypt_prepare_user_storage
Free_Return
Failed to decrypt user 0

Full log attached.

I don't know whether it's important or not but /metadata/vold/metadata_encryption is empty for me..
OFOX 12.1 or my TWRP 12.1 only for Android 12.1 and 13, not 11
I will try with your log
 
  • Like
Reactions: crok.bic

crok.bic

Members
Sep 12, 2017
196
40
OFOX 12.1 or my TWRP 12.1 only for Android 12.1 and 13, not 11
I will try with your log
Thank you for your time and effort to look into this.
I'm using the Xiaomi.EU Android 12 MIUI V13.0.1.0.SJZMIXM for my Joyeuse.
The interesting (to me) is the fact that the log says that metadata decryption failed - even though there aren't any files in /metadata/vold/metadata_encryption and still the ROM works just fine. For an experiment.. I formated the whole /metadata (I made a backup, just in case..) and rebooted the ROM: works fine. Rebooted to ROM: still saying metadata decryption failed (and thus decrypt of user 0 failed..). But I'm not sure whether the Xiaomi.EU (and the official MIUI) is using metadata anyway (since -as I mentioned- the directory for me is empty and nothing has been generated in that directory after I formated it). Hope this helps you for further investigation.:emoji_thumbsup:I would really love to see a solution for this and I can provide logs and even debugs if you share a debug build. Thanks!
 
  • Like
Reactions: dungphp

dungphp

Members
Jan 19, 2011
11
15
Thank you for your time and effort to look into this.
I'm using the Xiaomi.EU Android 12 MIUI V13.0.1.0.SJZMIXM for my Joyeuse.
The interesting (to me) is the fact that the log says that metadata decryption failed - even though there aren't any files in /metadata/vold/metadata_encryption and still the ROM works just fine. For an experiment.. I formated the whole /metadata (I made a backup, just in case..) and rebooted the ROM: works fine. Rebooted to ROM: still saying metadata decryption failed (and thus decrypt of user 0 failed..). But I'm not sure whether the Xiaomi.EU (and the official MIUI) is using metadata anyway (since -as I mentioned- the directory for me is empty and nothing has been generated in that directory after I formated it). Hope this helps you for further investigation.:emoji_thumbsup:I would really love to see a solution for this and I can provide logs and even debugs if you share a debug build. Thanks!
Can you give me the link of Xiaomi.EU Android 12 MIUI V13.0.1.0.SJZMIXM recovery ? I just tried Xiaomi's fastboot. Thanks
Edit:
I just flashed (fastboot) MIUI V13.0.1.0.SJZMIXM on my device with format data and after installing it still went to TWRP normally, TWRP decrypted the rom just fine. Chances are that you upgrade from Android 11 to 12, so the data has some problem without decrypted the data.
 
Last edited:
  • Like
Reactions: crok.bic

crok.bic

Members
Sep 12, 2017
196
40
Can you give me the link of Xiaomi.EU Android 12 MIUI V13.0.1.0.SJZMIXM recovery ? I just tried Xiaomi's fastboot. Thanks
Edit:
I just flashed (fastboot) MIUI V13.0.1.0.SJZMIXM on my device with format data and after installing it still went to TWRP normally, TWRP decrypted the rom just fine. Chances are that you upgrade from Android 11 to 12, so the data has some problem without decrypted the data.
Indeed I started with an Android 11 build, one of the first Xiaomi.EU builds and upgraded from build to build to the latest one and yes, indeed at the very moment my /data has the same data as before (I will explain why I emphasise this). But! When I formated /data for testing and started the phone from scratch yes, it was fine in OrangeFox, too! Then when I set a PIN or pattern for screenlock (for reference) since I'm using fingerprint sensor to unlock the phone then it's the same: TWRP and OFox says decrypt unsuccessful BUT I still can browse files on my internal storage and I can see everything in /data, too. Weird! I already formatted the phone and tried to set PIN / pattern from scratch (for reference) but it's really the same.. no joy.. can you please set a PIN / pattern and try again? Without PIN / pattern it works without error message && with PIN / pattern it seemingly decrypts user data, too, but with the infamous error message... Weird!
 
  • Like
Reactions: dungphp

dungphp

Members
Jan 19, 2011
11
15
Indeed I started with an Android 11 build, one of the first Xiaomi.EU builds and upgraded from build to build to the latest one and yes, indeed at the very moment my /data has the same data as before (I will explain why I emphasise this). But! When I formated /data for testing and started the phone from scratch yes, it was fine in OrangeFox, too! Then when I set a PIN or pattern for screenlock (for reference) since I'm using fingerprint sensor to unlock the phone then it's the same: TWRP and OFox says decrypt unsuccessful BUT I still can browse files on my internal storage and I can see everything in /data, too. Weird! I already formatted the phone and tried to set PIN / pattern from scratch (for reference) but it's really the same.. no joy.. can you please set a PIN / pattern and try again? Without PIN / pattern it works without error message && with PIN / pattern it seemingly decrypts user data, too, but with the infamous error message... Weird!
Please test this recovery: https://my.opendesktop.org/s/agNbDopjmrcWoB3
For Android 11 only !
 
  • Like
Reactions: crok.bic

crok.bic

Members
Sep 12, 2017
196
40
Please test this recovery: https://my.opendesktop.org/s/agNbDopjmrcWoB3
For Android 11 only !
Hi. As I mentioned the actual unit in my hands is running on Xiaomi.EU V13.0.1.0 which is Android 12 and unfortunately I can't check it on Android 11 at the moment. Never the less I tried the TWRP build you posted with the ROM this phone runs on and it does not work, not even asking for PIN / pattern and of course filenames and dirnames on /data remains garbled. (Log attached, just in case).
 

Attachments

  • recovery_for_TWRP-miatoll-Android11-v3.7-10102022.log.txt
    36.9 KB · Views: 37
  • Like
Reactions: dungphp

rbarat

Members
Apr 17, 2019
399
67
I added information about the latest versions of both ROM and TWRP/Orange recovery to the first post at the beginning.
 
  • Like
Reactions: crok.bic