[OFFICIAL] TeamWin Recovery Project 3.3.1 For Zuk Z2 Pro

DD3Boh

Recognized Developer
Feb 16, 2017
305
1,330
93
Voghera

Disclaimer
Code:
/**
*  What you do with your device is your choice.
*  None of the developers of this software will be held accountable for any damages to your device or to third parties.
*  You should know this by now.
**/

What's this?

This is TeamWin Recovery Project for ZUK Z2 Pro (z2_row).

This is an official recovery support thread.

Known Issues
  • MTP broken in 3.3.0 and newer builds because of a TWRP issue with 4.4 kernel (you can still use adb push and adb sideload)

Requirements
  • Unlocked bootloader
  • Common sense and a Z2 Pro :p

Downloads, changelogs, installation info
All of this info can be found at the official info page.
If you use fastboot to install TWRP, you may have to specify a vendor ID in the commandline, like so:
Code:
fastboot [B]-i 0x2b4c[/B] flash recovery twrp.img
fastboot [B]-i 0x2b4c[/B] reboot
Thanks
@varotone for the initial z2_plus TWRP device tree (and also for the thread template :p)
@kubersharma for some commits in the device tree
cosmedd for his work on the TWRP tree for z2_row

Frequently Asked Questions

Is this recovery compatible with both treble and non-treble ROMs?
Yes, this recovery is compatible with both non-treble and treble ROMs mounting /factory as vendor (the most updated ones are doing so), while it isn't compatible with the ROMs renaming /factory as /vendor. If the ROM you're using is still using /vendor instead of mounting /factory as vendor, report this to the maintainer and tell them to update.
 
Last edited:

DD3Boh

Recognized Developer
Feb 16, 2017
305
1,330
93
Voghera
I'am using TWRP 3.2.3 since weeks without problems. Is this another version? Why should I use this one?
As first because this has the factory mounted as vendor support instead of factory renamed as vendor. If you're already using a build with this support and you downloaded it recently it means that the build is the exact same as this one. I created a thread so that things can get out of Telegram only and also because soon it'll become official (the old one is deprecated pretty much)
 

rower19

New member
Mar 22, 2019
2
0
0
What do you mean with "is not working"? What happens when you try to encrypt?
I have sucessfull encrypted my data partition with aex rom.
But twrp isn't able to decrypt it. Twrp asks for the password but after entering the right pass, i responds with password invalid.

Theres something that was changed in Android encryption (and twrp 3-2-3-1 should it fix for many other devices, here not).
Should not be a big thing.

Perhaps this helps:
review(dot)lineageos(dot)org/q/topic:%22bacon-twrp%22


Thanks for your work!
 

DD3Boh

Recognized Developer
Feb 16, 2017
305
1,330
93
Voghera
I have sucessfull encrypted my data partition with aex rom.
But twrp isn't able to decrypt it. Twrp asks for the password but after entering the right pass, i responds with password invalid.

Theres something that was changed in Android encryption (and twrp 3-2-3-1 should it fix for many other devices, here not).
Should not be a big thing.

Perhaps this helps:
review(dot)lineageos(dot)org/q/topic:%22bacon-twrp%22


Thanks for your work!
Hi, sorry for the late answer. Can you pm me on telegram so that we can discuss the issue and I can eventually send you some builds to test? t.me/DD3boh
Thank you!
 

g0r3t3x

Member
Feb 4, 2008
43
4
0
Neuchâtel
I have sucessfull encrypted my data partition with aex rom.
But twrp isn't able to decrypt it. Twrp asks for the password but after entering the right pass, i responds with password invalid.

Theres something that was changed in Android encryption (and twrp 3-2-3-1 should it fix for many other devices, here not).
Should not be a big thing.

Perhaps this helps:
review(dot)lineageos(dot)org/q/topic:%22bacon-twrp%22


Thanks for your work!
Checked with @DD3Boh and decryption for pie is working in a test build. He gonna push the new version after some more testing.

But be patient, we will be finally able to encrypt our device and decrypt it in twrp. :)

Thanks to him,

G0r3t3x
 

DD3Boh

Recognized Developer
Feb 16, 2017
305
1,330
93
Voghera
TWRP 3.3.0 just got released :)

Encryption was fixed, although mtp is broken because of 4.4 kernel (which is a must for encryption)
Instead of mtp you can just use adb push to push files to the internal memory, or either adb sideload <package path> to flash them directly without transferring to the internal storage (works only after having enabled adb sideload in the advanced TWRP tab)

Download link in the first post ;)
 

DD3Boh

Recognized Developer
Feb 16, 2017
305
1,330
93
Voghera
A new update has been released! TWRP-3.3.0-1 is present in the website
Changelog:
- Added edl reboot option (download mode)
- Don't wipe data if the command isn't sent by the user
- Sign the build with aosp keys

Go update your recovery ;)
 
  • Like
Reactions: Dark Obsessions

satmaster

Senior Member
May 2, 2008
182
56
0
A new update has been released! TWRP-3.3.0-1 is present in the website
Changelog:
- Added edl reboot option (download mode)
- Don't wipe data if the command isn't sent by the user
- Sign the build with aosp keys

Go update your recovery ;)
Perfectooo :good:
..btw: what about MTP? ..it works now?
 

lunloon

Member
Jul 27, 2011
12
0
0
I need some help with the Zuk Z2 Pro. I've flashed TWRP 3.3.0.1 and it seemed to work.
However, I'm unable to get the phone detected on my pc in TWRP, or ADB sideload. The phone gets connected while rebooted in system in Zui. Using zuk2pro driver.
I've also not able to mount data.
So i followed some instructions and reformat the partitions, but i forgot the phone could not be detected in TWRP.
I'll like to know if ROMs can be flashed using OTG-USB.
 

lunloon

Member
Jul 27, 2011
12
0
0
I need some help with the Zuk Z2 Pro. I've flashed TWRP 3.3.0.1 and it seemed to work.
However, I'm unable to get the phone detected on my pc in TWRP, or ADB sideload. The phone gets connected while rebooted in system in Zui. Using zuk2pro driver.
I've also not able to mount data.
So i followed some instructions and reformat the partitions, but i forgot the phone could not be detected in TWRP.
I'll like to know if ROMs can be flashed using OTG-USB.
I tried USB-OTG and it worked. Thankfully.

Can't make any sense out of the driver game.
 

Dolour

Member
Aug 16, 2015
22
1
0
Stuttgart
Sideload isnt working for me either, same as with the previous version, rendering TWRP essentially unusable when running a 4.4 kernel.
Resolve that first please, prior to adding more features. There arent THAT many kernels to choose from.
 

DD3Boh

Recognized Developer
Feb 16, 2017
305
1,330
93
Voghera
Sideload isnt working for me either, same as with the previous version, rendering TWRP essentially unusable when running a 4.4 kernel.
Resolve that first please, prior to adding more features. There arent THAT many kernels to choose from.
Probably you don't know why I even switched to 4.4 kernel, which is because 3.18 kernel in TWRP breaks decryption, which is quite an important thing.
Anyway I can build TWRP locally and send a build as that will somehow have mtp and USB in general working.
 
  • Like
Reactions: crisps