[OFFICIAL][NITROGEN] TWRP 3.2.X for Xiaomi Mi Max 3

kenzolo

Senior Member
Jun 14, 2012
1,471
3,052
153
Rome
This install never seems to stick. If I flash it and then manually reboot to recovery holding vol up and power TWRP comes up ok. But after that if I reboot again it keep disappearing and going back to the stock recovery.
just go to /system and rename the file " recovery-from-boot.p" to " bkp.recovery-from-boot.p "
 

babay911

Member
Mar 27, 2016
10
1
0
Try to format the date section in the cleanup and write,, yes" . Then do a reboot from recovery to recovery and sew other firmware .

---------- Post added at 02:05 PM ---------- Previous post was at 02:03 PM ----------

Hello. How do I solve this TWRP encryption problem? If that has no solution, then I bricked the phone. I'm grateful for the help.
Try to format the date section in the cleanup and write,, yes" . Then do a reboot from recovery to recovery and sew other firmware .
 
Last edited:

Germano1980

Senior Member
Aug 1, 2015
159
38
0
São Paulo
Try to format the date section in the cleanup and write,, yes" . Then do a reboot from recovery to recovery and sew other firmware .

---------- Post added at 02:05 PM ---------- Previous post was at 02:03 PM ----------



Try to format the date section in the cleanup and write,, yes" . Then do a reboot from recovery to recovery and sew other firmware .
Thanks for answering. This will not work, because after I installed TWRP, I made a backup of the original ROM and then installed the magisk. So I turned the phone back on and several apps stopped working, like Gmail, for example. So I went back to TWRP and tried to restore the backup, but it erased everything from internal memory and does not restore the backup by being encrypted. If that has no solution, I blew the phone. Any suggestions are welcome. Thanks again.
 

babay911

Member
Mar 27, 2016
10
1
0
Thanks for answering. This will not work, because after I installed TWRP, I made a backup of the original ROM and then installed the magisk. So I turned the phone back on and several apps stopped working, like Gmail, for example. So I went back to TWRP and tried to restore the backup, but it erased everything from internal memory and does not restore the backup by being encrypted. If that has no solution, I blew the phone. Any suggestions are welcome. Thanks again.
formatting the date section is the decoding of the date section . then you need to sew a new firmware . preferably localized . before the firmware, you can still make all the VIPs ,mount all the items , make a reboot from the recovery to the recovery . I pierced your Mi 3 Max . and your phone is unlocked and TWRP sees . good luck !
 
  • Like
Reactions: Germano1980

Germano1980

Senior Member
Aug 1, 2015
159
38
0
São Paulo
formatting the date section is the decoding of the date section . then you need to sew a new firmware . preferably localized . before the firmware, you can still make all the VIPs ,mount all the items , make a reboot from the recovery to the recovery . I pierced your Mi 3 Max . and your phone is unlocked and TWRP sees . good luck !
I did what you indicated, but it did not work. I had to install via Miflash tool, but it was the Chinese version. Now I need the global to be all right. Thank you again.
 

Germano1980

Senior Member
Aug 1, 2015
159
38
0
São Paulo
Can anyone tell me why I can not install any roms from TWRP? I managed to install the Chinese version via Miflash and when I try to install by TWRP, the information that installed successfully appears, but it is loading on the boot screen and it does not go away. I clean the data, I mount the partitions, but none of this works. Or does the boot take more than 20 minutes? Thank you.
 

Apo11on

Senior Member
Sep 5, 2008
1,659
332
113
San Diego, CA
Cannot boot into TWRP after successful install. Tried re-flashing TWRP twice:

E:\Xiaomi Mi Max 3\>fastboot flash recovery twrp-3.2.3-0-nitrogen.img
target reported max download size of 536870912 bytes
sending 'recovery' (61128 KB)...
OKAY [ 1.324s]
writing 'recovery'...
OKAY [ 0.002s]
finished. total time: 1.328s

If I power off and use Vol UP + Power it boots into stock recovery. If I boot into android, open CMD and do "adb reboot receovery" it also boots into stock recovery. Any advice? :confused::confused::confused:

---------- Post added at 05:52 PM ---------- Previous post was at 05:27 PM ----------

Cannot boot into TWRP after successful install. Tried re-flashing TWRP twice:

E:\Xiaomi Mi Max 3\>fastboot flash recovery twrp-3.2.3-0-nitrogen.img
target reported max download size of 536870912 bytes
sending 'recovery' (61128 KB)...
OKAY [ 1.324s]
writing 'recovery'...
OKAY [ 0.002s]
finished. total time: 1.328s

