yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Android Development] testman86:
So your mentioned step on first page:

"When installing custom ROMs:

Be sure to flash Z1C-lockeddualrecovery[VERSION]-BETA.flashable.zip from http://nut.xperia-files.com after installing the ROM and before you reboot, this way you will not lose recovery!"

Is not working?

So I need to flash the modified/repatched boot.img with fastboot to get a working Recovery for first installation, then flash ROM.zip, and again flash modified/repatched boot.img afterwards to keep your recovery with CM12.1?

So just flashing Z1C-lockeddualrecovery[VERSION]-BETA.flashable.zip after ROM.zip (for example Cm12.1) in your Recovery version (modified/repatched boot.img) before rebooting device is not the correct way? Sorry for asking, I am a bit confused because on first page you described a different way, or I do not get your point :(
[Xperia Z1 Compact Android Development] [NUT]:
It is, but please read my reply on the devdb thread...
[Xperia Z1 Compact Android Development] testman86:
First of all thanks for your long explanation http://xdaforums.com/showpost.php?p=62352834&postcount=6088 , I read it several times to get it (I think before your hint now to read it again, I did not get the points...), it also helped me a lot to get an overview over the different recovery systems.

I think I mixed up these two recovery systems...

"- system integrated recovery (like xzdr)

- Custom kernel (with integrated recovery, like the xzdr kernel)"

I used the xzdr kernel method to patch the extracted boot.img of CM12.1 (with the tool on your homepage) for my UNLOCKED device (which had latest stock from sonys flashtool) to get a working custom recovery.

Then afterwards I used "Z1C-lockeddualrecovery[VERSION]-BETA.flashable.zip", which is meant to use if the bootloader is LOCKED and recovery is in system partition (I read again all the first pages and found the section "How to remove:" which clearly shows that recovery files are in complete different partitions), to get xzdr recovery again after flashing CM12.1.zip.

So I mixed up both methods -.-

I wanted to patch the boot.img of installed/flashed CM12.1 on an UNLOCKED device with flashing "Z1C-lockeddualrecovery[VERSION]-BETA.flashable.zip" after flashing CM12.1.zip. But CM12.1.zip overwrites my firstly flashed patched boot.img and "Z1C-lockeddualrecovery[VERSION]-BETA.flashable.zip" can not patch the CM12.1 boot.img on unlocked device, because it tries to patch in /system/ -.-

Do I get it now? :)

So I have to make a patched boot.img (of CM12.1.zip I want to flash) to get a working recovery, then flash CM12.1.zip and then flash patched boot.img right away afterwards before first reboot to overwrite boot.img of CM12.1.zip to keep xzdr recovery? So every CM12.1 update I have to extract boot.img, patch it on your homepage, go to installed recovery, flash new CM12.1.zip and afterwards flash patched boot.img (or created .zip) for the new kernel?
[Xperia Z1 Compact Android Development] [NUT]:
You now understand it correctly, that is what you should be doing indeed.
[Xperia Z1 Compact Android Development] oregon69:
small brackets...

Sorry. I have not read everything you wrote the user ..... but bothers me your 8,999 meter thanks! :) Now here it is perfect!!!

You deserve another 10,000 thanks for your wonderful work! keep going.
[Xperia Z1 Compact Android Development] [NUT]:
OCD? :D

Thanks though, I'm not planning to quit any time soon :angel:
[Xperia Z1 Compact Android Development] oregon69:
no OCD you stay peaceful. :) Only a joking way to recognize your work, for me wonderful. Have you reason 10000 are few. Still ahead! ;)
[Xperia Z1 Compact Android Development] mavz31:
Hi,

im just a new owner of z1c. can i use this Z1C-lockeddualrecovery2.8.21-RELEASE.installer.zip with my unlocked bootloader phone or is it just for lock bootloaders? thanks!
[Xperia Z1 Compact Android Development] [NUT]:
If you have unlocked your bootloader, then I suggest using the kernel version.
[Xperia Z1 Compact Android Development] zlata:
Is it compatible with lates firmware 5.1.1 ?
[Xperia Z1 Compact Android Development] ejay_gl:
Hi!

I have an experia z1 compact with lp 5.02 with lock bootloader. I want to know if i can root it without unlock the bootloader? I read last night another topic about root but it don't work anymore because it was patched by sony.

I want only root acces, i don't want to install custom kernels and roms.
[Xperia Z1 Compact Android Development] zlata:
Hey.U can flash prerooted stock firmware with flashtool.
[Xperia Z1 Compact Android Development] ejay_gl:
Thanks. It's been a while since i don't rooted other phone. It's been a while since i have rooted my Arc S and i forgot how i've done it.

Can you point me to a download link? Thanks!
[Xperia Z1 Compact Android Development] levone1:
Check 'general' section of this forum. There are many PRFs for 5.0 and 5.1.
[Xperia Z1 Compact Android Development] Nouatik:
recovery + M5

Hey!

I cant get The recovery and M5 kernel to work with eachother, the keep overwriting eachother.

Any suggestions?

Regards

//B
[Xperia Z1 Compact Android Development] kos25k:
Guys why i always lose my nut's dual revovery?i lost it after i flashed 5.1.1 zip i reistalled it from pc after the update and bow suddebly i lost it again.any solution?maybe it is better to first install it fron installer (pc) and then flash it again from recovery??

Στάλθηκε από το D5503 μου χρησιμοποιώντας Tapatalk

Στάλθηκε από το D5503 μου χρησιμοποιώντας Tapatalk
[Xperia Z1 Compact Android Development] sanik90:
I tried to install DualRecovery on my current CM recovery, upon restart, the CM recovery still exist and it runs on top of dual recovery, dual recovery did not replace it, any solution?
[Xperia Z1 Compact Android Development] coolvicky4u:
yes it works i tried
[Xperia Z1 Compact Android Development] Nouatik:
To both of you. Sony has released a TA update wich enables the real recovery partition, then you can flash whatever recovery you want and it will stay there.

Use EMMA to flash it.

Skickat från min Xperia Z1 Compact via Tapatalk
[Xperia Z1 Compact Android Development] kos25k:
Thanks dude.i suppose it needs pc..

Στάλθηκε από το D5503 μου χρησιμοποιώντας Tapatalk
[Xperia Z1 Compact Android Development] Klaus N.:
After flashing my pre-rooted 5.1.1 zip failed (before flashing I did wipe cache, system and dalvik/art), I've got the problem, that there's no more system or twrp, indeed. Is it possible to flash the dual recovery or the pre-rooted zip, e.g. via fastboot cmd? I'm on lb.

Thanks in advance!
[Xperia Z1 Compact Android Development] Nouatik:
It is possible if you have the boot.img (should be in the .zip file) for the system you wanna flash, then you can build a bootloader+dualrecovery at NUTs site. Just google :xperia nut. Look for kernelbuilder!

Skickat från min Xperia Z1 Compact via Tapatalk

---------- Post added at 08:49 PM ---------- Previous post was at 08:42 PM ----------

Ya. go here http://xdaforums.com/showthread.php?p=62892065

, i wrote little about it. Also links to get it done

Skickat från min Xperia Z1 Compact via Tapatalk
[Xperia Z1 Compact Android Development] sanik90:
thank you :D
[Xperia Z1 Compact Android Development] Frunzdoedel:
There is no way to flash a costom kernel on locked bootloaders:banghead::D:D
[Xperia Z1 Compact Android Development] Nouatik:
Oh didnt know that you had locked. just unlock then :3:cowboy::cool:
[Xperia Z1 Compact Android Development] Cereal_:
Thank you a lot for "BRICKING MY PHONE" !

This is the reason who I got a HARD BRICK on my PHONE and I CAN'T GET IT FIXED BY ANY METHOD !

Please if anyone can know how to help me, check out my thread here : http://xdaforums.com/sony-xperia-z1-compact/help/phone-probably-bricked-t3210341
[Xperia Z1 Compact Android Development] TechKiel:
Your phone is just probably Soft Bricked since you didn't UNLOCK your bootloader. It still responds, right?

Installing a custom recovery for LOCKED bootloaders doesn't mean that you can flash any other rom EXCEPT the Stock rom.

Please don't flame this thread because you didn't get that right.;)

Your DRM keys are still intact because your didn't unlock bootloader. :)

Options to fix your phone:

1. Use the repair function of PC Companion: http://talk.sonymobile.com/t5/Xperi...uctions-using-Pc-Companion-Win-or/td-p/249946

2. Use flashtool to Download and Flash a Stock Firmware to your Phone: https://drive.google.com/file/d/0B3E6MAcp04oGbGpoV3cta0pzRTA/view?usp=sharing

Good luck!
[Xperia Z1 Compact Android Development] [NUT]:
First of all: YOU and YOU ALONE are responsible for bricking your device. It wasn't me pressing the buttons and it wasn't me clearly not thinking straight.

Second of all: You should really change the way you ask for help, it took me a while to even WANT to help you...

Third: http://xdaforums.com/xperia-z/general/disaster-recovery-getting-z1-zu-z-zl-to-t2229250

Remember PC Companion replaced SEUS/SUS a while back.

You have a SOFT BRICK, because you flashed a custom kernel together with the ROM while still on locked bootloader.
[Xperia Z1 Compact Android Development] Cereal_:
I admit it I was mad because I freaked out and it's not your fault, I apologize for that. I will look into the link you gave me. Thanks anyways.

---------- Post added at 06:38 PM ---------- Previous post was at 06:37 PM ----------

Thanks a lot, that helped me. :)
[Xperia Z1 Compact Android Development] coolfranz:
After reading a lot of posts some things are still unclear to me concerning recoveries on Sony devices...

First of all: this recovery is always part of the boot.img? Regardless if bootloader is opened or closed?

Does it then work in the same way? Tough is it possible to backup a rom with a locked bootloader, open it and restore the rom?

Installing/ updating this recovery with an open Bootloader - also just flash the .zip?
[Xperia Z1 Compact Android Development] F308:
Can answer part of those questions.

Root and bootloader's locking/unlocking have nothing in common.

Having root you can make full backup of all partitions then restore them later, all or only some.

As usually in computers...

You cannot make backup of running system because it changes on the fly.

Created backup will be inconsistent.

You need to do a thing similar to starting computer from live CD.

This exactly is recovery mode (or at least I see it this way).

Don't know much what is role of boot.img in this action.

My guess is that none but possibly it has multiboot ability which stock boot.img mostly lacks.

Same with zips. You can load a zip on locked BL, too, but again - you don't do such things on running system.
[Xperia Z1 Compact Android Development] skyhirules:
A few noob questions:

When choosing to take a backup, I can see 3 main partitions to choose: kernel, system and data. What exactly does the "data" contain apart from the apps and their data?

What I'm trying to make clear to me is, in a case of having to restore a backup, if that (the backup) only included the kernel and the system partitions, what will the result be? Just the OS with no installed apps? What about my settings and the system apps? And do I have to restore the kernel partition too, or just the system one? I guess the kernel has to be restored only in cases of having screwed the kernel partition with a bad custom kernel flash etc.

Thanks a lot in advance for the response. Have a happy new year!
[Xperia Z1 Compact Android Development] [NUT]:
System and kernel are a pair which are not to be separated because of the features the kernel provides and the ROM might rely on to function properly.

The Data partition also contains the internal storage (sdcard0). When doing a default wipe, TWRP won't touch the internal storage. If you do a 'factory reset' or FORMAT the data partition, it will also remove internal storage contents. The Data partition also contains the dalvik/ant caches and the updates to the apps available on system.

If you make a 'disaster recovery' backup, you should actually be creating a backup of kernel, system and data. If you are doing incremental backups from the same ROM, just creating a backup of data will do, but you will need to be sure you have a solid backup of system and the kernel.

If you start with an empty device (for whatever reason) and restore only the system and kernel, you will start 'fresh' as if the device came from the factory. No apps (other then the ones you start with from system), no data, no settings. If your device was previously running the same ROM as you restore with the backup of system, the kernel can be skipped, but it won't hurt to also restore that, just in case the existing kernel got damaged.
[Xperia Z1 Compact Android Development] SirBoss1st:
Hi Nut,

i've a little trouble to install XZDualRecovery 2.8.24 on my Z1 Compact. I use Cm12.1 (20160129) with Superuser. After installation it will not boot into TWRP. The normal system is started.

At my Z2 Tablet it worked without problems.

regards

Frank
[Xperia Z1 Compact Android Development] [NUT]:
Did you use the kernel builder? If not, I don't support that.
[Xperia Z1 Compact Android Development] SirBoss1st:
probably not, I use the cm nightlys. Ok, then it will be just a coincidence that it was working with my tablet.
[Xperia Z1 Compact Android Development] [NUT]:
http://nut.xperia-files.com/feature/xzdr.html

That's the kernel builder I meant...
[Xperia Z1 Compact Android Development] SirBoss1st:
... so a short feedback.

After creating a kernel build I tried to install the zip with the recovery. That went of course wrong. So I used fastboot to install the boot.img. This caused a bootloop to the TWRP recovery. Finally, I used the removal tool to do it all again undone. And after that everything was working as it should :confused: and I can use the TWRP recovery. :D
[Xperia Z1 Compact Android Development] y333:
First of all, thanks for this great work !

XZDualRecovery Successfully installed on 5.0.2 without root :)

Unfortunately, after a system update with FlashTools to 5.1.1, XZDualRecovery has gonee :crying:

Is there any way to flash to 5.1.1 without root but with XZDualRecovery working ? :confused:
[Xperia Z1 Compact Android Development] [NUT]:
Yes, use prfcreator but skip the addition of supersu...

But you'll have to start over from 5.0.2...
[Xperia Z1 Compact Android Development] y333:
Thank you for your fast answer :)

Unfortunately some problems remain :angel:

What I've done :

Downgraded to 5.0.2 with flashtools

Installed XZDualRecovery from command line (with no root)

-> CWM & TWRP working both but having "Installation FAILED!" message. See attached file View attachment XZDualRecovery.txt for command line details

Used PRFCreator v1.2 :

Used 5.1.1 FTF

Checked : Kernel, FOTAKernel, Modem, LTALabel , Signed zip

I was forced to provide on SuperSu zip, so I provided an empty ZIP

Recovery ZIP : Z1C-lockeddualrecovery2.8.26-RELEASE.combined.zip

Moved flashable-prerooted.zip file to my SD Card

Started TWRP

Wiped system, data, cache, dalvik-cache

Installed flashable-prerooted.zip

Now 5.1.1 is working but I've lost CWM & TWRP access :rolleyes:

What did I do wrong ?

Regards,

PS : I apologize for my bad English...
[Xperia Z1 Compact Android Development] bgmarian:
sony z1 compact, stock firmware .108ftf

1. phone rooted

2. installed recovery

3. phone dont boot on recovery TWRP

????? what is wrong /?????
[Xperia Z1 Compact Android Development] ThePS4Gamer:
Where is the TWRP 3.0? Where is the Material Design based TWRP?
[Xperia Z1 Compact Android Development] LukeHorizon:
So I made a backup of stock Rom with twrp 2.8.x from Dual Recovery ... However I now have 3.0.0 Fota twrp.. Can I restore that Backup?
[Xperia Z1 Compact Android Development] [NUT]:
of course... :eek:
[Xperia Z1 Compact Android Development] bheemz:
Help

How to install this apk?
[Xperia Z1 Compact Android Development] jasmineloveflower:
Hello there Mr. NUT i wanted to thank you for your time and effort in providing twrp for my newly purchase z1 compact. Omg i didnt know what i was getting into rooting and unlocking bootloader on a nexus tab and even samsung tablet is a breeze however with sony omg again i had to read endless websites to figure out what the hell i was doing cause it was crazy hard. I mean learning about how to use flashtools, Android Sdk, learning the difference in putting the phone in Flashmode or Fastboot mode, using an image to flash a recovery onto the phone by using android sdk command window, dammmm now i feel like i can teach this **** lol. Anyway, it all began with using your file and not being able to use it on android 5.1.1 or above I sorta enjoyed the process now i wish i there was a way to unlock the bootloader on a samsung s4 then i be a genius anyway again thank you for making it possible to enjoy roms and kernels :)
[Xperia Z1 Compact Android Development] xdahue:
It took me 15 mins to find the link, which wasn't working. How hard is it to attach the damn file in the post itself?

Also "Please do not mirror my files!" does not hold weight. Anyone can mirror your files as long as he/she complies with the license.
[Xperia Z1 Compact Android Development] levone1:
Second post...

Also, there's no threat in 'please' - it's just a request.
[Xperia Z1 Compact Android Development] JIJOK:
so, I can use this whitout root ? someone else who tested this ?
[Xperia Z1 Compact Android Development] icedzed:
hello, i've installed the XZDualRecovery, booted into it, rebooted the phone and now i'm in boot loop, sony logo on the screen from hours.. can't boot into recovery or in system, how can i solve it? power and vol + doesn't work, power and vol- doesn't work
[Xperia Z1 Compact Android Development] EpicLPer:
I guess this project is dead?
[Xperia Z1 Compact Android Development] Hipig:
Use this upgrade your original TWRP to 3.0.2.0 for Z1C ;）

Mega

mega.nz/#!x4QmTbzS!24vJBLcoETY24WTSQvQdhmC609Oscm63Dz_0oVDwypA

Zippyshare

www23.zippyshare.com/v/NHJE71AU/file.html
[Xperia Z1 Compact Android Development] jho55:
why installing an old twrp version?
[Xperia Z1 Compact Android Development] tramp20:
Thank you.

How to install? Simply install the zip with TWRP or CWM?
[Xperia Z1 Compact Android Development] jho55:
Get 3.2.1.0 from another thread. It is newer...
[Xperia Z1 Compact Android Development] Andro1dism:
Did anyone ever try this with KingRoot installed? I bought it second hand and it won't uninstall ....
[Xperia Z1 Compact Android Development] [NUT]:
:confused: :eek:

FFS ... That actually makes no sense :mad:
[Xperia Z1 Compact Android Development] TheQwertiest:
I just replaced the old file in the corresponding folder and rebooted in the recovery, was that the right path?
[Xperia Z1 Compact Android Development] [NUT]:
Never question yourself mate, I'm assuming you did what I told you to do in any case. I'm just venting frustration :p

And yes, you did it the correct way.
[Xperia Z1 Compact Android Development] TheQwertiest:
Well, I should question myself, when doing things I'm not familiar with :cool:
[Xperia Z1 Compact Android Development] [NUT]:
True that, but in this case, no :)

Can you create the screenshot/paste of the content of both the folders you found?
[Xperia Z1 Compact Android Development] TheQwertiest:
If needed, I can just the whole folder content, but here are the screenshots:
[Xperia Z1 Compact Android Development] Riyal:
[MENTION=4904057][NUT][/MENTION]

TWRP fb text size is ok and not overflowing now! :)

Also tried philz recovery and I can confirm that brightness path is still wrong on 2.7.95 & the one you uploaded on the previous page. Tried opening the binary and I can see that the brightness sys file path is still wrong.

Check the screenshot I've uploaded.
[Xperia Z1 Compact Android Development] [NUT]:
[MENTION=4451231]TheQwertiest[/MENTION], [MENTION=4386647]Riyal[/MENTION]

:eek:

That's odd ... originally it was using that exact same path... hmm I might know what's wrong ... :silly:

(checks private patches)

Doh... what I thought ... :p

In the private patches (which I apply every time I build a recovery ramdisk) there still was an older philz binary :cowboy:

http://nut.xperia-files.com/tmp/recovery.philz.cpio.lzma

Try it once more please :angel:
[Xperia Z1 Compact Android Development] TheQwertiest:
For some reason, I thought the same thing (i.e. that recovery file was actually the same). Anyway, brightness control is working now, system time is read correctly, and the fonts size is increased appropriately =)

Good job and thx for the help ;)

PS: the 200th post! =)
[Xperia Z1 Compact Android Development] [NUT]:
Thanks for the confirmation, I'll include this one in the next release :good:
[Xperia Z1 Compact Android Development] zxz0O0:
Hey NUT,

Could you update your package for KitKat firmware? Thanks!
[Xperia Z1 Compact Android Development] [NUT]:
Working on it.

Bare with me though, TWRP will have an issue mounting /system by means of tapping the mount option. Mounting it by hand using adb works fine.

PhilZ has an issue with installing zips from some sdcard filesystems, because of a new md5 checking feature...
[Xperia Z1 Compact Android Development] zxz0O0:
Nice. Just wanted to let you know that the phone does not boot anymore after using Z1C-lockeddualrecovery2.7.97-BETA flashable or installer. It just hangs at Sony boot logo.
[Xperia Z1 Compact Android Development] funiewski:
[MENTION=4904057][NUT][/MENTION] off topic:o

i have tried to make a flashable zip to get latest twrp flashed on fota for the liquid rom i use now

i used this .zip file http://xdaforums.com/showthread.php?t=2653810 which works on z1c, tried to reapck and use your 2.7.0 twrp with this tool http://xdaforums.com/showthread.php?t=2073775

but no go, i can flash but phone is hanging on sony logo and than rebooting, have to flash fota.sin to get back recovery :cyclops: any hint?
[Xperia Z1 Compact Android Development] Darkimmortal:
Do you have an ETA on the updated recovery? I'd be happy to test any builds you want to send my way since my phone is currently wiped from my own attempts
[Xperia Z1 Compact Android Development] Riyal:
[MENTION=4904057][NUT][/MENTION]

Haven't flashed kitkat yet but could you tell me what's the issue with the mount option in TWRP?
[Xperia Z1 Compact Android Development] papzi57:
Please You very much Dear NUT!

Help us!

I've flashed the Z1c....97..., and then stuck hangs up at Sony logo. I can repair only with SUS, and now I have Z1c with Android 4.4.2, but without root and recovery.

Quite a few app need root and allow access the external sd card: this programs now do not work!

Please You very much Dear NUT!
[Xperia Z1 Compact Android Development] cc546:
NUT said he is having a hard time in finding why TWRP cannot mount system.

For now...

In step 9, when you flash D5503_14.3.A.0.681_Generic UK.ftf (4.4) exclude both system and kernel.

Then boot to TWRP (vol down) and flash everything, then go to reboot -> power down. Do not reboot to system.

Finally go to flash mode, flash everything in D5503_14.3.A.0.681_Generic UK_stripped.ftf

http://xdaforums.com/showpost.php?p=51280174&postcount=1681

You should thank zxz0O0 for that :)
[Xperia Z1 Compact Android Development] JmJ17:
Is it possible to apply this tutorial while appears "Bootloader unlock allowed: No" in the Service Info menu?
[Xperia Z1 Compact Android Development] [NUT]:
Yes sir, it's primarily meant for devices with a locked bootloader.
[Xperia Z1 Compact Android Development] Lasantha:
it seems .99 working on Z1 KK time to test ppl...:)
[Xperia Z1 Compact Android Development] [NUT]:
2.7.99 Z1 Compact version now online.

This will fix the mount issues on the KitKat ROM.
[Xperia Z1 Compact Android Development] felipeacydc:
Liiink!!!
[Xperia Z1 Compact Android Development] zxz0O0:
http://nut.xperia-files.com/
[Xperia Z1 Compact Android Development] mikk_11:
[MENTION=4904057][NUT][/MENTION] First thanks for your work. But...

Today I flashed the .99 version of dualrecovery. The I backuped my phone running KK with PhilZ recovery. After that I tried to restore the backup on KK but the system breaks. I stucked at the "SONY" logo. I think there are still small issues with the recovery.