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


rbarat

Members
Apr 17, 2019
349
67
Edit July 29, 2021:
- As the latest versions of the local ROM are already based on Android 11, the old versions of TWRP recovery as well as the old installation instructions no longer work.
- Only the latest Orangefox 11.1 recovery is fully functional with Android 11
- Therefore recommend everyone to switch from any TWRP to Orangefox 11.1
- Latest MIUI.EU ROM is 12.0.4.0, it is based on Android 11
- New users, install Orangefox recovery and ROM according to this manual in czech language (use google translator). You must be logged in to the site to view images.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Available Android 11 recoveries for Redmi Note 9 Pro:

Orangefox recovery 11.1 -> This is currently the best and latest fully functional recovery for Joyeuse.
Orangefox.jpg

-> Required for the latest ROM versions based on Android 11
-> Latest version: OrangeFox-miatoll-stable@R11.1_1.zip from July 24, 2021
-> Download OrangeFox-miatoll-stable@R11.1_1.zip

How to install:
a) If you already have TWRP recovery, just install ZIP file from TWRP
b) if you have original recovery in the phone, use the following instructions

- unlock bootloader - here are step by step instructions in Czech language (for translate to EN use google translator)
- use Tastboot toolkit, see following instructions

- Unzip the downloaded toolkit from the archive and insert the toolkit folder directly into the root of the system disk, add recovery to this folder, if recovery has a different name, rename it to twrp (if the downloaded recovery is also archived, unzip it to get .img file)
38070


- Turn on the phone in FASTBOOT mode (start phone by holding together Power and Vvolume- keys) and connect it to the PC (in the Device Manager verify whether you have the appropriate driver for Fastboot mode - Android Bootloader
38071

- Run it in the toolkit directory "instalace twrp windows"
38072


- Press any key (e.g. Enter) in the next black window
38073


- Will appears this window:
38074

- If it is written there "Instalace probehla uspesne", the installation was successful
- Now Disconnect the cable from the phone
- Launch the phone by simultaneously pressing and holding the Power and Volume + buttons
- Phone will start to new revovery
38075

- done


------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Edit April 17, 2021:
twrp352s.jpg

TWRP 3.5.2_10-0 for Joyeuse build by dungphp

Latest version:
TWRP-miatoll-v3.5.2-17042021.zip from Apr 17, 2021
-> Download install ZIP file -> install it from old TWRP
-> Unfortunately, I've found that it doesn't work quite well with Android 11-based ROMs. That's why I recommend Orangefox 11.1, which fully works.

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PitchBlack.jpg

PitchBlack recovery for Joyeuse build by dungphp
-> Latest version PitchBlack-miatoll-v3.117042021-12.59.14.zip from Apr 17, 2021
> Download

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The informations in spoiler below was valid at the time of the Android 10-based ROM.
If you are going to install latest local MIUI.EU ROM based on Android 11, follow instrutions at the beginning of this first post.

Edit November 12, 2020:
TWRP 3.4.0-14 by mauronofrio (developer working with official TeamWin Recovery Project)
-> Author's XDA pages
-> multilanguage
-> universal version usable for models Redmi Note 9S, Redmi Note 9 Pro, Redmi Note 9 Pro Max and Pocophone M2 Pro (Curtana, Joyeuse, Excalibur, Gram)
TWRP3.jpgTWRP3.4.0-14.png
Mauronofrio's TWRP download folder: https://sourceforge.net/projects/mauronofrio-twrp/files/Curtana-Joyeuse-Gram-Excalibur/
For Joyeuse download latest file for Curtana
It works well for me

Installation instructions for a new phone:
- Install from old TWRP -> Install / Install IMG / select IMG file TWRP / select Recovery partition / Swipe to confirm
- Restart to Recovery

or

-use instructions from Author's XDA pages



------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Edit October 23, 2020:
LR.TWRP 3.4.1B 0530 by russian
pages1 and pages2
-> made by modifying LR.TWRP for Redmi 9S
-> english /russain languages
-> multilanguage made from en/ru version by Cuvetto
twrp small.jpgLR.TWRP-0530.png


Note:
Redmi Note 9 Pro uses two type of displays (Huaxing, Tianma), on Tianma display the "Swipe to unlock" button does not work after the display goes out. The solution is to turn off the "Enable screen timeout" option in TWRP Settings.

Detailed installation instructions for a new phone:

a) by using IMG file - here instructions in czech language (use Google translator) -> you have to log in there to see pictures
Download IMG files:
a) EN/RU version
b) EN/RU version
c) multilanguage version - made by Cuvetto from en/ru version (the code should be the same)

