yashsingh1/xdaforums huggingface dataset:
[Zuk Z1 Original Android Development] Breadcrust:
[IMG="Demo"]http://i.imgur.com/u8FLTjI.png[/IMG]

https://youtu.be/z5U5QIEbWtI

[IMG="Change Log"]http://i.imgur.com/Rxh6aEY.png[/IMG]

Version 2.0: TWRP image is now running with the Chroma Kernel as it's kernel. Reduces heat output and battery consumption of the device, added a new splashscreen too.

Version 1.3: Fixed zips not flashing on the international variant due to mismatched .prop files.

Version 1.2: Fixed version 1.1's compilation error causing it not to flash to recovery partition properly, could only be used tethered to PC.

Version 1.1: Fixed E: A render request has failed which was caused by a miss-written UI XML

Version 1.0: First working version of TWRP for Z1

Please be aware if you are running the official Cyanogen OS image OTAs will not apply automatically, you will need to install the incremental ZIPs posted by Titokhan in the "How to root ZUK Z1" thread in the Help and Troubleshooting forum. They will be on your device if you have downloaded the system update but I am yet to find this directory. If anyone finds the download location please post below and test if they will apply.

I am very aware you can't install OTA updates due to the device ID mismatching. I just posted a solution in the Android Development thread HERE credit to Radii for helping me out while working on this with him. Drop us a thanks for our hard work? Means a lot to use you know :) Each one counts!
[Zuk Z1 Original Android Development] Klanac89:
Mad props for this!

Gesendet von meinem Redmi Note 2 mit Tapatalk
[Zuk Z1 Original Android Development] plikmuny:
Hi Breadcrust, thanks for your wonderful work.

One doubt regarding Android 6.0 update, i saw a post on Internet about ZUK Z1 getting Marshmallow update and many users confirming it.

here is the link to this post explaining about updating procedure...http://apkmod4dl.com/howt-to/lenovo-zuk-z1.html

Can you confirm that it is working ? is Android 6.0 available for ZUK that soon ?

My ZUK is on my way, i am super excited to try new update with your recovery... Pls confirm it. Thanks in advance.
[Zuk Z1 Original Android Development] Breadcrust:
I'll be honest that post looks like a load of bollocks. The Android 6.0 source hasn't been released yet. Wait for Cyanogen 13 don't jump the gun and brick your phone.
[Zuk Z1 Original Android Development] LethalOne:
This recovery is useless :)

Cannot flash ZIP with CyanogenMod:

cm-12.1-YOG4PAS2WM-ham-signed.zip

Error appears.
[Zuk Z1 Original Android Development] Breadcrust:
Worked for everyone else mate. You can't flash incremental OTAs over ZUI ROMs

It would also help if you told me the error instead of just saying it doesn't work. Especially considering other people have no issues.
[Zuk Z1 Original Android Development] LethalOne:
Ah. Thanks for info.

But me and many people need TWRP that will flash CyanogenMod ZIPs. Because it will make flashing ROMs faster. I have way to flash CM to chinsese ZUI Z1 but if you made TWRP that flashes the CM ZIPs it will all be faster.
[Zuk Z1 Original Android Development] Breadcrust:
It will flash any ZIP just like any other TWRP it has not been modified in any way. If it will not flash I think there is an error with the ZIP or its user error
[Zuk Z1 Original Android Development] plikmuny:
Android 6.0 source code is released 2 days back already. source: cnx/software.com

i think it takes more time for CM 13 Rom for ZUK Z1...
[Zuk Z1 Original Android Development] Breadcrust:
I found that out off my Dad when I got home, looks dodgy though.
[Zuk Z1 Original Android Development] eagleeyetom:
It is dodgy and might be just a themed CM. We have to wait for the kernel source to come up first and then we can think about porting an AOSP. We must wait for an official CM though.
[Zuk Z1 Original Android Development] mk1129:
Thanks a lot for your work!!

Both failed... in bootloader mode (penguin logo). Any idea?

Maybe it's because I've updated to ZUI 1.0.062. with OTA...
[Zuk Z1 Original Android Development] Breadcrust:
Most likely an issue to do with ZUI I was working through some installation issues with someone the other night and when we got it working it was through booting the image instead of flashing due to the broken boot loader switch in CM. So I'd bet its the OS stopping you.
[Zuk Z1 Original Android Development] plikmuny:
Not working for me. Mine struck at infinite when I type get bootlock info..... I have to reboot my phone.

Mine came with CM 12.1. When I skip this step and go straight away to flash custom recovery, it says flashing failed, device locked!!!

But I have already enabled OEM bootloader unlock option and I am sure that bootloader already unlocked and enabled for tweaking. What should I do now?

I have all the drivers installed and I reinstalled twice just incase... But no help.

Anyone guide me on how to successfully flash custom recovery and root my device?

Thanks in advance
[Zuk Z1 Original Android Development] Breadcrust:
Any fastboot errors are caused by the device as fastboot will never stop you flashing an image even if it's not supposed to be flashed like flashing recovery to system. Open a thread and appeal there I unfortunately can't help on that front. People do seem to be having issues with the international device I am starting to think it's different in someway for the Chinese one. Maybe the USB id is different.
[Zuk Z1 Original Android Development] plikmuny:
Thanks for your Kind reply. How do i find out what my Device ID is ? I mean, how did you come to know that the device ID of Chinese ZUK Z1 is 0x2b4c ?

Sorry for being noob.
[Zuk Z1 Original Android Development] Breadcrust:
Paul O'Brien at MoDaCo found it
[Zuk Z1 Original Android Development] plikmuny:
Can you tell me what it shows when you type adb devices ?

i am curious... that might help me with my Problem.

Thanks in advance.
[Zuk Z1 Original Android Development] Breadcrust:
D:\AndroidSDK\platform-tools>adb devices

List of devices attached

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

c783ecb7 device
[Zuk Z1 Original Android Development] taba4real:
Trying my best to mount my Kingston dt3duo3c and it seems it can't read it... I know twrp should have usb otg function, does the non ext4 file system in my Kingston possible culprit why it can't be mounted in recovery?
[Zuk Z1 Original Android Development] Planet X:
OTG is not working with TWRP for Z1. A few people already mentioned that earlier but it hasn't been fixed yet :(.
[Zuk Z1 Original Android Development] samzou:
i try many times this :

C:\Users\Sam\Desktop\android-sdk-windows\platform-tools>fastboot -i 0x2b4c flash recovery recovery.img

target reported max download size of 1610612736 bytes

sending 'recovery' (10256 KB)...

OKAY [ 0.325s]

writing 'recovery'...

OKAY [ 0.147s]

finished. total time: 0.474s

but everytime i'm always in the stock recovery, can you help me please ?
[Zuk Z1 Original Android Development] MKKLR21:
You'll have to boot to TWRP

immediately

after flashing!

Power off, push and hold Vol+ and Vol- and power on. When you see TWRP splash, release Vol keys.
[Zuk Z1 Original Android Development] samzou:
this working for me, perfect thank you my friend
[Zuk Z1 Original Android Development] cryptoluks:
Are there any alternative Recoverys for the ZUK Z1 atm with OTG working?
[Zuk Z1 Original Android Development] -Diamond-:
I'm still waiting. What I'm doing wrong? :/

pic: http://www.directupload.net/file/d/4251/bh4qase8_jpg.htm
[Zuk Z1 Original Android Development] Evil Eye:
[MENTION=5606552]Breadcrust[/MENTION] i am on zui 1.6 and oem unlock option doesn't show in developer options like it used to show in zui 1.5, so can i still unlock the bootloader just by the adb commands? Also if i wanna flash cm13 on zui through your twrp recovery do i have to change model name or something? Current model name is K9 and CM codename is ham, will they conflict?

Thanks in advance :)

---------- Post added at 04:44 AM ---------- Previous post was at 04:38 AM ----------

Where can i find zui 1.0.050? Thanks :)
[Zuk Z1 Original Android Development] gerstavros:
You can google it and find many links like this one https://androidfilehost.com/?fid=24052804347826527
[Zuk Z1 Original Android Development] Evil Eye:
Thanks for the link. I am currently on zui 1.6 and can i downgrade to zui 0.9 or 1.10 with sd card update method? Thanks again :)
[Zuk Z1 Original Android Development] gerstavros:
Yes, i ve posted above the link with the guide.. http://xdaforums.com/showpost.php?p=64241771&postcount=18
[Zuk Z1 Original Android Development] Evil Eye:
mate, do i need to convert zui to cyanogenOS first before flashing twrp? because ZUI model name is K9 and CM is ham?
[Zuk Z1 Original Android Development] gerstavros:
Why u dont follow the guides?

Downgrade the ZUI version,. Then asap boot twrp and install cyanogenmod or other rom. You cannot flash twrp.
[Zuk Z1 Original Android Development] Evil Eye:
i read the guide but in the first post it was written that zui has to be converted to cyanogen OS first thats why i was confused. thanks for your help mate :)

---------- Post added at 05:33 PM ---------- Previous post was at 04:51 PM ----------

mate, i booted into twrp and tried flashing unofficial cm13 mr coldbird rom but i am stuck in a bootloop now.

what i did after boooting into twrp, clean wipe except internal storage, flashed rom, gapps, mm firmware, now i am stuck on bootloop, i can go to zuk recovery but it only shows me "power off, reboot, install update package" options. when i click install update package it says failed. this is a nightmare please help me.
[Zuk Z1 Original Android Development] gerstavros:
I m not sure what i had done. Maybe try the following:

After downgrading ZUI, boot the OFFICIAL cyanogenmod recovery with fastboot boot (z1.recovery.testkeys.img)

Install from there the official CM (cm-12.1-YOG4PAS3OH-ham-signed.zip)

Then use twrp for installing other roms. If that doesn't work, u may have to install all the official CM firmware with fastboot flash.

The CM files can be found here: https://xq55.app.box.com/ZUKZ1ROMs/1/4930531621
[Zuk Z1 Original Android Development] Evil Eye:
i have entered a bootloop and i only see zuk recovery with useless options, i tried and got into fastboot mode by pressing volume up and power button but my laptop wont recognize the phone, i tried with another laptop too. installed zuk driver and qualcomm driver too. but in vain
[Zuk Z1 Original Android Development] gerstavros:
Did u forgot the -i 0x2b4c option in fastboot maybe?
[Zuk Z1 Original Android Development] Evil Eye:
i did that, it keeps saying waiting for device. any fastboot zuk drivers out there which can install? it says usb device not recognized all the time whenever i connect via fastboot. phone on fastboot now shows a penguin with message "fastboot mode, sn: f409beec, status: unlocked" in fastboot mode
[Zuk Z1 Original Android Development] coolshan:
i am having a strange problem. my bootloader is unlocked. i flashed the recovery and it said okay. but when i reboot into recovery it enters cyanogen recovery instead of twrp. i flashed twrp recoveries from different servers also. the cm update is also unchecked in settings. any idea what is the problem

solved : You'll have to boot to TWRP immediately after flashing!

Power off, push and hold Vol+ and Vol- and power on. When you see TWRP splash, release Vol keys.

Thanks
[Zuk Z1 Original Android Development] gerstavros:
You cant flash recovery. You only boot it once every time with fastboot
[Zuk Z1 Original Android Development] Nseven94:
Hello , I apologize in advance for the bad English , I have a problem with the bootloader unlocking process , I downloaded the necessary SDK files , installed the drivers and Google launched its adb command window . They go into fastboot in the phone with the appropriate command , and at this point if I try to type ''-i 0x2b4c'' I am told that ''-i is not recognized as an internal or external command'' .

If I try instead to type ''fastboot oem -i 0x2b4c get- device -info'' appears ''...'' .

Can you help me ? Thank you!
[Zuk Z1 Original Android Development] NahumG:
Computer won't recognize my zuk

I'm in platform-tools directory and when I open CMD there, and write adb devices - the phone ins't recognized (the device connectef with usb)... I dowloaded the google usb driver and update the adb driver but nothing changes... :rolleyes: solution anyone?
[Zuk Z1 Original Android Development] kicsiii:
I tried anything but i can't fix the problem. I can't reboot in ADB because always get "error: device not found" error:(

SDK and Z1 driver in my win10. So if anybody have tipp for me, peasy hep me.

Best regards
[Zuk Z1 Original Android Development] Maranga:
Nseven, when i rooted i've founded many mistyping on many websites on the commands. I'm sorry but i just copied like a monkey so i don't remember the exact string. Search on others websites for the right command to write.
[Zuk Z1 Original Android Development] msdgrm:
fastboot error

hi...

i have problem with fastboot. when I put: fastboot -i 0x2b4c flash recovery ....img

it returns:

target reported max download size of 1610612736 bytes

sending 'recovery' (8686 KB)...

OKAY [ 0.279s]

writing 'recovery'...

FAILED (remote: Invalid data)

finished. total time: 0.389s

tried 3 recovery files but:(

where is the problem? what is the solution? Tnx....

(my device info:

C:\adb>fastboot -i 0x2b4c oem device-info

...

(bootloader) Device tampered: false

(bootloader) Device unlocked: true

(bootloader) Charger screen enabled: false

(bootloader) Display panel:

OKAY [ 0.008s]

finished. total time: 0.009s)
[Zuk Z1 Original Android Development] danielbrik:
Nice guide

---------- Post added at 11:03 PM ---------- Previous post was at 11:03 PM ----------

Wish i'd found it sooner
[Zuk Z1 Original Android Development] t-mobile_mda:
same pb on my device...

C:\Users\Desktop\Zuk>fastboot -i 0x2b4c flash recovery TWRP-3.0.2-ham.img

target reported max download size of 1610612736 bytes

sending 'recovery' (12084 KB)...

OKAY [ 0.405s]

writing 'recovery'...

FAILED (remote: Invalid data)

finished. total time: 0.552s

and tried to install zip file on stock recovery ( twrp-3.0.2-ham.zip renamed to update.zip) it gives fail..
[Zuk Z1 Original Android Development] Frogger4600:
Are you trying to flash TWRP over stock ZUI recovery? You can't do so directly. Here's a workaround:

1. QPST early version ZUI. (can probably skip this step, but in later ZUIs you lose the option in Dev Menu to enable USB debugging & OEM unlock)

2. Enable USB debugging and OEM unlock

3. Unlock bootloader if not already done.

4. adb reboot bootloader from system

5. fastboot -i 0x2b4c boot twrp.img (so BOOT into twrp, instead of trying to flash it directly)

6. In TWRP, wipe ZUI; install another rom

7. Reboot to bootloader

8. fastboot -i 0x2b4c flash recovery twrp.img (should work this time, with ZUI replaced)

BTW you know there are much more up-to-date versions of TWRP for ham available now, right?
[Zuk Z1 Original Android Development] damsolu:
Great work! :good:

is possible return to stock recovery? (for install OTA updates, etc)

Thanks
[Zuk Z1 Original Android Development] Breadcrust:
Not as of yet but Titokhan has been posting OTA links into the "How to root zuk z1" thread under the General board.
[Zuk Z1 Original Android Development] jacksparao:
advice

I live in Inida, I have the phone since a month but I don't find any OTA till now.. Please suggest me am running on new version or old/

here you find the about phone info.View attachment 3508095
[Zuk Z1 Original Android Development] Glops4:
You are running an old version.
[Zuk Z1 Original Android Development] jacksparao:
new version

Can you give me a idea to update the device ?
[Zuk Z1 Original Android Development] Breadcrust:
Contact Titokhan on XDA he has all the ota links. You should be able to flash the incremental OTAs in TWRP just make sure you do it in order.
[Zuk Z1 Original Android Development] jacksparao:
posting

If he share the ota links here.. it will be really easy people like me..

thanks for pointing me..
[Zuk Z1 Original Android Development] Breadcrust:
Hmm... the more you know eh? I just tried it and got the K9 error. How weird...
[Zuk Z1 Original Android Development] Breadcrust:
Build looks like this.

assert(getprop("ro.product.device") == "Z1" || getprop("ro.build.product") == "Z1" || abort("This package is for device: Z1; this device is " + getprop("ro.product.device") + "."););
ui_print("Verifying current system...");
getprop("ro.build.fingerprint") == "zuk/ham/Z1:5.1.1/LMY48B/YOG4PAS2RM:user/release-keys" ||
getprop("ro.build.fingerprint") == "zuk/ham/Z1:5.1.1/LMY48B/YOG4PAS2WM:user/release-keys" ||
abort("Package expects build fingerprint of zuk/ham/Z1:5.1.1/LMY48B/YOG4PAS2RM:user/release-keys or zuk/ham/Z1:5.1.1/LMY48B/YOG4PAS2WM:user/release-keys; this device has " + getprop("ro.build.fingerprint") + ".");
apply_patch_check("EMMC:/dev/block/bootdevice/by-name/boot:6696960:468432478c87207ce216934bc57af80c2c926d98:6690816:f69df1de34582111de1b7ff388c2f6e1a3ae3946") || abort("\"EMMC:/dev/block/bootdevice/by-name/boot:6696960:468432478c87207ce216934bc57af80c2c926d98:6690816:f69df1de34582111de1b7ff388c2f6e1a3ae3946\" has unexpected contents.");
if (range_sha1("/dev/block/bootdevice/by-name/system", "62,0,32770,32897,32899,33411,65535,65536,65538,66050,98303,98304,98306,98433,98435,98947,131071,131072,131074,131586,163839,163840,163842,163969,163971,164483,196607,196608,196610,197122,229375,229376,229378,229505,229507,230019,262143,262144,262146,262658,294911,294912,294914,295041,295043,295555,327679,327680,327682,328194,360447,360448,360450,360962,369349,393216,393218,425984,425986,458752,458754,491520,491522") == "f5d5638f79dcf313fbb150e4c72bae2de348d87d" || block_image_verify("/dev/block/bootdevice/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat")) then
ui_print("Verified system image...");
else
(range_sha1("/dev/block/bootdevice/by-name/system", "2,0,1") == "d17d144dd4d98555e9e4c4ef40d5c9004412db89") || abort("/dev/block/bootdevice/by-name/system has been remounted R/W; reflash device to reenable OTA updates");
abort("system partition has unexpected contents");
endif;

# ---- start making changes here ----

ui_print("Patching system image after verification.");
show_progress(0.900000, 0);
block_image_update("/dev/block/bootdevice/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat");
ui_print("Patching boot image...");
show_progress(0.100000, 10);
apply_patch("EMMC:/dev/block/bootdevice/by-name/boot:6696960:468432478c87207ce216934bc57af80c2c926d98:6690816:f69df1de34582111de1b7ff388c2f6e1a3ae3946",
"-", f69df1de34582111de1b7ff388c2f6e1a3ae3946, 6690816,
468432478c87207ce216934bc57af80c2c926d98, package_extract_file("patch/boot.img.p"));
ui_print("Writing radio image...");
set_progress(1.000000);

Technically all Z1 stuff should say K9...
[Zuk Z1 Original Android Development] Glops4:
Oh, that's odd... I did not root the device yet since last time.
[Zuk Z1 Original Android Development] Breadcrust:
When attempting to flash an OTA to fix your issue I noticed that OTAs are disable by the system when you edit the system parition.

My proposal for the devs working on this device is below.

http://xdaforums.com/zuk-z1/help/consolodation-knowledge-t3226665
[Zuk Z1 Original Android Development] Glops4:
Great, I hope we can get a fix real soon.
[Zuk Z1 Original Android Development] Breadcrust:
Glops patch just went up from me and Radii look in the Android Development forum.
[Zuk Z1 Original Android Development] Glops4:
I have just seen it, I will give it a try.
[Zuk Z1 Original Android Development] skylar:
Thanks a lot.
[Zuk Z1 Original Android Development] plikmuny:
when i flash your recovery image it says okay, and the device is not rebooting into TWRP, instead it is booting into Cyanogenmod Recovery which has limited options to flash....

Any solution for my problem pls ..
[Zuk Z1 Original Android Development] decayed.cell:
You probably want to add the step where you check allow OEM unlock in Developer Options, otherwise you won't be able to run the fastboot oem unlock command
[Zuk Z1 Original Android Development] othe01:
yeah and it´s unlock-go and not just unlock.

Also -> fastboot -i 0x2b4c oem get-device-info

it is device-info and not get-device info.

At least for the international version; flashing TWRP doesn´t work for me neither, i have to boot into it.
[Zuk Z1 Original Android Development] MKKLR21:
The same thing for me. A little bit annoying when you always need a PC to boot custom recovery.
[Zuk Z1 Original Android Development] pd555:
Any advice please. I followed the instructions. i type adb reboot bootloader the phone boots to ZUK start screen (powered by Android) and goes no further. I type fastboot -i 0x2b4c oem get-device-info and it sticks on ...

I did enable developer options including oem unlock on the phone

Any ideas?

Thanks
[Zuk Z1 Original Android Development] :
Hello,

After install this recovery, I have a strange issue...

If I start the revice into recovery (TWRP), and after that, I restart the device normally, I don't have sounds until I wipe my data (from the default recovery, not when your)
[Zuk Z1 Original Android Development] pd555:
Just an update on this. I have been experimenting a bit. I disabled and re-enabled OEM Unlock on the phone a few times. Now instead of the start screen I get stuck on the screen Cyanogen Fastboot Mode.

Now I type fastboot -i 0x2b4c oem get-device-info and it sticks on ... (3 dots) I have to pull the USB and force reboot the phone. I am at a loss. Any help appreciated
[Zuk Z1 Original Android Development] javirenart:
Hi [MENTION=5606552]Breadcrust[/MENTION] I have ported a toolkit from OnePlus to our Zuk Z1 and included your TWRP in it . If you aren't happy about this I can change the toolkit or whatever. You can look at it here

Thank you so much for your work, we really appreciate it.
[Zuk Z1 Original Android Development] Breadcrust:
To everyone experiencing issues with installing. The guide was written for the Chinese one. Initiative will need to be employed for this to work with the international version.
[Zuk Z1 Original Android Development] pd555:
I have a feeling my issue might be driver related. I have tried the official Z1 driver 1.0.5 and google drivers etc. Could anybody who did succeed rooting let me know exactly what drivers you used? This might help others too

Most recently when in fastboot mode the Device Manager shows Android with an exclamation! I have tried the Google drivers on that but it always says no information on your device. If that gives anyone a clue. A fastboot driver on its own does not seem to exist
[Zuk Z1 Original Android Development] :
No one is suffering this issue?
[Zuk Z1 Original Android Development] radii:
i'm not
[Zuk Z1 Original Android Development] aaswar:
I do, and it's annoying cause I thought first it's defected device till I reset to factory settings.
[Zuk Z1 Original Android Development] vittogn:
Looks great [MENTION=5784275]javirenart[/MENTION]. Thanks.

I'll definitely try as soon as I have the Z1.
[Zuk Z1 Original Android Development] Breadcrust:
Radii my friend who helped with some projects has the international version confirming my TWRP image is cross compatible
[Zuk Z1 Original Android Development] radii:
I have twrp working on x3 zuk z1 international version
[Zuk Z1 Original Android Development] Breadcrust:
Well that settles it any issues are not related to my recovery system
[Zuk Z1 Original Android Development] Ollebro:
I can't get this to work on my device. It says OKAY but when I boot recovery its still stock.
[Zuk Z1 Original Android Development] Breadcrust:
ANNOUNCEMENT

Version 1.3 has been released allowing you to flash Z1 ZIPs to the K9 and vice versa.
[Zuk Z1 Original Android Development] Breadcrust:
You need to reboot your phone immediately. Look in the Official OTA links thread a fix has been documented.
[Zuk Z1 Original Android Development] liver20:
Hi, is possible flash zuk Last full stock rom with Last version of this recovery?

Enviado desde mi Z1 mediante Tapatalk
[Zuk Z1 Original Android Development] :
you need to use stock recovery