If I power off and use Vol UP + Power it boots into stock recovery. If I boot into android, open CMD and do "adb reboot receovery" it also boots into stock recovery. Any advice? :confused::confused::confused:
Asked & answered. From official TWRP site:

Note many devices will replace your custom recovery automatically during first boot. To prevent this, use Google to find the proper key combo to enter recovery. After typing fastboot reboot, hold the key combo and boot to TWRP. Once TWRP is booted, TWRP will patch the stock ROM to prevent the stock ROM from replacing TWRP. If you don't follow this step, you will have to repeat the install.


Had to press Vol UP + Power when rebooting from fastboot, fresh after TWRP installation.
 
  • Like
Reactions: micbanand

mierlo420

Senior Member
Apr 1, 2017
114
27
28
Hello,
I want to root my device.
I am on global stable 9.6.7.0. Does Magisk work properly with this rom?
And what are the correct steps? Do i need to format data and flash no-verity-opt-encrypt.zip before flashing Magisk?
 
Last edited:

totalz

Senior Member
Jan 28, 2011
176
7
0
You might have your internal storage encrypted. Try this first. Download the official twrp app and install twrp image and flash twrp directly from there. Then, reboot to recovery. Then, test your reboot to recovery a second time. If the problem persists you'll need to start from scratch with this:

Installation Instructions:
- Make sure your bootloader is unlocked!
- Boot to fastboot mode
- Format your data to make sure that the installation will be clear using the command: fastboot format userdata
- Flash TWRP Recovery
- Boot to TWRP recovery
- Mount all the possible partitions
- Wipe your data,cache,Internal storage,dalvik DONT WIPE SYSTEM OR YOU WILL BRICK YOUR DEVICE
- Using MTP or OTG copy the xiaomi.eu rom to your device
- Flash the Xiaomi.eu rom
- Wipe cache and dalvik
- Reboot
I'm stuck on 'Boot to TWRP recovery', i've done that by
Code:
>fastboot boot twrp-3.2.3-0-nitrogen.img
downloading 'boot.img'...
OKAY [  8.293s]
booting...
OKAY [  0.076s]
finished. total time: 8.371s
but the device boot to a blank screen!
Retried a few times following the official instructions, also by doing fastboot reboot, and hold pwr+vol-up, no luck, stuck on MI logo...

Here's the getvar:
Code:
(bootloader) DP:0x0
(bootloader) token:V...4=
(bootloader) crc:1
(bootloader) cpuid:0x8xxxxxxx
(bootloader) board_version:4.19.0
(bootloader) unlocked:yes
(bootloader) off-mode-charge:1
(bootloader) charger-screen-enabled:1
(bootloader) battery-soc-ok:yes
(bootloader) battery-voltage:3905
(bootloader) version-baseband:
(bootloader) version-bootloader:
(bootloader) variant:SDM EMMC
(bootloader) partition-type:cache:ext4
(bootloader) partition-size:cache: 0x10000000
(bootloader) partition-type:userdata:ext4
(bootloader) partition-size:userdata: 0xC7F7FBE00
(bootloader) partition-type:system:ext4
(bootloader) partition-size:system: 0xC0000000
(bootloader) secure:yes
(bootloader) serialno:4xxxxxxx
(bootloader) product:nitrogen
(bootloader) max-download-size:536870912
(bootloader) kernel:uefi
 
Last edited:

opasha

Senior Member
Jul 2, 2009
2,293
616
0
I'm stuck on 'Boot to TWRP recovery', i've done that by


but the device boot to a blank screen!
Retried a few times following the official instructions, also by doing fastboot reboot, and hold pwr+vol-up, no luck, stuck on MI logo...

Here's the getvar:
Hold power and volume up for a while - it will boot you back to recovery unless you messed up your recovery.

If that's the case, get your phone to download mode (hold volume down and power until you get to fastboot screen), connect your phone to adb, place your twrp recovery image into the adb folder and type the following:

fastboot flash recovery recovery.img

Then type:

adb reboot recovery

Or just physically hold power until your phone reboots and then immediately hold power and up together until you reach twrp.
 

Siputih

Member
Apr 11, 2013
16
3
0
After flashing TWRP, I've never been able to reboot, just stuck on rebooting process. Samething happened with RWTP, OWTP, and PBTP. Need to re flash using flash tool in order to make this guy running again.
I'm on MIUI Global V10.0.1.0.OEDMIFH.
Any idea why this happened ? As I never facing like this before.
 