b) by first type automatic installer, using an EXE program in Windows
TWRP.jpg

Download autoinstall EXE:
a) https://uloz.to/file/qidj7XRHX6wm/joyeuse-twrp3-4-1b-autoinstall-exe
b) http://www.mediafire.com/file/huff14m4s8lbbz4/joyeuse-twrp3-4-1b-autoinstall-.exe/file

Instructions for install Twrp with automatic installer:
0 -Back up all your data (photos, videos, files, etc.), the whole phone will be deleted
1 - The phone must have the Bootloader unlocked
2 -You need to have drivers installed (you probably already have them when you unlocked Recovery - they are packed in a ZIP)
3 -Restart the phone to Fastboot mode (turn on the phone by holding down Vol- and Power), this picture will appear on the phone
Bootloader.jpg

4 -Run the file "joyeuse_TWRP3.4.1B_autoinstall.exe" on your PC
5 -Now connect the phone to the PC and click on "Установить"
6 -Installation will take place, a black text window will open where you have to press Enter several times
7 -Close the program window on the PC by clicking on "Bыход "
8 -After installation, hold down the Power button to turn off the phone from Fastboot mode
9 -Turn on phone by pressing at the same time Power and Volume+ buttons, until phone will vibrates, then release the buttons.
10 -When the TWRP starts up for the first time, you need to immediately click on the language setting button and select English
11 -Then setup your TWRP, time zone, etc.


c) by second type automatic installer, using an EXE program in Windows

Download second type automatic installer:
a)
EN/RU
b) EN/RU

Installation instructions:
- Extract ZIP file
- Switch the phone to Fastboot mode
- Connect your phone to your computer
- Run flash_twrp.bat from the extracted ZIP file and click Enter 3 times in the black window
- Switch off / restart the phone after installation

Or, if you want install new TWRP prom old TWRP, unpack ZIP file, remove file twrp.img and install it as IMG file to Recovery partiton.


Follows the ROM installation:
12 -Download latest recovery version MIUI ROM 12.0.1.0 based on Android 11 or MIUI ROM 12.0.3.0 based on Android 10
13 -In TWRP click on Wipe, then on Format Data -> type "yes" (this will decrypt the phone)
14 -Now you need to restart the phone to TWRP (in TWRP click on the Reboot button, then click on the Recovery button) !!! ( important, otherwise it will not work)
15 -In TWRP, connect the phone to the PC and copy the ROM to Internal storage
16 -Install ROM (In TWRP click on Install and select ZIP from storage)
17 -Restart to System

Optional Magisk (Root) Installation
18 -Magisk 21.1 a Magisk manager 8.0.3 or newer here https://github.com/topjohnwu/Magisk/releases

Recommendation, how to Backup/Restore ROM in TWRP:
- just back up Data and EFS partitions.
- when restoring, first install the ROM from ZIP and then restore the backup of Data and EFS partitions
- you will get the same phone state as after the backup

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Google Pay payments
My mobile payments with local MIUI.EU ROM works well, if anyone has a problem, try use the following Magisk module.

New Safetynetfix module
safetynet-fix-v1.1.1.zip and safetynet-fix-v1.2.0.zip can be found here: https://github.com/kdrag0n/safetynet-fix/releases

