Team's Win Recovery Project 3.x, or TWRP3.x for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.
Cautious :-
Quote:
/*
* Your warranty is now void.
*
* We are not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at us for messing up your device, we will laugh at you.
*
*/
What's new in 3.1.1-0:
Backups will now include adopted storage keys (Dees_Troy)
Fixed an adb restore issue (bigbiff)
Fixed rebooting when no OS is present (Dees_Troy)
Fixed line wrapping in the GUI terminal (_that)
Updated TWRP source code to AOSP 7.1.2 (Dees_Troy)Updated TWRP source code to AOSP 7.1.2
What's new in 3.2.1-1:
* minui fixes (cryptomilk)
* Better android-8.0 compatibility in ROM trees (Dees_Troy)
* Fix missing library in android-8.0 (nkk71)
* Fix inconsistent SDCard naming (DevUt)
* Default to TWRP restore instead of adb backup restore to fix restore on fresh TWRP boot (jlask)
What's new in 3.2.0-0:
* Allow restoring adb backups in the TWRP GUI (bigbiff)
* Fix gzip backup error in adb backups (bigbiff)
* Fix a bug in TWRP's backup routines that occasionally corrupted backup files (nkk71)
* Better support for installing Android 8.0 based zips due to legacy props (nkk71)
* Support vold decrypt with keymaster 3.0 in 8.0 firmwares (nkk71)
* Decrypt of synthetic passwords for Pixel 2 (Dees_Troy)
* Support newer ext4 FBE policies for backup and restore in libtar (Dees_Troy)
* v2 fstab support (Dees_Troy)
* Bring TWRP forward to android 8.0 AOSP base (Dees_Troy)
* Various other minor bugfixes and tweaks
What's new in 3.3.0-0:
(Dees_Troy)
Detect mkfs.f2fs version to properly format on f2fs partitions (Dees_Troy)
Allow TWRP to use md5 and sha256 checksums for zip installs (bigbiff)
TWRP can use /data/cache/recovery and /persist/cache/recovery on AB devices with no cache partition (bigbiff)
Switch part of advanced menus in TWRP to use a listbox of options (Dees_Troy)
Use magiskboot to allow repacking boot images for installing TWRP (Dees_Troy with thanks to topjohnwu of course)
What's new in 3.3.1-0:
* Fix selinux issues during formatting - dianlujitao
* Various fixes for toybox and toolbox builds - CaptainThrowback and bigbiff
* Flash both A and B partitions when installing a recovery ramdisk - Dees_Troy
* Add option to uninstall TWRP app from /system - Dees_Troy
* Create digest for subpartitions - bigbiff
Code:
/*
Whats Working?
All paritions are mounting.
Can change Slot A/Slot B on twrp.
Add system_image mount point to flash system images.
Fixed MTP and OTG issues.
Fixed JDI Pannels issue on pie
Added Pie Support.
Fixed Pie permanent twrp.
Added Pie decryption support. (thanks to @[URL="https://4pda.ru/forum/index.php?showuser=6362530"]d4e8ede8f1f2[/URL])
Added Splash img support.
*/
Code:
Flashing Commands:
fastboot boot recovery.img
Downloads :TeamWin
Status : OFFICIAL
Created 2018-11-02
Last Updated 2019-06-24
Another recovery ?
Hi Folk,
We got 4 available recovery as far as now but 100% get buggy for now.
I see many thanks : do someone have tested this Recovery for Mi A2 ? Do it can flash LOS on both slot A and B without failed ?
Thank for your enlightenment.
? Mumu said:
Hi Folk,
I see many thanks : do someone have tested this....
Click to expand...
Click to collapse
I have backed up and restored with this. It works well. Have not flashed any roms though.
I updated my phone to the November beta and could not boot into this twrp as it did not recognize the device was encrypted. The temporary twrp from TingyiChen did work however. Had to wipe and install the October version to get everything back to normal. Will wait for the official release to test some more. Just a heads up to be aware that the next os update might cause some complications.
@Manish4586
I can confirm the latest security update breaks encryption detection by this twrp version. I just updated to the official ota for November and twrp loads but does not ask for the decryption pattern and thus the drive is not decrypted.
And, it seems in a near future that TWRP will be official to Mi A2 - https://github.com/TeamWin/android_device_xiaomi_jasmine
If you take a look at this repo, it's forked from the one that is the unofficial and linked on this thread.
It works well but It has encryption issue. I have a fix for this issue:
-find /vendor/etc/fstab.qcom file and replace line 10:
"
Code:
/dev/block/bootdevice/by-name/system / ext4 ro,barrier=1,discard wait,resize,slotselect,verify
"
-reboot fastboot mode and run it:
"fastboot -w"
parduscix said:
It works well but It has encryption issue. I have a fix for this issue:
-find /vendor/etc/fstab.qcom file and replace line 10:
""
-reboot fastboot mode and run it:
"fastboot -w"
Click to expand...
Click to collapse
This format userdata and others partitions
Totally useless.
Same of format data using TWRP
How to flash twrp I'm going in miA2. I have tried but failed no command show
razahaider03 said:
How to flash twrp I'm going in miA2. I have tried but failed no command show
Click to expand...
Click to collapse
unlock bootloader, then boot to fastboot and boot the recovery
Ironmaniaco said:
And, it seems in a near future that TWRP will be official to Mi A2 - https://github.com/TeamWin/android_device_xiaomi_jasmine
If you take a look at this repo, it's forked from the one that is the unofficial and linked on this thread.
Click to expand...
Click to collapse
It's official now.
Manish4586 said:
Flashing Commands:
fastboot boot recovery.img
flash twrp-flasher-xxx.zip from twrp
Click to expand...
Click to collapse
Where do I download the twrp-flasher zip? I only found the .img in the website. Or is fastboot recommended?
Thanks.
Now we have TWRP fixed on smartphone?
Or we have to flash TWRP after flash every ROM?
Thx man. Its working.
I booted into twrp and then flashed the installer zip which is i took from your sourceforge account.
Now im able to boot into recovery without fastboot. ??
satti8893 said:
Thx man. Its working.
I booted into twrp and then flashed the installer zip which is i took from your sourceforge account.
Now im able to boot into recovery without fastboot. ??
Click to expand...
Click to collapse
Have a nice day
jaycedam said:
Where do I download the twrp-flasher zip? I only found the .img in the website. Or is fastboot recommended?
Thanks.
Click to expand...
Click to collapse
It will be available on twrp download soon.
tsulolxd said:
Now we have TWRP fixed on smartphone?
Or we have to flash TWRP after flash every ROM?
Click to expand...
Click to collapse
We have to flash twrp.zip
Manish4586 said:
We have to flash twrp.zip
Click to expand...
Click to collapse
Where do I find this zip? It's working on Android Pie?
Hi Manish4586, I'm in PBRP and Pixel Experience right now, how to change to TWRP OFFICIAL for Mi A2? I try from fastboot it didn't work, plase help.
I installed the zip via sideload, it's ok or do I have to flash the img?
Related
TWRP-3.2.1 for land.
Downloads:
Treble
Non-Treble
What's new in 3.2.1-0:
* minui fixes (cryptomilk)
* Better android-8.0 compatibility in ROM trees (Dees_Troy)
* Fix missing library in android-8.0 (nkk71)
* Fix inconsistent SDCard naming (DevUt)
* Default to TWRP restore instead of adb backup restore to fix restore on fresh TWRP boot (jlask)
What's new in 3.2.0-0:
* Allow restoring adb backups in the TWRP GUI (bigbiff)
* Fix gzip backup error in adb backups (bigbiff)
* Fix a bug in TWRP's backup routines that occasionally corrupted backup files (nkk71)
* Better support for installing Android 8.0 based zips due to legacy props (nkk71)
* Support vold decrypt with keymaster 3.0 in 8.0 firmwares (nkk71)
* Decrypt of synthetic passwords for Pixel 2 (Dees_Troy)
* Support newer ext4 FBE policies for backup and restore in libtar (Dees_Troy)
* v2 fstab support (Dees_Troy)
* Bring TWRP forward to android 8.0 AOSP base (Dees_Troy)
* Various other minor bugfixes and tweaks
XDA:DevDB Information
TWRP Recovery, Tool/Utility for the Xiaomi Redmi 3S
Contributors
dasshubham762, TeamReloaded
Version Information
Status: Stable
Current Stable Version: 3.2.1-0
Created 2017-12-10
Last Updated 2018-05-30
---
otobeker said:
It works on oreo!
Click to expand...
Click to collapse
yes
dasshubham762 said:
TWRP-3.2.0 for land.
Download
What's new in 3.2.0-0:
* Allow restoring adb backups in the TWRP GUI (bigbiff)
* Fix gzip backup error in adb backups (bigbiff)
* Fix a bug in TWRP's backup routines that occasionally corrupted backup files (nkk71)
* Better support for installing Android 8.0 based zips due to legacy props (nkk71)
* Support vold decrypt with keymaster 3.0 in 8.0 firmwares (nkk71)
* Decrypt of synthetic passwords for Pixel 2 (Dees_Troy)
* Support newer ext4 FBE policies for backup and restore in libtar (Dees_Troy)
* v2 fstab support (Dees_Troy)
* Bring TWRP forward to android 8.0 AOSP base (Dees_Troy)
* Various other minor bugfixes and tweaks
Click to expand...
Click to collapse
Is it official ?
hackermssharma said:
Is it official ?
Click to expand...
Click to collapse
No.
dasshubham762 said:
No.
Click to expand...
Click to collapse
Is it risky?
hackermssharma said:
Is it risky?
Click to expand...
Click to collapse
If you flash or use it incorrectly then It could be risky. It works fine for me.
Is it work fine for installing miui rom? With Teammex twrp, the previous build i got an error. Not trying latest Teammex twrp yet..
Rukijo said:
Is it work fine for installing miui rom? With Teammex twrp, the previous build i got an error. Not trying latest Teammex twrp yet..
Click to expand...
Click to collapse
It should work fine.
dasshubham762 said:
It should work fine.
Click to expand...
Click to collapse
I installing your twrp with old twrp. But suddenly my touchscreen not responding. It freeze..
Rukijo said:
I installing your twrp with old twrp. But suddenly my touchscreen not responding. It freeze..
Click to expand...
Click to collapse
Try fastboot. Btw, I did installation using old twrp and it worked flawlessly.
Thnku sir for this
dasshubham762 said:
TWRP-3.2.0 for land.
Download
What's new in 3.2.0-0:
* Allow restoring adb backups in the TWRP GUI (bigbiff)
* Fix gzip backup error in adb backups (bigbiff)
* Fix a bug in TWRP's backup routines that occasionally corrupted backup files (nkk71)
* Better support for installing Android 8.0 based zips due to legacy props (nkk71)
* Support vold decrypt with keymaster 3.0 in 8.0 firmwares (nkk71)
* Decrypt of synthetic passwords for Pixel 2 (Dees_Troy)
* Support newer ext4 FBE policies for backup and restore in libtar (Dees_Troy)
* v2 fstab support (Dees_Troy)
* Bring TWRP forward to android 8.0 AOSP base (Dees_Troy)
* Various other minor bugfixes and tweaks
Click to expand...
Click to collapse
Excellent
Place this in rom,kernel, recovery thread
Works fine, big thanks dev
TWRP 3.2.1-0 is up for land.
Great job sir :fingers-crossed:
dasshubham762 said:
TWRP 3.2.1-0 is up for land.
Click to expand...
Click to collapse
Work for 3x variant? I am affraid getting freeze again.. ?
dasshubham762 said:
TWRP 3.2.1-0 is up for land.
Click to expand...
Click to collapse
I am currently using version 3.0.2... Can I update directly to this..??
RKT Dasan said:
I am currently using version 3.0.2... Can I update directly to this..??
Click to expand...
Click to collapse
Yes. Directly flash the latest image file from your current TWRP.
Rukijo said:
Work for 3x variant? I am affraid getting freeze again.. ?
Click to expand...
Click to collapse
Try and report to me. I can't test as I don't have Redmi 3X. :silly:
TWRP 3.2.1-0
Whats new:
* minui fixes (cryptomilk)
* Better android-8.0 compatibility in ROM trees (Dees_Troy)
* Fix missing library in android-8.0 (nkk71)
* Fix inconsistent SDCard naming (DevUt)
* Default to TWRP restore instead of adb backup restore to fix restore on fresh TWRP boot (jlask)
Screenshots
How to install:
Download attached file
Rename from .zip to .img
Flash via TWRP 3.2.0-0 in "Recovery" partition
mod edit - link removed
andrw.gldmn said:
TWRP 3.2.1-0
Whats new:
* minui fixes (cryptomilk)
* Better android-8.0 compatibility in ROM trees (Dees_Troy)
* Fix missing library in android-8.0 (nkk71)
* Fix inconsistent SDCard naming (DevUt)
* Default to TWRP restore instead of adb backup restore to fix restore on fresh TWRP boot (jlask)
Screenshots
How to install:
Download attached file
Rename from .zip to .img
Flash via TWRP 3.2.0-0 in "Recovery" partition
Click to expand...
Click to collapse
I download this recovery file but when I opened this , there is no file in it to install anything......
dadewdrop said:
I download this recovery file but when I opened this , there is no file in it to install anything......
Click to expand...
Click to collapse
Dude, are you laughing me?!?!?! Did you read the post?!
Sent from my MI 5 using XDA-Developers Legacy app
hi @andrw.gldmn would like to contribute to the development. could you link the device sources please?
tywinlannister7 said:
hi @andrw.gldmn would like to contribute to the development. could you link the device sources please?
Click to expand...
Click to collapse
No.
Sent from my MI 5 using XDA-Developers Legacy app
thread closed until the links will be available
[!]NOTE: Decrypting data is not currently supported. MTP also does not work, but you can use adb to push and pull files.[!]
Team Win Recovery Project 3.x, or twrp3 for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.
Installation
-Reboot into fastboot
-use the command: fastboot flash recovery_ramdisk twrp-X-X-X
CHANGELOG for 3.2.1-0:
-minui fixes (cryptomilk)
-Better android-8.0 compatibility in ROM trees (Dees_Troy)
-Fix missing library in android-8.0 (nkk71)
-Fix inconsistent SDCard naming (DevUt)
-Default to TWRP restore instead of adb backup restore to fix restore on fresh TWRP boot (jlask)
-Allow restoring adb backups in the TWRP GUI (bigbiff)
-Fix gzip backup error in adb backups (bigbiff)
-Fix a bug in TWRP's backup routines that occasionally corrupted backup files (nkk71)
-Better support for installing Android 8.0 based zips due to legacy props (nkk71)
-Support vold decrypt with keymaster 3.0 in 8.0 firmwares (nkk71)
-Decrypt of synthetic passwords for Pixel 2 (Dees_Troy)
-Support newer ext4 FBE policies for backup and restore in libtar (Dees_Troy)
-v2 fstab support (Dees_Troy)
-Bring TWRP forward to android 8.0 AOSP base (Dees_Troy)
-Various other minor bugfixes and tweaks
Dil3mm4's Changelog
-Added splash2 partition as mountable to obtain failure logs.
-/cust as TWRP settings holder
-fixed a quirk with Data formatting
-Dil3mm4 black theme
Download
TWRP 3.2.1-0 April 6th build
TWRP 3.2.1-0 April 8th build
TWRP 3.2.1-0 April 8th build Round 2
TWRP 3.2.1-0 May 4th build Round
TWRP 3.2.1-0 May 15th
XDA:DevDB Information
TWRP , Tool/Utility for the Huawei P8lite/P8 Lite
Contributors
dil3mm4.dev, TeamWin Recovery Project
Version Information
Status: Stable
Created 2018-04-06
Last Updated 2018-05-11
A Link Please?
Edit - Thread reopened.
Good to go
Regards
-XDA Staff
YoussefR said:
A Link Please?
Click to expand...
Click to collapse
Link posted, thanks for your interest.
dil3mm4.dev said:
[!]NOTE: Decrypting data is not currently supported. MTP also does not work, but you can use adb to push and pull files.[!]
Team Win Recovery Project 3.x, or twrp3 for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.
Installation
-Reboot into fastboot
-use the command: fastboot flash recovery_ramdisk <image name>
CHANGELOG for 3.2.1-0:
-minui fixes (cryptomilk)
-Better android-8.0 compatibility in ROM trees (Dees_Troy)
-Fix missing library in android-8.0 (nkk71)
-Fix inconsistent SDCard naming (DevUt)
-Default to TWRP restore instead of adb backup restore to fix restore on fresh TWRP boot (jlask)
-Allow restoring adb backups in the TWRP GUI (bigbiff)
-Fix gzip backup error in adb backups (bigbiff)
-Fix a bug in TWRP's backup routines that occasionally corrupted backup files (nkk71)
-Better support for installing Android 8.0 based zips due to legacy props (nkk71)
-Support vold decrypt with keymaster 3.0 in 8.0 firmwares (nkk71)
-Decrypt of synthetic passwords for Pixel 2 (Dees_Troy)
-Support newer ext4 FBE policies for backup and restore in libtar (Dees_Troy)
-v2 fstab support (Dees_Troy)
-Bring TWRP forward to android 8.0 AOSP base (Dees_Troy)
-Various other minor bugfixes and tweaks
Dil3mm4's Changelog
6th April
-Added splash2 partition as mountable to obtain failure logs.
8th April
-Fixed f2fs quirks
-Fixed "unauthorized device" when using adb
8th April Round 2
-Moved TWRP settings to /cust
-Enabled MTP (most likely won't work)
-fixed a couple of quirks on the themes
Download
TWRP 3.2.1-0 April 6th build
TWRP 3.2.1-0 April 8th build
TWRP 3.2.1-0 April 8th build Round 2
I'm do offering support and some chitty-chat times over this Telegram group.
Feel free to join.
Sources
TWRP:https://github.com/minimal-manifest-twrp
Kernel: not yet available
XDA:DevDB Information
TWRP , Tool/Utility for the Huawei P8lite/P8 Lite
Contributors
dil3mm4.dev, TeamWin Recovery Project
Version Information
Status: Stable
Created 2018-04-06
Last Updated 2018-04-05
Click to expand...
Click to collapse
Thanks bro worked well
But still have encrypt issue
honorfan said:
Thanks bro worked well
But still have encrypt issue
Click to expand...
Click to collapse
As quoted into the main post, I'm aware of that issue, but still, it's a low priority thing for me since I'm mostly working on GSI releases for Prague device series.
Anyways thanks for your interest and feel free to join us over the Telegram group.
dil3mm4.dev said:
As quoted into the main post, I'm aware of that issue, but still, it's a low priority thing for me since I'm mostly working on GSI releases for Prague device series.
Anyways thanks for your interest and feel free to join us over the Telegram group.
Click to expand...
Click to collapse
Btw thanks alot for your great works
I hope you can fix bugs:good:
honorfan said:
Btw thanks alot for your great works
I hope you can fix bugs:good:
Click to expand...
Click to collapse
I hope that too.
Thanks again.
I can't wipe cache. I get unable to wipe Cache. Do you know why this might happen?
bill_klpd said:
I can't wipe cache. I get unable to wipe Cache. Do you know why this might happen?
Click to expand...
Click to collapse
I'm not having this issue you're mentioning, neither got any reports about it.
But you can try to select, into TWRP settings , "Use rm -rf instead of format" and then try to wipe cache as workaround.
Thanks for your report.
I must be doing something wrong;
fastboot flash recovery_ramdisk TWRP-3.2.1-0reo.img
target reported max download size of 471859200 bytes
sending 'recovery_ramdisk' (8486 KB)...
OKAY 0.221s
writing 'recovery_ramdisk'...
FAILED (remote: partition length get error)
finished. total time: 0.237s
You have to be on Oreo in order to use this recovery.
Cosmox_ said:
You have to be on Oreo in order to use this recovery.
Click to expand...
Click to collapse
Thank you. I mistook this to be a necessity to flash Oreo with TWRP.
@dil3mm4.dev
hi, i am test on Huawei P20 Lite (with OREO delivered)
format data : work
adb sideload : work
my problem is crypting
if i format data, reboot from twrp to twrp and make backup : work to internal and not work to external_sd (permission), then boot to system - need erecovery and factory-reset
after factory-reset is data again crypted. what a hell!
no twrp = after factory-reset app's install, settings ... = many time lost.
i hope you can build WITH encryption (can i help ?)
all other twrp i am testing : see twrp first-screen and frozen. your twrp is minimum 500% better
JamesBott said:
if i format data, reboot from twrp to twrp and make backup : work to internal and not work to external_sd (permission), then boot to
Click to expand...
Click to collapse
Mhm.
I'm not really understanding this.
I don't have permissions problem over external_sd card over P8 lite 2017.
We should further dig into it, feel free to join the Telegram group.
JamesBott said:
after factory-reset is data again crypted. what a hell!
Click to expand...
Click to collapse
That's what eRecovery it's supposed to do, so it's expected.
You should avoid that if you want to keep your /data partition decrypted.
JamesBott said:
i hope you can build WITH encryption (can i help ?)
Click to expand...
Click to collapse
Encryption it's kinda tricky.
There are already a few TWRP team members on it, so if you want to help them out, just fork their recovery and take a look over their Encrypt/decrypt functions.
Thanks for your interest and your kind words.
where is the link
p181153 said:
where is the link
Click to expand...
Click to collapse
Links in the op.
Thank you for your interest.
dil3mm4.dev said:
[!]NOTE: Decrypting data is not currently supported. MTP also does not work, but you can use adb to push and pull files.[!]
Team Win Recovery Project 3.x, or twrp3 for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.
Installation
-Reboot into fastboot
-use the command: fastboot flash recovery_ramdisk twrp-X-X-X
CHANGELOG for 3.2.1-0:
-minui fixes (cryptomilk)
-Better android-8.0 compatibility in ROM trees (Dees_Troy)
-Fix missing library in android-8.0 (nkk71)
-Fix inconsistent SDCard naming (DevUt)
-Default to TWRP restore instead of adb backup restore to fix restore on fresh TWRP boot (jlask)
-Allow restoring adb backups in the TWRP GUI (bigbiff)
-Fix gzip backup error in adb backups (bigbiff)
-Fix a bug in TWRP's backup routines that occasionally corrupted backup files (nkk71)
-Better support for installing Android 8.0 based zips due to legacy props (nkk71)
-Support vold decrypt with keymaster 3.0 in 8.0 firmwares (nkk71)
-Decrypt of synthetic passwords for Pixel 2 (Dees_Troy)
-Support newer ext4 FBE policies for backup and restore in libtar (Dees_Troy)
-v2 fstab support (Dees_Troy)
-Bring TWRP forward to android 8.0 AOSP base (Dees_Troy)
-Various other minor bugfixes and tweaks
Dil3mm4's Changelog
-Added splash2 partition as mountable to obtain failure logs.
-/cust as TWRP settings holder
Download
TWRP 3.2.1-0 April 6th build
TWRP 3.2.1-0 April 8th build
TWRP 3.2.1-0 April 8th build Round 2
XDA:DevDB Information
TWRP , Tool/Utility for the Huawei P8lite/P8 Lite
Contributors
dil3mm4.dev, TeamWin Recovery Project
Version Information
Status: Stable
Created 2018-04-06
Last Updated 2018-04-25
Click to expand...
Click to collapse
Hi bro
i found this twrp on
cn.club.huawei
and also
data decryption works (not tested just was written there)
by the way you can test or the others
https://pan.baidu.com/s/1SIf2g43X0jqDWO95L7GVXg
download it by pc
or search in youtube how to download from baidu
honorfan said:
Hi bro
i found this twrp on
cn.club.huawei
and also
data decryption works (not tested just was written there)
by the way you can test or the others
https://pan.baidu.com/s/1SIf2g43X0jqDWO95L7GVXg
download it by pc
or search in youtube how to download from baidu
Click to expand...
Click to collapse
https://forum.xda-developers.com/p10-lite/development/recovery-twrp-3-2-1-0-t3783447
There you have something non chinese and that was tested by me and it works. MTP, decryption all !!
Eurofighter_ty said:
https://forum.xda-developers.com/p10-lite/development/recovery-twrp-3-2-1-0-t3783447
There you have something non chinese and that was tested by me and it works. MTP, decryption all !!
Click to expand...
Click to collapse
Great
does it work for honor 8 lite??
[UNOFFICIAL][ENCRYPTION][wrappedkey] TWRP 3.3.1-6: proper system_as_root & decryption
Code:
/*
* I'm not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed (like it did for me...).
* Please do some research if you have any concerns about features included in the products you find here before flashing it!
* YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.
* Your warranty will be void if you tamper with any part of your device / software.
* Same statement for XDA.
*/
Introduction
This is an unofficial build of TWRP for Redmi Note 7 Pro (violet). Differences with the official one include:
- Supports CAF-based wrappedkey encryption (decryption) properly (tested with MIUI 10.3.5.0)
- Supports decrypting devices that have screen lock set up after Android 9 May update, which introduced a new key derivation function.
- Mounts the system partition at /system_root as per AOSP standards. This makes the auto-backup scripts (e.g. GApps / Magisk survival script) work properly during updates, and you no longer need any 'patch' to flash GApps / Magisk properly. However, this may break some existing ROMs. See below FAQ section for details.
- Appended DTBO to the recovery image so it doesn't depend on the dtbo partition. No standalone DTBO image required.
Flashing instructions
- Download and extract the img file
- Reboot to fastboot mode
- fastboot flash recovery whatever_img_file_you_extracted.img
- Reboot and press Volume + to enter recovery
- DO NOT try to run 'fastboot boot recovery.img', it won't work.
- DO NOT flash the fcrypt disabler if you use my recovery. There is no need to do so, and it is possible to mess stuff up if you don't know what you are doing.
- You have to format the data partition if and ONLY IF:
1) You were not encrypted, now going to an encrypted state, or vice-versa OR
2) You were on a ROM other than MIUI that does not support "wrappedkey" (ROMs would often state it supports wrappedkey if it does), now going to a ROM that supports it
Limitations
DO NOT boot this recovery with empty system and vendor partitions. It will fail to decrypt any data partition with empty /system and /vendor. DO NOT wipe system and vendor partitions without installing a new one before rebooting. I am working to remove this limitation.
Now works even with empty system and vendor partitions after 3.3.1-5. No need to worry about formatting system and vendor breaking TWRP any more.
The restore zip created by the Migrate app is NOT compatible with this recovery. It's a problem of the Migrate app, not this recovery. Please DO NOT try to flash the restore zip created by Migrate.
FAQ
- Q: Do I need any specific DTBO image to make this recovery working?
- A: Nope. It is appended to the recovery image so it will work with any DTBO.
- Q: What is wrappedkey?
- A: It's a different mode of FBE implemented in CAF, the Qualcomm branch of AOSP.
- Q: This cannot install ROM X, why?
- A: Because it mounts the system partition at /system_root, which is AOSP standard behavior for A-only system_as_root devices, but is broken in some custom ROMs currently (MIUI should work though). To make any ROM work again, they will need to include this commit from LineageOS Gerrit https://review.lineageos.org/c/LineageOS/android_build/+/247066
- Q: Decryption doesn't work with ROM X, why?
- A: Decryption should work for most ROMs based on the CAF branch (not AOSP). CAF ROMs (including official MIUI) use a different scheme for key storage, which is why TWRP hasn't supported it till now. I have ported the CAF encryption changes (wrappedkey) to TWRP, but unfortunately this will break ROMs that do not support the CAF wrappedkey mode of encryption. Here is a list of patches non-CAF ROMs need to support CAF-encrypted /data partitions https://mokeedev.review/q/topic:%22fbe-wrapped-key%22+(statuspen%20OR%20status:merged). If you confirm your ROM is CAF-based but the decryption still does not work, please open an issue on my GitHub repository which you could find below. (XDA threads are no good for issue tracking, sorry)
- Q: Why not contribute to the official TWRP?
- A: All the patches to the TWRP code base have been submitted to the official gerrit code review, though not merged yet, which you can see below.
Downloads
3.3.1-6: https://mega.nz/#!3QIRQYhK!Jq5QrGfJw5VCYZ8sq_BO1qNZecrFqlM9IB1IdSwogvI
changes: updated kernel to support pstore instead of /proc/last_kmsg. If you don't know what this is, it's probably not relevant to you.
Here you can find an unofficial LOS build with wrappedkey encryption and also proper system_as_root support for those survival scripts https://forum.xda-developers.com/redmi-note-7-pro/development/unofficial-lineageos-16-caf-encryption-t3933532. In addition, all official MIUI builds should flash just fine.
History versions:
3.3.1-5: https://mega.nz/#!nMowHKiL!zRvoTM0iIZKArmUDnZzaEFtXQv0_q7hIHUCmTHTOmOM
changes: 1) Now works even with empty /system and /vendor partition 2) Fixed brightness problem; 3) Enabled EDL Reboot
3.3.1-3: https://mega.nz/#!yAYXxAzZ!FNMYLzLphnSmJ-DbBx-OZUgxxYiftgn8e4Jn3kxiQik
Patches and sources
Patches for TWRP are available here:
https://gerrit.omnirom.org/#/c/34091/
https://gerrit.omnirom.org/#/c/34093/
https://gerrit.omnirom.org/#/c/34092/
https://gerrit.omnirom.org/#/c/android_bootable_recovery/+/34096/
Patches for ROMs to support wrapped key have been given in the above sections.
Source of the current device tree for TWRP: https://github.com/PeterCxy/android_device_xiaomi_violet-twrp
Kernel source: https://github.com/PeterCxy/android_kernel_xiaomi_sm6150, note that the device tree uses a prebuilt kernel image.
Contributors
PeterCxy, Dyneteve, merothh
Source Code: https://github.com/PeterCxy/android_device_xiaomi_violet-twrp
Now fixed and tested with MIUI.
PeterCxy said:
Now fixed and tested with MIUI.
Click to expand...
Click to collapse
Could you please tell us what is fixed and what is wrong with the previous one? Just out of curiosity.
I’m not new to installing custom recoveries and installing ROM, but I am new to Xiaomi devices.
In the simplest form possible,
With this I should be able to just run the ‘fastboot install recovery twrp.img’ and not have to run “fastboot erase userdata’?
also
Do I still need to flash the zip I have that disables forced encryption?
Could you provide instructions to flash this ?
Or is it just the same as the 'official one'?
Can confirm this successfully decrypts storage, running xiaomi.eu on my phone. Thanks for your work.
Dwughjsd said:
Could you please tell us what is fixed and what is wrong with the previous one? Just out of curiosity.
Click to expand...
Click to collapse
It did not decrypt MIUI 10.3.5.0 successfully due to magic (I missed some commits from qcom). It was fixed by pulling more commits in.
Jpwner said:
I’m not new to installing custom recoveries and installing ROM, but I am new to Xiaomi devices.
In the simplest form possible,
With this I should be able to just run the ‘fastboot install recovery twrp.img’ and not have to run “fastboot erase userdata’?
also
Do I still need to flash the zip I have that disables forced encryption?
Click to expand...
Click to collapse
You won't need to erase userdata or flash fcrypt disabler anymore, if all the ROMs will update to support the wrappedkey encryption
Naveenthemi said:
Could you provide instructions to flash this ?
Or is it just the same as the 'official one'?
Click to expand...
Click to collapse
just fastboot flash recovery whatever_you_downloaded_and_extracted.img
PeterCxy said:
just fastboot flash recovery whatever_you_downloaded_and_extracted.img
Click to expand...
Click to collapse
So it's possible for me to flash OTA Updates without encountering a bootloop and such?
Can someone please provide an alternate download link? The Mega link doesn't seem to work for me.
EDIT: Worked on a different device. Thanks.
Naveenthemi said:
So it's possible for me to flash OTA Updates without encountering a bootloop and such?
Click to expand...
Click to collapse
+1
Please answer
Good job! ?
I want you to know that your patch has been merged with the official one. I was away for a while so I hope you understand the little unfortunate delay.
In latest update can we flash any custom roms without any issue?
Yogendra Kher said:
In latest update can we flash any custom roms without any issue?
Click to expand...
Click to collapse
You have to wait until custom ROMs pull in necessary system_as_root changes. Currently it seems only my LOS build pulled that in
PeterCxy said:
You have to wait until custom ROMs pull in necessary system_as_root changes. Currently it seems only my LOS build pulled that in
Click to expand...
Click to collapse
Is it possible to flash OTA updates without encountering bootloops and such? (MIUI)
Naveenthemi said:
Is it possible to flash OTA updates without encountering bootloops and such? (MIUI)
Click to expand...
Click to collapse
Should work fine with MIUI. At least from what I have tested.
kushal.purkar said:
+1
Please answer
Click to expand...
Click to collapse
PeterCxy said it would as far as his testing had been done.
Gapps aroma not installing in this one as well. error 255
Can I flash Magisk and root my phone with this build.?
Do you have any Magisk zip file that will work.?
Thank you for your work
This is basically a tl;dr thread.
I don't want to make a thread that everyone will lazy to read.
Team Win Recovery Project 3.x, or twrp3 for short, is a custom recovery built with ease of use and customization in mind. It's a fully touch driven user interface; no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.
Disclaimer
Code:
/*
* Your warranty might not be void (thanks Xiaomi). However...
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this RECOVERY
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
Requirements
Xiaomi Mi 9 SE (of course)
Unlocked bootloader
Some knowledge on how to deal with your device... and patience.
Flashing InstructionsI assume you've done (very) basic steps on preparing to flash your device.
Reboot device to bootloader. If device is powered off, press and hold Power + Volume Down button until tinkering Mi Bunny with "FASTBOOT" text appears.
Optional: Flash stock vbmeta with the following command (attached if needed):
Code:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
Under same directory as TWRP image and ADB/Fastboot executables (if ever required), type this command:
Code:
fastboot flash recovery twrp-3.x.x-y-KudProject-grus.img
Where x and y are version of TWRP you're going to flash.
IMPORTANT: After flashing, immediately press and hold Power + Volume Up for about 10 seconds to reboot to recovery.
Swipe the option to allow modifications. This will prevent stock ROM from replacing recovery, however be aware that you might need to reflash stock vbmeta with disabled verity after that to be able to boot stock ROM!
Downloads
Webserver | MEGA
Old releases only: OSDN | AndroidFileHost
Known Issues
/dev/null
Special Thanks
Dees_Troy and everyone behind TWRP
Everyone on Mi 9 SE community
Device Sources
TWRP repository fork
Device tree
Kernel source
Changelogstwrp-3.5.2_9-1-KudProject-grus
Merged TWRP source changes up to 25 April 2021 (UTC+8)
Updated kernel to MoeSyndrome kernel based on Android 10
Mount firmware partition as read-only
Added support for formatting Cust partition in GUI
twrp-3.4.0-0-KudProject-grus
Merged TWRP source changes up to 22 June 2020 (UTC+8)
Supports decryption of userdata on Android 10-based MIUI and custom ROMs using Android 10 crypto blobs (might not be backwards compatible)
Restored system and vendor (non-image) backup support
Added support for backing up persist (and the image)
Build some blobs from source
Updated remaining blobs from V11.0.2.0.QFBEUXM
Updated prebuilt kernel to latest Pie
twrp-3.3.1-3-grus-20190802
Switched to source-built kernel
Updated blobs from MIUI China developer 9.7.4
Added support for F2FS in kernel (tell me if decryption breaks on this file system though)
Added persist into fstab
Added vendor-side touch firmware
Get CPU temperature from proper thermal zone
Disabled vbmeta checks
Only allow image backups for system and vendor
Symlinked /system to /system_root/system for backward compatibility
Misc stuffs
TWRP and f2fs-tools upstream changes
twrp-3.3.1-2-grus-20190609
Fixed wrong USB-OTG mount point
twrp-3.3.1-1-grus-20190603
Updated prebuilt kernel and DTBO from MIUI China developer 9.5.30
Corrected vendor image flashing
Support for wiping /vendor
Support for flashing and backup up (as part of boot) DTBO
Defined TW_SCREEN_BLANK_ON_BOOT
(Properly) excluded TWRP app
Included private recovery configuration
twrp-3.3.1-0-grus-20190531
Initial build.
Notes
Don't use fastboot boot to boot the recovery; it'll proceed to boot system instead using recovery's kernel. If this happens with your current kernel's boot image security patch being older than recovery one, you're basically busted as FBE keys are upgraded the time newer combination of system + vendor + boot image security patches are detected.
If you're out of luck in this situation, the only way to resolve is to format data (just backup your data to somewhere safe before doing so).
If you flash disabled vbmeta, you can't flash stock MIUI zips until the original vbmeta is restored.
Wrapped key support is added into recovery just for anticipation, although not defined by default in fstab.
I can't test it since EEA device so far is on March ASB as of V10.2.5.0 stable.
Otherwise, basic functionalities including decryption should work.
Edit: grus doesn't have anti rollback enabled at this moment, but Xiaomi may enable it in the future...
it is save changed from wzsx150 twrp ? or must on fastboot ?
bonbibonkers said:
it is save changed from wzsx150 twrp ? or must on fastboot ?
Click to expand...
Click to collapse
If already on any version of TWRP, just flash it using Flash Image option to recovery partition.
ok, gonna test it out , many thanks great work ??
Thanks! working so far so good
krasCGQ said:
If already on any version of TWRP, just flash it using Flash Image option to recovery partition.
Click to expand...
Click to collapse
Working fine when flashing from wzsx150 twrp version.
krasCGQ said:
If already on any version of TWRP, just flash it using Flash Image option to recovery partition.
Click to expand...
Click to collapse
i already flash it, worked good. but the CPU Temps is little misreading, i think.... it can go up to 80° C lol
rzki03 said:
i already flash it, worked good. but the CPU Temps is little misreading, i think.... it can go up to 80° C lol
Click to expand...
Click to collapse
Just ignore it. That same CPU temperature glitch also happens on sirius.
Wow, finally an *actual* twrp
Sent from my Mi 9 SE using Tapatalk
krasCGQ said:
Just ignore it. That same CPU temperature glitch also happens on sirius.
Click to expand...
Click to collapse
okay then. thank you!
@krasCGQ
Hey, in next release can you add the option to backup and recover dtbo partion/image like with this recovery https://forum.xda-developers.com/mi-9-se/how-to/recovery-twrp-lr-team-wzsx150-v3-3-0-t3926219 ?
Thanks
denzel09 said:
@krasCGQ
Hey, in next release can you add the option to backup and recover dtbo partion/image like with this recovery https://forum.xda-developers.com/mi-9-se/how-to/recovery-twrp-lr-team-wzsx150-v3-3-0-t3926219 ?
Thanks
Click to expand...
Click to collapse
So this release doesn't have Backup/Restore working?
luisbelmont said:
So this release doesn't have Backup/Restore working?
Click to expand...
Click to collapse
Yes, it has. My request was a bit different.
denzel09 said:
Yes, it has. My request was a bit different.
Click to expand...
Click to collapse
Oh, perfect! Thank you. What advantages does your request have?
luisbelmont said:
Oh, perfect! Thank you. What advantages does your request have?
Click to expand...
Click to collapse
To backup and recover dtbo image before and after flashed this custom kernel: https://forum.xda-developers.com/mi...nel-okitakernel-v1-0-mi-9-se-27-2019-t3934029
Thanks for the work! Great seeing you here after ZenFone 2 and Redmi Note 4. Hopefully a KudKernel will be in the works(if not already).
puppetminds said:
Thanks for the work! Great seeing you here after ZenFone 2 and Redmi Note 4. Hopefully a KudKernel will be in the works(if not already).
Click to expand...
Click to collapse
Kinda off-topic, but well rebasing over CAF is a tough job...
Sent from my Mi 9 SE using XDA Labs