nijel8

Senior Member
Dec 24, 2011
2,356
5,560
0
All over US
I know they are. Fastboot reboot is the reboot, but sometimes it doesn't work.
So? What makes you think adb works in fastboot mode!? It doesn't, so we have fastboot executable for fastboot/bootloader mode and adb executable for Android/recovery mode... Google didn't call it Android Debug Bridge(adb) for no reason...
 
Last edited:

opasha

Senior Member
Jul 2, 2009
2,293
616
0
So? What makes you think adb works in fastboot mode!? It doesn't, so we have fastboot executable for fastboot/bootloader mode and adb executable for Android/recovery mode... Google didn't call it Android Debug Bridge(adb) for no reason...
I never said that. Perhaps I didn't say it correctly. You misunderstood me. I know they are different. They keep running into some error for twrp where it reboots back to itself into a boot loop but didn't flash correctly (just look at the comment above yours). My Ticwatch Pro did the same thing. I was telling him to use adb reboot recovery in this scenario because this is not fastboot. I'll give you the benefit of the doubt. Maybe you're having a bad day. :highfive:
 

totalz

Senior Member
Jan 28, 2011
176
7
0
I never said that. Perhaps I didn't say it correctly. You misunderstood me. I know they are different. They keep running into some error for twrp where it reboots back to itself into a boot loop but didn't flash correctly (just look at the comment above yours). My Ticwatch Pro did the same thing. I was telling him to use adb reboot recovery in this scenario because this is not fastboot. I'll give you the benefit of the doubt. Maybe you're having a bad day. :highfive:
Well, it would be more simple if I can just reboot to recovery from fastboot with command. I'm not getting the adb reboot recovery, either if the twrp is loaded (which it isn't) or get loaded into android, adb server won't see the devices.

I think the flash is fine:
Code:
>fastboot flash recovery twrp-3.2.3-0-nitrogen.img
target reported max download size of 536870912 bytes
sending 'recovery' (61128 KB)...
OKAY [ 8.101s]
writing 'recovery'...
OKAY [ 0.002s]
finished. total time: 8.105s
I'm doing ">fastboot boot twrp-3.2.3-0-nitrogen.img" just to make sure the TWRP img is working on my phone, I'm not 100% sure this is the best method, but it's the only method I found. So with the current official version, I got blank screen with the command, and I tried adb on that, no luck, so it's not a simple display issue. The .img is MD5ed, so no problem in download...

AND if I use the PWR+Vol-up method, it stucks on the MIUI logo. To make sure the method is correct, I tried with official recovery, no problem there...

Googled and found similar situation on different devices, and the solved cases are always a working TWRP. So may be I got a different variant or sth, just let me know what info I can provide to get this going. My Max 3 is the 4+64 model, come with official global 9.6.4.0 rom. I bought it from Mi Store, so no funny business, I hope :p

thanks guys :eek:
 
Last edited:

nijel8

Senior Member
Dec 24, 2011
2,356
5,560
0
All over US
Well, it would be more simple if I can just reboot to recovery from fastboot with command. I'm not getting the adb reboot recovery, either if the twrp is loaded (which it isn't) or get loaded into android, adb server won't see the devices.

I think the flash is fine:
Code:
>fastboot flash recovery twrp-3.2.3-0-nitrogen.img
target reported max download size of 536870912 bytes
sending 'recovery' (61128 KB)...
OKAY [ 8.101s]
writing 'recovery'...
OKAY [ 0.002s]
finished. total time: 8.105s
I'm doing ">fastboot boot twrp-3.2.3-0-nitrogen.img" just to make sure the TWRP img is working on my phone, I'm not 100% sure this is the best method, but it's the only method I found. So with the current official version, I got blank screen with the command, and I tried adb on that, no luck, so it's not a simple display issue. The .img is MD5ed, so no problem in download...

AND if I use the PWR+Vol-up method, it stucks on the MIUI logo. To make sure the method is correct, I tried with official recovery, no problem there...

Googled and found similar situation on different devices, and the solved cases are always a working TWRP. So may be I got a different variant or sth, just let me know what info I can provide to get this going. My Max 3 is the 4+64 model, come with official global 9.6.4.0 rom. I bought it from Mi Store, so no funny business, I hope :p

thanks guys :eek:
Locked bootloader? Seems like it... No errors but you can't boot/flash anything...
Edit: never mind, just noticed your getvar all command output above...
 
Last edited: