yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Android Development] [NUT]:
Special Thanks:

[MENTION=2784807]DooMLoRD[/MENTION] for all his excellent work on our much loved Sony phones!

The Team Win developers for TWRP

The ClockWorkMod developers for CWM

@alexocean for his awesome job testing almost all FW releases and the discovery of SuperSU causing problems for the installation of this recovery!

[MENTION=4293754]RoberM[/MENTION] for testing

[MENTION=2335078]surdu_petru[/MENTION] for testing and handy pointers

[MENTION=2807379]Androxyde[/MENTION] for allowing to use his linux and mac adb binaries.

[MENTION=4567848]lancebukkake[/MENTION] for finding the TWRP 'fix' to use exFAT formatted sdcards!

[MENTION=4225567]delewer[/MENTION] for the final fix for TWRP and its use of exFAT formatted sdcards

[MENTION=5261329]DevShaft[/MENTION] for some code help on the windows installer (the menu!)

[MENTION=2807379]Androxyde[/MENTION] again, but now for his bash code/script suggestions... oh boy this guy is a genius! :highfive:

[MENTION=3662018]Tamirwig[/MENTION] and [MENTION=4675598]shoey63[/MENTION] for their excellent job at testing early BETA's (Xperia Z)

[MENTION=3843529]gregbradley[/MENTION] for his extensive testing on the Xperia Z1

Well, enjoy! :fingers-crossed:

The origins of this XZDualRecovery package are in the packages done by:

Krabappel2548, Cpasjuste and DooMLoRD

Thank you for your excellent work guys! :victory:

[Locked Bootloader]CWM recovery 6.0.2.8 for locked bootloaders v4[25-03] by Krabappel2548

[APP/RECOVERY] TWRP 2.4.3.0 for lockled bootloaders installer by Cpasjuste

[KERNEL][Z] DooMKernel {JB}(v06)[20130414] by DooMLoRD

Your thanks (and donations) should (also) go out to them, they deserve it! :highfive:
[Xperia Z1 Compact Android Development] Frodo07:
i need to be rooted for this right?
[Xperia Z1 Compact Android Development] [NUT]:
Yes, that's correct :)
[Xperia Z1 Compact Android Development] jenkins-84:
Thanks for the optional recoveries and helping this great phone kick off in style :p
[Xperia Z1 Compact Android Development] [NUT]:
Thanks my friend :D
[Xperia Z1 Compact Android Development] Riyal:
[MENTION=4904057][NUT][/MENTION]

Would like to report that your TWRP recovery log font seems a little too large for Z1 Compact screen. Can you resize the font size just on the log window of TWRP?

I think the issue is because the DPI set in default.prop is

# Graphics

ro.sf.lcd_density=480

where Z1 Compact only uses 320 DPI.
[Xperia Z1 Compact Android Development] [NUT]:
Thanks for the report, I'll have that fixed next version.
[Xperia Z1 Compact Android Development] Riyal:
Hi [MENTION=4904057][NUT][/MENTION] ! I tried changing the default.prop to ro.sf.lcd_density to 320 and it's still the same. So the issue is not with the default.prop. Now I don't know what the issue is.
[Xperia Z1 Compact Android Development] [NUT]:
The default.prop actually reflects the setting used at compile time. So changing that will have no effect indeed.

Like I said, I'll have it fixed in the next version :)
[Xperia Z1 Compact Android Development] Riyal:
[MENTION=4904057][NUT][/MENTION]

Ahh thanks for the info! :p Have compiled twrp 2 times now but never got that in my head.

Anyways another bug report. Seems like TWRP can't fetch system time. I would assume that this is a kernel issue? Won't stock kernel work with TWRP recovery?

UPDATE: Just checked the rc files when android boots and I can see that Xperia Phones use a binary called time_daemon to fetch the system time. And when I rechecked your recovery I noticed that it also tries to use time_daemon but noticed that the binary file is missing.
[Xperia Z1 Compact Android Development] [NUT]:
It's missing because I use the roms own version by mounting system and data for it to work, then when it did it's job I kill it again and unmount them again.
[Xperia Z1 Compact Android Development] Riyal:
Ahh yes you're right.. But still it doesn't work though...

Anti-Filesystem-Lock completed.
Correcting system time: Wed Feb 18 05:14:06 GMT 1970
Set GMT timezone...
Corrected system time: Wed Feb 18 05:14:10 GMT 1970

Also doesn't it kill itself when it's done?

root@D5503:/ # /system/bin/time_daemon
/system/bin/time_daemon
Killed
[Xperia Z1 Compact Android Development] [NUT]:
Nope, it's a daemon which is supposed to keep running to keep the time synced.

I could only get it to work correctly while running it from the on init stage.

Did you grab my recovery to test or did you build it yourself?

Once in recovery, you could connect to it by adb and run the script by hand to see if it will work ok.

/sbin/xzdualrecovery.sh is responsible for it to do that job.
[Xperia Z1 Compact Android Development] Riyal:
I am using your own recovery to test this. Strangely though adb doesn't work. So can't test it directly from recovery. I might unpack and repack your recovery to add logging on time_daemon later when I have time :D And maybe try fixing adb. So far that's all the bugs I could notice.

1. DPI issue on log window.

2. ADB doesn't work

3. Incorrect time.

Everything works :D
[Xperia Z1 Compact Android Development] [NUT]:
You can force windows to install the sony composite adb driver. it will work.
[Xperia Z1 Compact Android Development] Riyal:
I see! But how? Should I use device manager on windows for this? Hmmm by the way does TWRP use a custom graphics.c for it to work?
[Xperia Z1 Compact Android Development] [NUT]:
In device manager, connect usb, device with exclamation mark, right click it and choose install driver, then click let me choose from a list, untick the show only compatible drivers, then pick athe driver from Sony.

On twrp, yes it uses a custom graphics.c compared to cwm. But I never changed anything on it though, I only created a device repo for it and set the correct resolution. Just forgot to change the DPI setting.
[Xperia Z1 Compact Android Development] Riyal:
Heya [MENTION=4904057][NUT][/MENTION]

Here's some updates :D

~ # ←[6ndate
date
__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
Fri Feb 20 04:51:10 GMT 1970
~ # ←[6nxzdualrecovery.sh
xzdualrecovery.sh
__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
~ # ←[6ndate
date
__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
Thu Mar 6 17:34:28 GMT 2014
~ # ←[6ndate
date
__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
Thu Mar 6 17:35:16 GMT 2014
~ # ←[6n

It works if I manually execute xzdualrecovery.sh when it's already in recovery mode so what do you think? What I think is you need to create a post recovery init script in order for time daemon to actually work.

Or maybe adjust the init.rc of your recovery to execute first the recovery service before the xzdualrecovery.sh like this? Although then the LED prompt would be delayed too :p

service recovery /sbin/recovery

service xzdualrecovery /sbin/xzdualrecovery.sh
oneshot
disabled
[Xperia Z1 Compact Android Development] munch77:
Not that i know of? How would i fix?
[Xperia Z1 Compact Android Development] Lasantha:
For me too things went all nuts with latest recovery I flashed that rw fix from z1 now things seem ok. I'm not sure if it's related or not to above
[Xperia Z1 Compact Android Development] zxz0O0:
Please always attach the screenshot of terminal emulator.
[Xperia Z1 Compact Android Development] [NUT]:
You said you still have 120, try installing that and see.

Recovery should still work fine...
[Xperia Z1 Compact Android Development] munch77:
I dont have 120 hoped you did
[Xperia Z1 Compact Android Development] [NUT]:
:eek:

