[RECOVERY][tulip] TWRP 3.3.0-1 by ATG Droid

Status
Not open for further replies.
Search This thread

clemenza011

Senior Member
Oct 13, 2011
52
2
Thank you so much for the efforts .. the matter of fact is that I had no ANY previous backup, as I was all the time so far encrypted with the system partition and decryption never worked before.

however, after this 'splash' TWRP screen expired, I got the 4 options only, I think I selected 'install twrp' and it was (re)installed, then got booted back automatically to the twrp, got the decryption of all partitions ('successfully decrypted with default password' was the line ).

So I did the backup to the sdcard of the default proposed partitions (system, boot and data (excl storage). I have no backed up nothing else to sd card. Then hit the Format data option, it was not able to be done (message is 'failed to mount /data (device or resource busy)).

So I am not sure what to do next? I did hit 'reboot system' (so without restoring the previous backup) and I got seems clean miui.
 
Last edited:

ATG Droid

Senior Member
Jul 7, 2017
449
1,242
Prague
frantakysela.com
Thank you so much for the efforts .. the matter of fact is that I had no ANY previous backup, as I was all the time so far encrypted with the system partition and decryption never worked before.

however, after this 'splash' TWRP screen expired, I got the 4 options only, I think I selected 'install twrp' and it was (re)installed, then got booted back automatically to the twrp, got the decryption of all partitions ('successfully decrypted with default password' was the line ).

So I did the backup to the sdcard of the default proposed partitions (system, boot and data (excl storage). I have no backed up nothing else to sd card. Then hit the Format data option, it was not able to be done (message is 'failed to mount /data (device or resource busy)).

So I am not sure what to do next?

If you formatted /data then there should be a message that you should reboot your device to be able to use /data again. So just reboot back in to recovery and after that restore the previous backup.
 
  • Like
Reactions: clemenza011

clemenza011

Senior Member
Oct 13, 2011
52
2
yes, I think there was such a message. I am in my vanilla Miui now. Just before I get back to the TWRP, should I remove fingerprint/pin whatever, or with the current setup I should pay no attention as the twrp would decrypt whatever it's needed regardless of the local phone setup?

Also, just to confirm once for good, with the current recovery of yours, there is no way that one could flash an older version over newer, thus do the hard bricking of the phone (or in other words, is anti rollback 100% included, regardless of if we switch to/from miui to aosp, and vice versa any combination)

last, your 'donate to me' button replies with '404' page, so is there something to be done there? :)
 

ATG Droid

Senior Member
Jul 7, 2017
449
1,242
Prague
frantakysela.com
yes, I think there was such a message. I am in my vanilla Miui now. Just before I get back to the TWRP, should I remove fingerprint/pin whatever, or with the current setup I should pay no attention as the twrp would decrypt whatever it's needed regardless of the local phone setup?

Also, just to confirm once for good, with the current recovery of yours, there is no way that one could flash an older version over newer, thus do the hard bricking of the phone (or in other words, is anti rollback 100% included, regardless of if we switch to/from miui to aosp, and vice versa any combination)

last, your 'donate to me' button replies with '404' page, so is there something to be done there? :)


At this point your device is decrypted, once you restore your previous backup of /data, it automatically gets encrypted again, so don't try to reboot in to this version of recovery again once you encrypt it. Just flash the 3.2.3.1 and then it will be fine. I don't usually take donations, but if you really want then my PayPal is https://www.paypal.me/atgdroid :)


Edit: And yeah, anti-rollback is included. Some people already tried the same process on other devices and it worked
 
Last edited:

clemenza011

Senior Member
Oct 13, 2011
52
2
wow, so now I am again very confused. I hope I am not hitting your nerves, yet first you advised to restore initially created backup and I will have my system back working (encyrpted, as it was initially encrypted). (and there was no mentioning to return to the previous twrp version). Now like you are saying that 3.2.3.2 is to be used just for this initial access to the encrypted phone, and once we did that, we should us 3.2.3.1 for everyday use once being decrypted, so to stay decrypted.

ALso, my magisk manager shows still ticket checkbox 'preserve force encryption' so it likes still sees partition as encrypted?

For a paypall could you please your email address, as I cannot send the beer money upon your nickname.
 

ATG Droid

Senior Member
Jul 7, 2017
449
1,242
Prague
frantakysela.com
wow, so now I am again very confused. I hope I am not hitting your nerves, yet first you advised to restore initially created backup and I will have my system back working (encyrpted, as it was initially encrypted). (and there was no mentioning to return to the previous twrp version). Now like you are saying that 3.2.3.2 is to be used just for this initial access to the encrypted phone, and once we did that, we should us 3.2.3.1 for everyday use once being decrypted, so to stay decrypted.

ALso, my magisk manager shows still ticket checkbox 'preserve force encryption' so it likes still sees partition as encrypted?

For a paypall could you please your email address, as I cannot send the beer money upon your nickname.

I wasn't even 100% sure if 3.2.3.2 is really able to decrypt /data. It's just a test build. I recommended to download 3.2.3.1, because it seems like that the 3.2.3.2 decryption isn't yet working properly as you reported, since for whatever reason the decryption password once you rebooted back to the system wasn't working. So to prevent any future issues I recommended to use the 3.2.3.1 until I fix the decryption for 100%. And if you really aren't sure if you're decrypted, then just download terminal from Google Play store and enter "getprop ro.crypto.state", it will then show you the result.
My PayPal email is: [email protected]
 

balliboxer

Senior Member
May 6, 2012
1,544
6,322
New Delhi
Xiaomi Mi 10T Lite
Xiaomi Mi 10i
Working fine without any issue .Flash the recovery through terminal over previous twrp recovery of mr-r00t .Gud job done mate . Screenshot_2019-01-21-14-13-04.jpegScreenshot_2019-01-21-14-13-53.jpegScreenshot_2019-01-21-14-14-16.jpeg

Sent from my Redmi Note 6 Pro using Tapatalk
 

clemenza011

Senior Member
Oct 13, 2011
52
2
beer money sent :)

my device is encrypted (which imho should be the case as I have sent patter/fingerprint) as I verified with the terminal.
 

clemenza011

Senior Member
Oct 13, 2011
52
2
ok, so I am again on 3.2.3.1, which cannot decrypt, so the full cyrcle is being turned now.

Now will definitely wait however much time is needed until You figure out whatever else is to be figured out. To be honest, it is just one big mess with all these encryptions and sh*t which just can take anyone's phone away in a glimpse, just as it was case with my device this evening.
 

ATG Droid

Senior Member
Jul 7, 2017
449
1,242
Prague
frantakysela.com
ok, so I am again on 3.2.3.1, which cannot decrypt, so the full cyrcle is being turned now.

Now will definitely wait however much time is needed until You figure out whatever else is to be figured out. To be honest, it is just one big mess with all these encryptions and sh*t which just can take anyone's phone away in a glimpse, just as it was case with my device this evening.

I fell like that your device is force encrypted though, otherwise it wouldn't get automatically encrypted everytime you set password. Did you ever flashed lazyflasher or any similar zip which remove the dm-verity and forced encryption from a device? Because with custom recovery installed it anyway seems pointless to even have encrypted device, specially when there is custom recovery like TWRP which is able to decrypt /data.
 

clemenza011

Senior Member
Oct 13, 2011
52
2
I did flashed dm verity I think in the past, yet you are right - my setup is not correct. So I believe I should flash it again, format data again and get from scratch unencrypted...

Sent from my Redmi Note 6 Pro using Tapatalk
 

shaharyan93

Member
Jan 3, 2019
28
2
Team Win Recovery Project



WHAT IS TWRP?

Team Win Recovery Project is a custom recovery for Android devices.
It allows you to back up and restore your data, flash custom ROMs to your device, repair broken file systems, and root your device.

Read more about TWRP here: https://twrp.me/about/


WHAT THIS THREAD IS ABOUT?

This thread is about a serious TWRP development for the Xiaomi Redmi Note 6 Pro. By serious I mean a development which isn't using device tree which was just badly kanged from another device or it's a dirty port without any direct compilation from source. That means that issues like a low brightness, which is caused by the maintainer not being able to set real maximum brightness which is supported by the device, aren't here.

FEATURES:
MTP support
USB OTG storage support
Hardware Qualcomm-based full-disk encryption support ( ext4 & f2fs )
ext4, f2fs, NTFS, fat file system support (read, write, format, backup & restore)
Covers more partitions for nandroid backup and the backup/restore of them really works!
Covers more partitions for image installation, including System, Vendor, Cust, Cache, Userdata, persist, persistbak, boot logo, modem firmware, and even Bluetooth firmware
ADB root
Always synced with signatures from Android platform, so you don't have to worry about the signature mismatch on MIUI incremental OTA installation
Full SELinux support
Support for Asian languages
Included logd/logcat support
Support for mounting USB storage - Mount -> Mount USB Storage in recovery menu.


ISSUE?

If you face any problem then just let me know and i will fix it asap. I'm not a magician to know everything, so if you won't report it then it's probably not gonna be fixed.

CHANGELOG


3.2.3.0, 18.1.2019
- initial release

3.2.3.1, 19.1.2019
- Fixed USB storage, from now on you can mount it
by clicking on Mount -> Mount USB Storage in the recovery menu.

3.2.3.2, 21.1.2019
- Imported selinux service contexts
- Added ability to backup/restore system/vendor images
- increased platform security values to override anti-rollback features to something rather insane
- Added system vold decryption support, since a process of getting keystore to work
on this device was a pure hell for me, but still this is in testing, just let me know if it works for you, but be careful and better backup your data before trying this...


DOWNLOAD LINK

3.2.3.0, 18.1.2019
Download

3.2.3.1, 19.1.2019
Download

3.2.3.2, 21.1.2019 - warning: this is test build!
Download


XDA:DevDB Information
TWRP, Tool/Utility for the Xiaomi Redmi Note 6 Pro

Contributors
ATG Droid

Version Information
Status: Stable
Current Stable Version: 3.2.3.1
Stable Release Date: 2019-01-19

Created 2019-01-18
Last Updated 2019-01-19

I really appreciate your work and your time spent in doing the same
Is it official?
 

g070140

Senior Member
Jun 22, 2015
65
20
When i try to flash it in fastboot mode, it says file tramsfer is more than max allowed. Anyone knows why?
 

SrWladimir

Senior Member
Nov 30, 2014
103
38
Santiago
When i try to flash it in fastboot mode, it says file tramsfer is more than max allowed. Anyone knows why?
I don't know really why this happened to me and how managed to fix it, but I tried the following things, maybe one work for you.

-Connecting the phone to a USB 2.0 port (if you PC don't have one, use a usb 2.0 hub)
-Using the fastboot included in the MiFlash tool
-Insist in the command to flash the recovery
-installing xiaomi drivers?

idk which of this things fixed it, but you don't lose anything trying
 
Last edited:

clemenza011

Senior Member
Oct 13, 2011
52
2
problem never stops for me .. last eve I got notice that Miui 10.2.2.0 is available update, so I did the same which was working before for Miui update (I was using PitchBlack by that time). So I deinstalled Magisk, performed update, TWRP booted, was not able to install (same as PitchBlack) then re-downloaded miui update (this time a bit bigger), then again phone restarted to TWRP, it did the system update, and the phone restarted fine. So the same like with PitchBlack,

Now comes the good part - as I tried to go back to recovery to install Magisk back, I got the factory recovery. Even better, I flashed via adb console 3.2.3.1, all went fine (sending recovery ... OKAY), and yet when I enter to recovery I don't have TWRP but the stock recovery. Any idea (instead of future hiding the notification for miui system update that caused all the sh*t ;) ) ?
 

Simomaster1

Senior Member
Aug 21, 2014
269
113
problem never stops for me .. last eve I got notice that Miui 10.2.2.0 is available update, so I did the same which was working before for Miui update (I was using PitchBlack by that time). So I deinstalled Magisk, performed update, TWRP booted, was not able to install (same as PitchBlack) then re-downloaded miui update (this time a bit bigger), then again phone restarted to TWRP, it did the system update, and the phone restarted fine. So the same like with PitchBlack,

Now comes the good part - as I tried to go back to recovery to install Magisk back, I got the factory recovery. Even better, I flashed via adb console 3.2.3.1, all went fine (sending recovery ... OKAY), and yet when I enter to recovery I don't have TWRP but the stock recovery. Any idea (instead of future hiding the notification for miui system update that caused all the sh*t ;) ) ?
I advise you to follow these steps in order to update without issues:
1. Download the full update by clicking on the 3 dots in the updater and selecting "download..." etc
2. Re-download magisk installer, dm-verity disabler and everything you flashed which modifies the kernel
3. Flash the downloaded rom, then everything you downloaded in step 2
4. Reboot
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 29
    Team Win Recovery Project



    WHAT IS TWRP?

    Team Win Recovery Project is a custom recovery for Android devices.
    It allows you to back up and restore your data, flash custom ROMs to your device, repair broken file systems, and root your device.

    Read more about TWRP here: https://twrp.me/about/


    WHAT THIS THREAD IS ABOUT?

    This thread is about a serious TWRP development for the Xiaomi Redmi Note 6 Pro. By serious I mean a development which isn't using device tree which was just badly kanged from another device or it's a dirty port without any direct compilation from source. That means that issues like a low brightness, which is caused by a maintainer not being able to set the real maximum brightness which is supported by the device, aren't here.

    FEATURES:
    • MTP support
    • USB OTG storage support
    • Hardware Qualcomm-based full-disk encryption support ( ext4 & f2fs )
    • ext4, f2fs, NTFS, fat file system support (read, write, format, backup & restore)
    • Covers more partitions for nandroid backup and the backup/restore of them really works!
    • Covers more partitions for image installation, including System, Vendor, Cust, Cache, Userdata, persist, persistbak, boot logo, modem firmware, and even Bluetooth firmware
    • ADB root
    • Always synced with signatures from Android platform, so you don't have to worry about the signature mismatch on MIUI incremental OTA installation
    • Full SELinux support
    • Support for Asian languages
    • Included logd/logcat support
    • Support for mounting USB storage - Mount -> Mount USB Storage in recovery menu.

    ISSUE?

    If you face any problem then just let me know and i will fix it asap. I'm not a magician to know everything, so if you won't report it then it's probably not gonna be fixed.

    CHANGELOG


    3.2.3.0, 18.1.2019
    - initial release

    3.2.3.1, 19.1.2019
    - Fixed USB storage, from now on you can mount it
    by clicking on Mount -> Mount USB Storage in the recovery menu.

    3.2.3.2, 21.1.2019
    - Imported selinux service contexts
    - Added ability to backup/restore system/vendor images
    - increased platform security values to override anti-rollback features to something rather insane
    - Added system vold decryption support, since a process of getting keystore to work
    on this device was a pure hell for me, but still this is in testing, just let me know if it works for you, but be careful and better backup your data before trying this...

    3.3.0.1, 15.4.2019
    - Slightly modified screen offset, so you can now see clock in the statusbar.
    - Updated decryption blobs to pie, decryption should now work properly, after that there is also slightly improved vold decryption in case that default decryption fails
    - Updated kernel to Android 9.0


    DOWNLOAD LINK

    3.2.3.0, 18.1.2019
    Download

    3.2.3.1, 19.1.2019
    Download

    3.2.3.2, 21.1.2019 - warning: this is test build!
    Download

    3.3.0.1, 15.4.2019
    Download




    DECRYPTION Builds (ported builds without source)


    3.2.3.0, 27.4.2019
    Changelog: Initial release
    Download



    XDA:DevDB Information
    TWRP, Tool/Utility for the Xiaomi Redmi Note 6 Pro

    Contributors
    ATG Droid

    Version Information
    Status: Stable
    Current Stable Version: 3.2.3.1
    Stable Release Date: 2019-01-19

    Created 2019-01-18
    Last Updated 2019-01-19
    9
    This recovery does not support f2fs, unable to create/read f2fs partitions

    Recovery supports it, but kernel which is used in the image doesn't. Actually i said in the second post that i used prebuilt kernel, so yeah, anyway you can just replace it manually by some image kitchen if you want. Or just wait until I replace it.


    Hi ATG Droid,

    Thanks again for your commitment with TWRP development.
    Do you have any news about decryption that wasn't working?
    Does 3.2.3.2 still in test only?
    I'm waiting a stable version to install on my RN6.

    Note: I hope you apply for official version. Our RN6 deserves this trust code stamp.

    Regards,

    I needed to build some AOSP based custom ROM to use for now, since I use this device as a daily driver and I'm not a fan of MIUI to be honest. So at this point I'm decrypted, but probably I will again restore my MIUI backup and look at it during this weekend. So some another update can be expected soon.

    Do i need to flash "Universal DM-Verity, ForceEncrypt, Disk Quota Disablers " only once after TWRP install, or each time after i flash a ROM? (or only after MIUI ROM flashing?) i don't get it...
    and don't want to Brick... :)

    Every time the fstab in boot image or /system partition include the dm-verity or forced encryption flags. Better google something about it, google also got a whole documentation related to the android's verified boot. Anyway, simply said you should just flash it after every MIUI's update or directly once you flash TWRP. Because custom ROMs shouldn't include these fstab flags.
    9
    Ayyy, new update is out. :)

    Changelog:

    - Imported selinux service contexts
    - Added ability to backup/restore system/vendor images
    - increased platform security values to override anti-rollback features to something rather insane
    - Added system vold decryption support, since a process of getting keystore to work
    on this device was a pure hell for me, but still this is in testing, just let me know if it works for you, but be careful and better backup your data before trying this...


    Download link:

    https://www.androidfilehost.com/?fid=11410963190603905629
    8
    I'm also having trouble decrypting the date, no password is correct.

    Decryption is always the most complicated thing to fix on every device. Anyway, I already encrypted my device and I'm trying to fix it, it will just take some time...
    8
    You said this is about serious development but why hasn't there been any updates??

    Because i got my personal life too. This is just one of the many side projects...