[RECOVERY][UNOFFICIAL_MOD][DECRYPTION][UPDATED-02-01-2019] TWRP 3.2.3-4 for nitrogen

Search This thread

nokiagye

Senior Member
Aug 15, 2012
3,009
440
40
thessaloniki
Hi I'm on stock 9.6.27 global beta I want to flash eu miui now that betas have stopped. I need any dummy img to flash the twrp? And because the antiroll back anyone have flashed the latest xiaomi eu above global beta? If the eu is based on China beta I can still flash it?
 

Bawlz McNutt

Member
Jul 25, 2011
45
11
New York, NY
Nokiagye the xiaomi.eu ROMs have anti rollback removed, so you can't brick your device.

Be careful with this! ARB IS ENABLED on Xiaomi.eu stable 10.3.1.0.... 10.3.2.0 may have it as well but I haven't confirmed it yet.

I heard something about they were forced to update the firmware (thus enabling ARB) in order to fix issues with the camera and such.
 
Last edited:

JMaxMan

Senior Member
Dec 11, 2007
78
4
Hi,

I'm currently on Miui Gobal 10.3.5, I'm trying to root with TWRP using fast boot. I'm getting an error about the anti roll back from fast boot. I'm not trying to roll back to another version. Also my boot loader is unlocked. Thank you for any additional advice.
 

Skyllery

Senior Member
Hi,

I'm currently on Miui Gobal 10.3.5, I'm trying to root with TWRP using fast boot. I'm getting an error about the anti roll back from fast boot. I'm not trying to roll back to another version. Also my boot loader is unlocked. Thank you for any additional advice.

First of all, this recovery is not updated since a while, use orangefox.

Then to root you only need to flash magisk.

---

ARB is only a number which prevent to return to an older arb lvl. If your bootloader is unlocked you don't have much to do than flashing magisk.

Exemple for arb : if you are on 10.3.5 arb 5 and want to rollback to 10.3.4 arb 5 no problem. But if you roll back to 8.5.6 arb 4 you'll end in brick.

Regards

Sent from my MI MAX 3 using XDA Labs
 
  • Like
Reactions: JMaxMan

JMaxMan

Senior Member
Dec 11, 2007
78
4
First of all, this recovery is not updated since a while, use orangefox.

Then to root you only need to flash magisk.

---

ARB is only a number which prevent to return to an older arb lvl. If your bootloader is unlocked you don't have much to do than flashing magisk.

Exemple for arb : if you are on 10.3.5 arb 5 and want to rollback to 10.3.4 arb 5 no problem. But if you roll back to 8.5.6 arb 4 you'll end in brick.

Regards

Thank you. I appreciate the information!
 

iscac7558

Member
Aug 31, 2016
7
0
Hello
i have a Mi Max 3 , it came with CN ROM.
i unlocked with the unlocked tool.
I flashed the phone with flashing tool with a global room.
But the phone is stucked in the fastboot even with adb command.
When i try to flash i get error no crc list .
What can i do to flash to a Global ROM and get out of fastboot?
Thanks
 

HSWG

Member
Sep 11, 2019
17
0
Hello
i have a Mi Max 3 , it came with CN ROM.
i unlocked with the unlocked tool.
I flashed the phone with flashing tool with a global room.
But the phone is stucked in the fastboot even with adb command.
When i try to flash i get error no crc list .
What can i do to flash to a Global ROM and get out of fastboot?
Thanks

use miflash and download fastboot global rom from official xiaomi website. make sure u select flash and not flash and lock
 
Last edited:

brasscupcakes

Senior Member
Apr 14, 2015
71
9
Does this still work for Miui 11.0.6

Hi there. this worked superbly but I unintentionally updated to Miui 11 via OTA and lost root, magisk and revovery. I am still unlocked. Miui 11 is beyond bug ridden. No screencasting at all. brand new feedback app submit doesnt work so you cant even report all the bugs.
Am I correct in my understanding that although I can use this same method to regain root, I cannot roll back?
(even if I can't roll back I still want root so I'd be grateful to learn if there are any risks to re-using this method post-update. Many thanks!!!

First of all, this recovery is not updated since a while, use orangefox.

Then to root you only need to flash magisk.

---

ARB is only a number which prevent to return to an older arb lvl. If your bootloader is unlocked you don't have much to do than flashing magisk.

Exemple for arb : if you are on 10.3.5 arb 5 and want to rollback to 10.3.4 arb 5 no problem. But if you roll back to 8.5.6 arb 4 you'll end in brick.

Regards

Sent from my MI MAX 3 using XDA Labs
 

Skyllery

Senior Member
Hi there. this worked superbly but I unintentionally updated to Miui 11 via OTA and lost root, magisk and revovery. I am still unlocked. Miui 11 is beyond bug ridden. No screencasting at all. brand new feedback app submit doesnt work so you cant even report all the bugs.
Am I correct in my understanding that although I can use this same method to regain root, I cannot roll back?
(even if I can't roll back I still want root so I'd be grateful to learn if there are any risks to re-using this method post-update. Many thanks!!!


Drop this recovery (outdated and not fully working on miui 11 Android 10).. and use orangefox.

For root flash Magisk 20.1

For rollback you still can as arb lvl is still the same for the moment

Regards
 

Top Liked Posts

  • There are no posts matching your filters.
  • 67
    SUPPORTS ALL TYPES OF USERDATA DECRYPTION FOR BOTH OREO AND PIE ROMS - PASSWORD, DEFAULT_PASSWORD, PATTERN, PIN!!!

    SUPPORTS BOTH FULL AND INCREMENTAL OTA UPDATE PACKAGES AUTOMATIC INSTALL!!!​


    Sharing my unofficial TWRP recovery mod for nitrogen which I have started about 2 years ago for hydrogen/helium. For more details visit https://forum.xda-developers.com/mi-max/development/recovery-twrp-3-0-2-2-hydrogen-helium-t3512981...
    This is and will be work in progress with fixes and reasonable features to be added.



    To install:
    - USB connect device to PC
    - reboot to fastboot
    - open Command prompt/Terminal in the folder with the recovery image and run these commands line by line:
    Code:
    fastboot flash recovery (XX-XX-XXXX)twrp_v323-X_nitrogen_nijel8-MOD.img
    fastboot boot (XX-XX-XXXX)twrp_v323-X_nitrogen_nijel8-MOD.img
    or just flash the image with TWRP selecting recovery partition
    - reboot from the fresh recovery - it'll take few seconds... let it do its magic to survive MIUI stock recovery replace at system boot. This will happen whenever you install any new ROM.
    Done... This TWRP will not go anywhere, /system is untouched so you can get MIUI OTAs, no need to root if you don't want to, no need to flash anything else, MIUI boots just fine having no idea about the recovery, everybody's happy...;)


    NOTES:

    ROM install:
    - skip wiping Data even if switching different ROMs. Do dirty install, see how it runs, if no problems, great... you saved yourself from doing the initial
    setup. If having issues then wipe Data and see how it goes...
    - You do not need to wipe/format/factory reset anything before install(see above), especially System and Vendor.
    - Do not install any patches like lazyflasher, sound or whatever mods, root-on-system etc that are altering System or Vendor partitions on stock MIUI without installing Magisk first or system will not boot!!!

    MIUI OTA Install:
    - Let MIUI download update and press "Reboot" when prompted
    - Device will reboot to TWRP and start installing it.
    - If device reboots to system automatically - all good, update successful
    - If device does not reboot you should see some error in red
    - Just flash the zip package in Internal storage -> downloaded_rom folder and reboot to system
    - Done - you just got your OTA :)

    Decryption:
    If MIUI asks for decription password after reboot from TWRP don't panic!
    You will most likely never see this but as anything in this live sh*t happens. I for example have seen this only once in hundreds of TWRP and MIUI flashings and reboots to system and it happen after reboot from MIUI OTA testing. Did I mentioned I never do clean installs? Why bother wiping if no post-install issues, right...
    Anyway... here is how to get back to normal without loosing any data:
    - Reboot back to recovery by pressing and holding POWER + VOLUME UP buttons
    - Run Data backup in TWRP
    - USB connect device to computer and copy all personal data you don't wanna loose from Internal storage to computer
    - DO NOT FORGET TO COPY THE DATA BACKUP YOU JUST MADE FROM TWRP/BACKUPS/XXXXXX TO COMPUTER TOO!!!
    - Click Wipe -> Format data -> type yes -> [ENTER]
    - Reboot to MIUI and let it encrypt the device. You will see Setup new device wizard when its done
    - Reboot back to recovery by pressing and holding POWER + VOLUME UP buttons
    - Copy back all your personal data including the recent Data backup from computer to Internal storage -> TWRP/BACKUPS/XXXXXX
    - Reboot recovery so TWRP can detect the Data backup you copied
    - Restore Data backup and reboot to MIUI
    - Done - MIUI should boot without complaining and all your data is intact... even your old lockscreen password and fingerprints should work

    Backup/restore:
    - normal backup includes Data only, you can always flash what you are running currently to restore boot, system and vendor
    - if you have modified boot,system or vendor post install you can back them up to keep your changes
    - You do not need to wipe/format/factory reset anything before restore... restore does that for you


    Some observations during my extended decryption testing with China and Global MIUIs 8.1 and 9.0, EU MIUIs, MIUIPro, etc:
    - Downgrading to ROM with lower security patch level brakes encryption in Android but not in TWRP so just boot back to recovery, backup your data to safe location, format data, restore data back and you are good to go...
    - Some times switching back and forth passwords types(pin, pattern etc...) brakes encryption and you loose your data, no way back!!! This is ROM fault and not TWRP. Crypto footer just gets corrupted from Android... I have taken good measures for this not to happen in my TWRP so don't blame recovery if that happens to you...

    Changelog:

    [02-01-2019
    - hide navbar during running operarions
    - more userdata decryption reliability improvements
    - Mi bunny is terrified loosing recovery control :D
    - sync with latest Omnirom android-9.0 sources

    [01-28-2019
    - fix decryption with good user password on next retry if wrong password was entered before that
    - improve TWRP persist
    - sync with latest Omnirom android-9.0 sources

    [01-09-2019
    - fix system boot after restoring regular file-for-file backup on ext4 file systems(System and Vendor) - now any backup type works for any partition of any ROM
    - sync with latest Omnirom android-9.0 sources

    [01-07-2019
    - fix installing incremental OTA patching boot - this will start working properly after your first full ROM install with new recovery(boot.img flash)
    - fix loading settings from /persist if decryption fails
    - made sure we always keep current settings copy on /persist
    - remove excessive save settings calls
    - some minor improvements
    - sync with latest Omnirom android-9.0 sources

    [01-05-2019
    - fix incremental OTA update automatic install
    - sync with latest Omnirom android-9.0 sources

    [01-04-2019
    - new much smaller Pie kernel built from source with LineageOS 16.0
    - much smaller recovery image(see above)
    - sync with latest Omnirom android-9.0 sources

    [12-29-2018
    - improved decrypt routine
    - some minor fixes and improvements
    - sync with latest Omnirom android-9.0 sources

    12-28-2018
    - much improved and reliable decryption routine for preventing crypto footer corruption and loosing all your data - this update is highly recomended
    - fix Android 9.0 userdata decryption with custom user set password, pin or pattern
    - more reliable format data routine for crypto footer support
    - disable useless and sometime buggy reboot check for system size(No OS installed msg)
    - sync with latest Omnirom android-9.0 sources

    12-27-2018
    - migrate to Android-9.0 for android tree and TWRP sources
    - switch to MIUI Pie prebuilt kernel
    - speed up userdata decryption
    - fix userdata decryption for Android-9.0 with default password only. At this time userdata decryption wit user set password is not supported! Working on it...
    - sync with latest Omnirom android-9.0 sources

    11-25-2018
    - fix survival routine hang/bootloop after openrecoveryscript execution(OTA)
    - improved decryption handling

    11-23-2018
    - fix userdata decryption - no more inaccessible userdata in TWRP
    - fix vendor missing from partitions to restore list in some cases
    - fix TWRP bootloop trying to apply survive magic in some cases
    - finaly fix crypto footer for F2FS partition formating(tested and working!!! - you can format userdata in TWRP without any system boot issues now)
    - skip survive magic for good ROMs to speed up reboot
    - translatable and more user friendly survive system boot screen - If you want to help translate and PM me these strings:"
    Code:
        <!-- Survive system boot strings -->
        <string name="survive_line1">Checking if TWRP will survive system boot!</string>
        <string name="survive_line2">Please, wait...</string>
    - sync with latest Omnirom android-8.1 TWRP sources

    11-12-2018
    - fix TWRP system boot survive - no need to flash anything to prevent stock recovery reflash at MIUI boot
    - fix crypto footer for F2FS partition format - need no more fastboot format userdata for system boot with forced encription enabled(needs testing)
    - fix error when creating ext2, ext3, or ext4 filesystem in some cases(needs testing)
    - some minor fixes and optimizations
    - kernel compiled from source at build time
    - build with latest Lineage OS 15.1 sources
    - sync with latest Omnirom android-8.1 TWRP sources


    Github sources:
    NITROGEN TWRP device tree
    TWRP Mod repo
    Kernel source

    Thank you:
    TeamWin for the initial device tree!
    Omnirom/TeamWin for the TWRP source code!
    @topjohnwu for the magiskboot source code!
    13
    Updated... Now any backup type works for any partition of any ROM, stock/custom doesn't matter, dm-verity doesn't matter, Magisk doesn't matter.
    13
    Updated... New Pie kernel built from source with LineageOS 16.0!
    13
    Updated... Pie decryption completely fixed among other critical things! Fill very good about this release...
    It's LOS time...

    WoW! Nice work!
    Booted (not flashed permanently). Working. No data encryption issue! I could make a full backup with this version!
    But after backup, system does not reboot, stucked on MI logo.
    It's just an experience, there's no problem.
    But the experience is that this recovery still doesn't work smoothly with the stock MIUI ROM ( I know, you hate this).
    Maybe last TWRP survival script? I do not know...

    I will continue to explore. Now, check if the new recovery works well with TREBLED ROM.

    To be continued...
    Sorry, can't help with that. Done countless backups/restore in my testing and had zero issues...

    @nijel8

    Thank you very much.

    I always had problems installing MiuiPro with the previous version.

    The installation was repeated again and again after it was finished, after a restart.

    Something about your script triggered that.
    That was fixed couple of versions back. Also reading about data partition size issues after flashing MIUIPro but I personally never experienced it in my testing.
    But to tell you the true MIUIPro looks kinda fishy in my eyes as a dev, poor porting job IMO. And on top of that with paid OTA updates!? Shame on that guy... Just my 2 cents...
    8
    Posted 12-30-2018 update earlier taken down. What I thought was easy fix for incremental OTA updates proved to be much harder... Fixing it breakes decryption. Fixing decryption breakes incremental OTA.
    So decryption it is for the time being. You can always update with full package ROM.
    If anybody installed 12-30-2018 update, please redownload and install again. Sorry for the inconvenience...