No, I don't keep older updates ... unless there is a serious change between versions I remove older ones right away...
[Xperia Z1 Compact Android Development] munch77:
Think ill just try a clean install, wiping data?
[Xperia Z1 Compact Android Development] Lasantha:
What I did was flash this recovery then flash that fix. Before that adaway failed and I could not use wifi even

---------- Post added at 08:33 PM ---------- Previous post was at 08:31 PM ----------

I'm sure nut knows what could have added by Flash that fix or am I missing something here ?
[Xperia Z1 Compact Android Development] munch77:
Flashed fix and didnt help :(
[Xperia Z1 Compact Android Development] Lasantha:
strange..

try this one and see.flash fix also
[Xperia Z1 Compact Android Development] munch77:
Fresh clean 757 install done and I think that's sorted it :) fingers crossed lol

Thanks for the help guys, much appreciated ;)
[Xperia Z1 Compact Android Development] munch77:
Thanks this worked now i changed to uk 757
[Xperia Z1 Compact Android Development] zxz0O0:
[NUT], do you only support latest firmware with your kernel?
[Xperia Z1 Compact Android Development] munch77:
Think it was a problem my end, with something id done? I fresh installed to 757 UK
[Xperia Z1 Compact Android Development] [NUT]:
Yes, for the official releases I do, but you can grab the git repo (link is on the DevDB thread) and use any kernel.sin to build a version for personal use. Linux only though.
[Xperia Z1 Compact Android Development] zxz0O0:
Hey [NUT],

I have a question for the kernel package Z1C-XZDRKernel2.7.121-BETA.flashable.zip, this is from the script:

package_extract_dir("tmp", "/tmp");
set_perm(0, 0, 0755, "/tmp/busybox");

ui_print("Installing version ", file_getprop("/tmp/dr.prop","version"));
set_progress(0.050000);

ui_print(" Mounting SYSTEM...");
run_program("/sbin/busybox", "blockdev", "--setrw", "/dev/block/platform/msm_sdcc.1/by-name/system");

busybox is extracted to /tmp folder. Later on it's executed from /sbin/busybox. Does that even work? Also it seems busybox is never copied to /system/xbin :confused:
[Xperia Z1 Compact Android Development] [NUT]:
Actually, you do have a valid discrepancy, but the kernel version does not rely on the busybox in system/xbin. Instead it relies on the one inside sbin.
[Xperia Z1 Compact Android Development] zxz0O0:
I think you didn't understand. I am using your kernel and I don't have any busybox in /system/xbin. Am I supposed to install it from the market?

Edit: The reason I'm asking is that there is an app that reported missing busybox. And as far as I remember atleast your dualrecovery installer copies busybox to /system/xbin. However, solved it by creating a symlink in /system/xbin to /sbin/busybox :good:
[Xperia Z1 Compact Android Development] [NUT]:
No, I perfectly understood your question and issue: my answer was a quicky... :)

The kernel version does not rely on anything inside /system/xbin because it assumes system can be empty. So busybox is never installed on system, because it's integrated with the ramdisk. You can either copy it to system/xbin or add /sbin to your $PATH to integrate it :)
[Xperia Z1 Compact Android Development] zxz0O0:
Is it possible that wipe /system does not work in Philz touch (dualrecovery 2.7.121)? Some people reported boot loops (which is caused if /system is not wiped) and using TWRP fixed it. ( http://xdaforums.com/showthread.php?p=52279189 )

[MENTION=1223183]santacruzdz[/MENTION] maybe you can comment?
[Xperia Z1 Compact Android Development] [NUT]:
It could very well be that it's not just PhilZ but the users who tested TWRP afterwards got lucky.

2.7.123 now online, this reverts some changes which most likely have been the cause of these issues.
[Xperia Z1 Compact Android Development] neonpsn:
Accessing TWRP and PhilZ is fine for me but when I change the default recovery to CWM in NDRUtils and reboot I just get a blank black screen. The phone works fine and everything else is running smoothly, it's just this that isn't working. I want to flash the RomAur 3.0 rom to the phone but the instructions require using CWM. Is this a known bug or am I doing something wrong?
[Xperia Z1 Compact Android Development] [NUT]:
Not sure, but you can use philz or twrp just as well to flash the rom.

Can anyone else confirm cwm to not work?
[Xperia Z1 Compact Android Development] zxz0O0:
Tried to reboot to CWM from NDRutils using your kernel but it booted into TWRP.
[Xperia Z1 Compact Android Development] [NUT]:
Hmmz, are you using the latest NDRUtills? It's included in the last build.

You are still using the kernel version right?
[Xperia Z1 Compact Android Development] zxz0O0:
I am using Z1C-XZDRKernel2.7.123-BETA.flashable.zip (19.33MB).

I open NDRUtils app and select ClockWork mod as primary recovery. Then I click on "Reboot to recovery". After that I reboots to TWRP.

XZDualRecovery.log: http://pastebin.com/wtCCLUfa

last_log: http://pastebin.com/BypPSBse

By the way, XZDR.prop still has the entry dr.recovery.boot=twrp after changing primary recovery to ClockWork.
[Xperia Z1 Compact Android Development] [NUT]:
Erh.. Can you check if there is a xzdualrecovery folder inside /cache?

Do you use an external SDCard? If so, how is it formatted?

Are you able to test using a different sdcard?

Your NDRutils, does it have the extended reboot options?
[Xperia Z1 Compact Android Development] zxz0O0:
There is a folder recovery in /cache. That's where last_log is from. There is no XZDualRecovery folder.

I have an external sd card, I think it's formatted as fat32. I don't have another sd card.

I have the options:

- Power Off device

- Reboot device

- Quick reboot

- Reboot to Recovery

- Reboot to Fastboot

No matter what I choose in NDRUtils, the next time I open the app the setting is reset to TWRP, so NDRUtils obviously can't save. By the way I am not using the sd permission fix, could that be the problem?
[Xperia Z1 Compact Android Development] [NUT]:
Eh, yes... That could be the cause I guess...

As soon as you try to reboot and the app has no access, it will create the prop file in cache, it will also not let you know it did that... The boot script will remove that folder as it is able detect the one on the sdcard...

[MENTION=5321428]AngelBob[/MENTION] can you confirm this?
[Xperia Z1 Compact Android Development] AngelBob:
Yes, seems I need to update the app again to try and work around the sdcard access issue.
[Xperia Z1 Compact Android Development] acabreram:
Bro i would to report making a back up with philz cwm don't show progress and i can't know if is stuck or still working. Thanks excellent work!!
[Xperia Z1 Compact Android Development] [NUT]:
[MENTION=3975929]zxz0O0[/MENTION]

Update NDRUtils from play and have another go, [MENTION=5321428]AngelBob[/MENTION] believes he fixed the issue, can you confirm it will reboot to any recovery on your device now?
[Xperia Z1 Compact Android Development] zxz0O0:
There is no update for NDRUtils on play store. Will check again later though. Anything else I need to do (like deleting the folder on the sd card)? Can't you just use root rights to access the file (as NDRUtils needs them anyway)?
[Xperia Z1 Compact Android Development] AngelBob:
That's what I've done, Update should come through play in a few hours, only pushed it 20 mins ago
[Xperia Z1 Compact Android Development] [NUT]:
Just installed it through play, so it's online.
[Xperia Z1 Compact Android Development] zxz0O0:
Alright, it saves successfully now, good job [MENTION=5321428]AngelBob[/MENTION]. Booting into CWM doesn't work though, the device will just reboot (TWRP works).
[Xperia Z1 Compact Android Development] jfxperias:
Hi [Nut]

Sorry, but I you have sent a mp for you ask of help... Can you help me please for learn and fix a little problem on my rom...

Regards,
[Xperia Z1 Compact Android Development] AngelBob:
Does it save as the required change as twrp cwm or philz?

Curious why cwm fails
[Xperia Z1 Compact Android Development] [NUT]:
So am I, as PhilZ works fine there should be no reason why CWM fails ... :eek:
[Xperia Z1 Compact Android Development] munch77:
Saves as boot to cwm, but only reboots as zxz0O0?
[Xperia Z1 Compact Android Development] zxz0O0:
dr.recovery.boot=cwm. As I said, the app saves it successfully. Looks like it's a problem with NUT's dualrecovery / kernel (I'm using the kernel).
[Xperia Z1 Compact Android Development] AngelBob:
When the device is rebooting to recovery & the LED turns on are you pressing a key?

Try without pressing anything, just let it reboot
[Xperia Z1 Compact Android Development] munch77:
No i dont press anything, screen just stays black then reboot
[Xperia Z1 Compact Android Development] [NUT]:
Sounds like a broken CWM to me :silly:
[Xperia Z1 Compact Android Development] emilic:
I have no access to recovery even if I ask for a reboot on ndrutils.

By the way my led no longer turns on when booting... Root still works.
[Xperia Z1 Compact Android Development] munch77:
Use latest recovery installer and run install.bat choosing the rooted with superSU option and will work again
[Xperia Z1 Compact Android Development] emilic:
Just did... My phone has the mount rw /system/ issue so install doesn't works... Led still off.

And to fix the rw issue I need the restore option... I think I am in an error loop hole
[Xperia Z1 Compact Android Development] zxz0O0:
If you have locked bootloader you need to start from scratch again.
[Xperia Z1 Compact Android Development] Lasantha:
copy that z1 r/w fix to internal sd .remove sd card then try to get in to recovery.might work,did once for me
[Xperia Z1 Compact Android Development] coolkoushik07:
Ndrutil cant reboot to cwm.. Reboot to twrp working fine but not working with cwm..

Sent from my Xperia Z1 Compact (D5503)
[Xperia Z1 Compact Android Development] AngelBob:
That seems to be an issue in XZDualRecovery, not the NDRUtils app.
[Xperia Z1 Compact Android Development] diabolica:
Hello!

I need help!!!!

Could you read the documentation for the installation process to make a video (for locked bootloader)

... that would help me a lot.

THX

Sent from my Xperia Z1 Compact
[Xperia Z1 Compact Android Development] [NUT]:
The installation of this package is easy enough to not intimidate anyone so far, so:

If you need a video guide to understand what you need to do, you will need to get some cahonas and just go for it, it's the best way to learn

'nuff said.
[Xperia Z1 Compact Android Development] einfachgaer:
Hi!

I've just flashed "Z1C-lockeddualrecovery2.7.123-BETA.flashable.zip (7.26MB)" and I'm not able to boot into CWM I just have a blackscreen and have to reboot via the reset button... :confused:

Using RomAur v3.0 based on .757 rom, stock kernel.
[Xperia Z1 Compact Android Development] [NUT]:
Known bug, you'll have to use PhilZ or TWRP, it will get fixed next update.
[Xperia Z1 Compact Android Development] zxz0O0:
kernel.sin from 14.3.A.0.761 Generic Nordic attached. Thanks :good:
[Xperia Z1 Compact Android Development] Marv42:
if I flash something with PhilZ-recovery screen gets black and returns to the start menu with out flashing.

wiith twrp I only gets errormessages.

I use the latest beta (.123), can I go back to .117 to update the firmware to the latest release?
[Xperia Z1 Compact Android Development] [NUT]:
Sounds to me that it's mainly the zip which is borked... Can you send me the logs from right after a failed attempt?
[Xperia Z1 Compact Android Development] zxz0O0:
I made a backup with Philz recovery. When I tried to restore it, it said the backup of data is corrupted (hashes of tar, tar.a and tar.b are correct) and I lost all my data. Is it possibly a bug in Philz?
[Xperia Z1 Compact Android Development] Marv42:
I hope it will help to see what is wrong, or what I do wrong

EDIT: sorry for flashing I used another sdcard (8gb), 2nd atteched file
[Xperia Z1 Compact Android Development] imana:
Thanks
[Xperia Z1 Compact Android Development] [NUT]:
It's possibly a bug but not in philz, disable the md5 check and be amazed. It seems to be something with the storage.

People who where plagued by this issue solved it by either reformatting their sdcard or replacing it.
[Xperia Z1 Compact Android Development] [NUT]:
I'll have a look at it soon. Thanks for the logs.
[Xperia Z1 Compact Android Development] [NUT]:
Hmm... can you try to do that again and create the backup right after flashing the ROM? There is no evidence what so ever in these logs you did...
[Xperia Z1 Compact Android Development] Marv42:
I will try, now I am at work. Not before 6 a clock (german time)

I use the dual recovery, witch recovery should I use? TWRP?
[Xperia Z1 Compact Android Development] [NUT]:
That by itself does not matter. But try using the latest package online and choose which ever recovery you like. You could also try both if you have the time.

Thanks, and don't worry about the time, I'm at work too ;)
[Xperia Z1 Compact Android Development] Marv42:
With the Twrp i can flash superSU without problems, then I formated system an tried to flash z1c...flashabe.zip an get the "E:error executing updater binary in zip".

Now I restore my backup. For flashing and backup/restore I used two different sdcards. I don't know about the logs, are the useful?
[Xperia Z1 Compact Android Development] Marv42:
Here are the logs.zip
[Xperia Z1 Compact Android Development] Marv42:
Okay, now its works, I have done a clean, fresh installtion from the bottom, flashed ftf-file, get root and make all updates without probs (latest Super-Su, Dual-Recovery), before I started I formated my 8GB sdcard with the computer and after that with the z1c. I used the TWRP-recovery, unchecked md-check

Now I restore myTitanium Backups.

I don't know why, but now It works.

Good night friends and thanks a lot
[Xperia Z1 Compact Android Development] fridlack:
I had installed the dual recovery with the locked bootloader method and dunno why some days ago I lose it, no led when booting and reboot to recovery didn't work

I only flashed a zip with moded lockscreen

There are a solution to flash dual recovery again without the full root process and wiping my data? I am still root

And someone know the reason a lose my recovery? I don't want to lose it again

Regards

Enviado desde mi D5503 mediante Tapatalk
[Xperia Z1 Compact Android Development] [NUT]:
Are you still able to write to system? If yes, then use the latest installer, that should work fine then.
[Xperia Z1 Compact Android Development] fridlack:
Thanks for the reply, i able to write in system, just try it with root explorer and i have R/W permisions and can copy and delete a txt file inside /system/

I will try the instaler this evening when im at home, i will report back if it works

Regards
[Xperia Z1 Compact Android Development] fridlack:
After some read in the post in the Cross-Device Development thread i find my mistake, i install the busybox from play store and this brake my recovery...

And now comes the bad news... i uninstall busybox from busybox app and move the busybox file from .XZDualREcovery to /system/xbin, rebooted and now i lose the /system/ write permisions... now it seens like i must to backup my device and start the root procedure again :( at least it boots :good:

I learn what to do and what not to do next time, nothing better than make errors to learn something :P

Thanks again for your work and best regards :)
[Xperia Z1 Compact Android Development] [NUT]:
Ouch... You forgot to set the correct permissions on it I guess...

Safest way out of these issues is to use the installer package, it will replace the busybox binary if needed and will set the correct permissions...
[Xperia Z1 Compact Android Development] lovebird882005:
problem when installing recovery

I'm on .757

I had rooted my device and had a problem when installing recovery.

After choosing option 2: Installation on ROM rooted with SuperUser, the cmd windows showed the problem and closed without any thing happened.

Please have a look at the capture and tell me what happen my device.

Thanks

Sorry for my bad English. :P