Installation similar to the older instructions for module MagiskHide Props Config v5.4.0:
- install the module via Magisk and follow tutorial. Easy and short:
- open any commandline app for android, in my case I used termux
- after installing open termux
- type "su" to grant root permissions
- that type "props"

The following menu will show:
Screenshot_2020-08-17-13-37-21-423_com.termux.jpg
- choose option "2", to enable force basic key attestation.

Screenshot_2020-08-17-13-39-52-082_com.termux.jpg
- confirm your Phone Model by typing "y"
- restart the phone by selecting "y"and restart

You are ready to go.
Screenshot_2020-08-17-13-31-23-922_com.androidfung.drminfo.jpgScreenshot_2020-08-17-13-30-02-725_com.amxo.h5.Xs3f.RHr.jpg




--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
You can also use the second method to enable Google Payments:
- from Fastboot version of Global ROM 12.0.2.0 or EEA 12.0.2.0 separate the Persist.img file and install it in TWRP to the Persist partition
- The phone must now be restarted
- This needs to be done before attempting to set up a bank card in the Google Pay application
- After rewriting the Persist partition, you will probably lose the L1 Widevine certificate, but this can be easily corrected by next procedure

How to install the missing L1 certificate:
- works from ROM 11.0.7
- go to Settings - Passwords & Security - Fingerprint Unlock - Fingerprint Payments - Widevine L1 - Download Certificate
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 
Last edited:

rbarat

Members
Apr 17, 2019
349
67
Yes, works. It is necessary to install ROM exactly according to the instructions (Format Data is necessary)
 
Last edited:
  • Like
Reactions: surfwolle

szekelyelek

Members
Jan 9, 2016
59
20
the autoinstall program must be run first. Then install the fixed image in TWRP. Then dalwik and format. Then reboot recovery and install ROM...

And work well realy
 

rbarat

Members
Apr 17, 2019
349
67
If you install TWRP by using autoinstall.exe, there is not necessary to install IMG file. It's the same TWRP.
 

szekelyelek

Members
Jan 9, 2016
59
20
After autoinstall, the installation of the ROM stopped with an error message. Then after installing the fixed img, everything is OK...
 

rbarat

Members
Apr 17, 2019
349
67
Really? Thanks for info. I forgot write one step in installation instructions. Sorry.

I just modified installation instructions in the first post.Added one new line. After delete Data partition is necessary to reboot TWRP! ROM can only be installed after this restart.
 
Last edited:

Acid

Scripting Ninja
Staff member
Aug 20, 2011
2,728
247
Why its only 41 MB?
The other we tried and all other latest twrp have over 130 MB.
 

Acid

Scripting Ninja
Staff member
Aug 20, 2011
2,728
247
How? I get System destroyed when flashing this 41 MB recovery.
When flashing 130 MB pitch black by DUNGPHP it works and can flash rom but after that it cant decrypt data.
 

rbarat

Members
Apr 17, 2019
349
67
Just follow the instructions in the first post exactly!!!
You also decrypt the Data partition.
 
Last edited:

rbarat

Members
Apr 17, 2019
349
67
Does the TWRP decrypt data correctly?
There is written in instrucions in first post:
-Erase Data, Cache, Dalvik and Format Data partition

It will reformat the Data partition, you will lose all data.
 
Last edited:

szekelyelek

Members
Jan 9, 2016
59
20
I don't know. I never used these functions, only install.

Tapatalkkal küldve az én Redmi Note 9 Pro eszközömről
 

rbarat

Members
Apr 17, 2019
349
67
So, I unlocked next new phone (finally the period of 168 hours had passed) and installed TWRP + ROM exactly according to the instructions in the first post and everything went smoothly. I have slightly improved the instructions to make them clearer.

If you do it exactly according to the instructions, I guarantee functionality!
 
Last edited: