yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Android Development] wind0zer:
I messed up and am left with rooted kitkat rom, but no recovery. I tried the latest installer, gave adb permission..says cant mount system.
[Xperia Z1 Compact Android Development] [NUT]:
It could be that the latest version of philz is flawed, but it could just as well be a damaged or incomplete backup...

It can be a multitude of reasons for it to fail, really.

Connect usb, adb shell to your phone:

su
cat /sys/kernel/security/sony_ric/enable

What does it say?
[Xperia Z1 Compact Android Development] mikk_11:
Yes I know. I just want to tell you.
[Xperia Z1 Compact Android Development] hunhool:
hi guys,

seems to be have some problem with the latest z1 compact installer.

please see screenshot

I've used installer version 2.7.99
[Xperia Z1 Compact Android Development] [NUT]:
Try again with 2.7.100

That should work fine :good:
[Xperia Z1 Compact Android Development] hunhool:
I've got the same problem with the latest one :confused::(
[Xperia Z1 Compact Android Development] [NUT]:
Okay... there was some extra, I've fixed that now too... but from what I can see, it's been all trivial and with 2.7.100 it should at least have worked fine.

Can you try again and send me a new screenshot to check?
[Xperia Z1 Compact Android Development] hunhool:
here you go.

As the OP says it should be reboot into the default recovery at first time.

Well,my phone won't boot anywhere:cowboy:
[Xperia Z1 Compact Android Development] [NUT]:
In this case, it's not that weird... you are trying to install it on the KitKat ROM. Which happens to be not supported by the rootless option.

If you have a rooted ROM, choose the root APP you are using.
[Xperia Z1 Compact Android Development] wind0zer:
Thanks for your help NUT. I flashed the docomo firmware and started from the beginning. Thanks for the recovery!
[Xperia Z1 Compact Android Development] idimitro:
Sorry for the amateur questions but the installation process really got me confused with this flashing of different ROMs etc.

I have unlocked bootloader, Cwm recovery, and liquid smooth ROM installed. Can I use the TWRP recovery and which file will be applicable in my situation?

Thanks for the help.
[Xperia Z1 Compact Android Development] Rawh:
Hello,

I have used the "installer" 2.7.100-beta on my linux machine to root the z1c successfully.

I noticed the screen telling me at the end "Make sure firstboot goes to recovery" and then telling me "The device will now reboot", but nothing happens. When I am manually starting the device, it doesn't go into the recovery mode but instead just boots up.

I am unable to go into the recovery menu myself. When booting the device the green led never shows. It only shows the text 'sony' on the screen, followed by 'xperia' and then goes into the flash-loading screen until it's all booted up.

When I boot the device and hook it t my linux machine, typing './adb.linux devices' triggers the fingerprint rsa screen on the phone. After accepting and submitting this, the command './adb.linux devices' shows it no longer being unauthorised. Alas, when typing the command './adb.linux reboot recovery' I end up with the same thing: no boot into the recovery menu, it's going straight to the OS :(.

Any thoughts?

Well I've been getting a lot further.

Decided to use a 2.7.99 version to see if this did anything. Turned out I could proceed a lot further now!

When booting to Philz I wasn't able to use any zip file on my sdcard. (I have done a md5/sha1 checksum and they match the dl site). I could click the files and see it went to a different screen, there wasn't any information shown though and it instantly moved me back. Had this with all three zip files.

Instead of using Philz I went with TWRP. This program gave me the option to install the zips (and also a window in which to show me the progress). I installed all three zip files (z1c-uk..., z1c-locked...2.7.99-beta and supersu). I rebooted afterwards.

The device seems to be stuck in a reboot-loop now. The sony text shows, followed by the xperia text and then then boot flash screen, where it at some point freezes and the device reboots again.

It's the reboot loops I couldn't get out of. Decided to try something else. Downloaded the latest Cyanogenmod 11 nightly (amami) and the latest google applications (gapps). Started from the beginning again and flashed the device. Rebooting into CM11 works! Been happily setting it up for use now :)

Sometimes the CM11 nightly crashes, but I guess that's not all to weird seeing it being a nightly :)
[Xperia Z1 Compact Android Development] zxz0O0:
Hey [MENTION=4904057][NUT][/MENTION]

Any idea why flashing zip files in Philz touch isn't working? Is it fixable?
[Xperia Z1 Compact Android Development] [NUT]:
What PhilZ version? Did you try the latest XZDR yet?

If the above questions are answered with PhilZ BEFORE 6.25.0 and no, please update and try again.
[Xperia Z1 Compact Android Development] Rawh:
Don't know what version it was :( I can't seem to check it anymore since I flashed CM11 on the phone and that comes with CWM-based Recovery, sorry :(
[Xperia Z1 Compact Android Development] kind3r:
PhilZ Touch 6.21.2

Clockworkmod v6.0.4.7

The one from .94 is the last one that used to work.
[Xperia Z1 Compact Android Development] [NUT]:
Did you test 101 yet?
[Xperia Z1 Compact Android Development] kind3r:
I did now, it works. Thanks.
[Xperia Z1 Compact Android Development] o-l-a-v:
Im on fxp 313. No matter what i try, Im only able to boot to vanilla cwm with 101. Whats wrong? Some dude mentioned that it wont work with custom kernel and stuff. But i can't find any notice about that. Im using the fxp kernel. I went with the "Z1C-lockeddualrecovery2.7.101-BETA.flashable.zip".
[Xperia Z1 Compact Android Development] zxz0O0:
This is for stock sony kernel, as stated on the OP.
[Xperia Z1 Compact Android Development] o-l-a-v:
Ok. "Z1C-XZDRKernel" includes stock Sony kernel? And CM will run on top of that?
[Xperia Z1 Compact Android Development] funiewski:
sadly not
[Xperia Z1 Compact Android Development] RevokOne:
Boot into cwm, flash "Z1C-lockeddualrecovery2.7.101-BETA.flashable.zip" reboot. Then you wait on the purple light

don't

press up or down. Wait till it vibrates and flashes green then you click up for phils/down for twrp. If you want to boot into cwm then when it when it first boot up on purple light press up or down.

This should help people with cm roms who might not have figured it out. If it doesn't flash green and vibrate then you probably don't have "Z1C-lockeddualrecovery2.7.xxx-BETA.flashable.zip" installed.
[Xperia Z1 Compact Android Development] [NUT]:
Actually, it's continually green with a double vibration. It will turn purple for a few seconds to show you it is executing your choice and will boot to recovery.

I'll update all the information once the 2.7 version has been fully debugged and turns 2.8-RELEASE.
[Xperia Z1 Compact Android Development] RevokOne:
Hmmm, I have CM11, plus tried all the ported z1 cm based roms and they all show purple light when it first boots up and if you press up or down it'll take you to cwm. Dual Recovery is also installed after installing cm, but the green light doesn't light up right at boot up, it lights up after the purple one. Obviously this is doing it with cm roms, when I had sony's rom it lit up green right away. Unless I somehow installed it wrong? :eek:
[Xperia Z1 Compact Android Development] [NUT]:
No, you didn't, but CM isn't supported. It's for Sony stock roms.
[Xperia Z1 Compact Android Development] RevokOne:
Understood, was just letting that guy know how to get it working on cm. It works perfectly though so thanks for this :D
[Xperia Z1 Compact Android Development] Walter_White:
Hello!

I was sent here by xzxOOO because I am having some problems rooting my Z1c.

I am working off his list of steps, the flashes work just fine but I encounter an error in the output of the install batch file for the .107 version.

Please kindly have a look at the log I posted in this post over in his thread:

http://xdaforums.com/showpost.php?p=51739954&postcount=181

It seems some components are misnamed or missing in the shell or batchfile?
[Xperia Z1 Compact Android Development] [NUT]:
Thank you for the report. I've fixed the installer messages, next version will contain the fix. :good:

I'm puzzled on why you can't enter PhilZ though. Does the purple LED turn off at all or does it remain lit until you reboot it by force?
[Xperia Z1 Compact Android Development] [NUT]:
Can anyone confirm PhilZ Touch is not working on 2.7.107?
[Xperia Z1 Compact Android Development] [NUT]:
:eek:

Anyone? (echo, echo... echo ... :angel: )
[Xperia Z1 Compact Android Development] Walter_White:
The purple LED turned off after a second or so. It was turn on -> Sony logo appears -> green and vibrate comes on -> push VolUp -> purple LED came on for a sec -> screen went black -> then it went into a bootloop and I could do the same over and over again. This was with the procedure unfinished.

The status quo (I completed the procedure using TWRP) now is that the above happens, but instead of going into a bootloop after failing to load Philz it goes blackscreen and required force poweroff. TWRP and the ROM work mighty fine though. If I can be of any help in debuging / troubleshooting this issue let me know.

EDIT: I am so happy I am not the only one. I was kinda going nuts. As offered, any help in debugging this is offered, just ask and let me know what to do.
[Xperia Z1 Compact Android Development] OmarEinea:
Yes, I confirm that it isn't working,

I have flashed Z1C-lockeddualrecovery2.7.107-BETA.flashable.zip

and I couldn't enter PhilZ Touch recovery, whenever I inter it, I get a black screen

BTW TWRP is working fine
[Xperia Z1 Compact Android Development] [NUT]:
Can you both try XZDR 2.7.111 to see if that philz ramdisk fixes it?
[Xperia Z1 Compact Android Development] OmarEinea:
Unfortunatly I have the same black screen on 2.7.111 :mad:
[Xperia Z1 Compact Android Development] [NUT]:
:confused:

weird... seriously weird :rolleyes:
[Xperia Z1 Compact Android Development] ponchofiesta:
Can confirm that 2.7.111 is not working. 2.7.94 workes.

(Using 14.3.A.0.681)
[Xperia Z1 Compact Android Development] [NUT]:
If anyone can try 2.7.114 to see if that fixes PhilZ ...

I've reverted some things, I hope it helps.
[Xperia Z1 Compact Android Development] OmarEinea:
Man you're a miracle worker,

I have tested it (v2.7.114) and the results are much worse:crying:

after flashing, I can't enter any recovery (both), not by regular way (green light + Vol+/-) nor by advanced reboot menu

actually when the device boots now, I can't see any green light while Sony logo is presented:confused::confused:
[Xperia Z1 Compact Android Development] [NUT]:
Oh boy... I changed something else along the way while trying to fix PhilZ ... sorry folks :eek:

I'll do some debugging when I get home, I'll release a fix tonight.

For now all versions above 107 should not be trusted until I say otherwise.
[Xperia Z1 Compact Android Development] [NUT]:
2.7.115 now online for all supported devices, deemed safe to use, 107 has been removed.
[Xperia Z1 Compact Android Development] TheQwertiest:
When trying to boot into Philz, the phone just reboots again :\
[Xperia Z1 Compact Android Development] [NUT]:
To anyone who wants to help debug the PhilZ issues: 2.7.116 now online

Check if you can you adb shell to the device while seeing the black screen. If so, please adb pull /tmp/recovery.log to attach here.
[Xperia Z1 Compact Android Development] TheQwertiest:
Will try later tonight or tomorrow ;)
[Xperia Z1 Compact Android Development] ponchofiesta:
I use CWM enabled kernel and installed 2.7.116

It's not possible to boot into Philz recovery or TWRP. It boots the kernels CWM every time.
[Xperia Z1 Compact Android Development] [NUT]:
You will have to wait for the green led with a double vibration before you press a volume key to boot to the recoveries in xzdualrecovery.
[Xperia Z1 Compact Android Development] ponchofiesta:
OK, my fault.

TWRP works, Philz does not.
[Xperia Z1 Compact Android Development] [NUT]:
Thanks... This deepens the mystery even more :eek:
[Xperia Z1 Compact Android Development] munch77:
I just updated to build .757 using the philz i previously had (2.97.101) and installed latest recovery .116 and now philz not working for me either. TWRP is though ;)
[Xperia Z1 Compact Android Development] zxz0O0:
Can you try this when you try to go into Philz recovery?
[Xperia Z1 Compact Android Development] [NUT]:
I've contacted Phil3759, he suggested something to try, I'll attempt to fix it in about an hour or so.

I'll keep y'all posted :)
[Xperia Z1 Compact Android Development] [NUT]:
XZDR 2.7.117 now online.
[Xperia Z1 Compact Android Development] munch77:
Philz working on 757 fw, installed zip from external sd also ;)
[Xperia Z1 Compact Android Development] Tonio78r:
Philz recovery working fine in the lastest dualrecovery 2.7.117 :good:
[Xperia Z1 Compact Android Development] zxz0O0:
Some people are reporting issues with r/w to /system in firmware 14.3.A.0.757. It works in recovery but not in android. Can anyone confirm with latest dualrecovery 2.7.117?
[Xperia Z1 Compact Android Development] [NUT]:
I'm not sure what version of XZDualRecovery has been used to create the flashable package, but some people forget to include /system/xbin/disableric.

At first XZDR was checking specific ROM versions to decide when to install it, I have changed it since a few versions back to search for the line that enables it in the init files (all of them), but this only applies to the installer version. As recovery bootstraps a different init and does a chroot to a new location it has no access to the original init files. I'm still searching for a solution to this...

I forgot to add the latest ROM version to the list in the flashable version... sorry about that.

Next release will have this fixed.
[Xperia Z1 Compact Android Development] zxz0O0:
This file is reported to fix the issue with r/w. https://drive.google.com/file/d/0B3BqMk5oFy-tczZPX0d6ZUM5dnc/edit?usp=sharing

I see it copies /system/xbin/disableric. So I guess this file is not properly installed when installing dualrecovery on 14.3.A.0.757? Should that be fixed once you add this version to the list?
[Xperia Z1 Compact Android Development] [NUT]:
Yes, next version will include the FW version and the flashable package should then install that file again.
[Xperia Z1 Compact Android Development] zxz0O0:
There is an "error" in the flashable 2.7.118

if [ "$ROMVER" = "14.2.A.0.290" -o "$ROMVER" = "14.2.A.1.136" -o "$ROMVER" = "14.2.A.1.114" -o "$ROMVER" = "14.3.A.0.681" -o "14.3.A.0.757" ]; then

You're missing the variable for the last rom version, this will result in being true all the time ;)

And in the installer's install.sh it's adjust, not ajust.
[Xperia Z1 Compact Android Development] [NUT]:
Whups, I'll correct this ASAP. :angel:
[Xperia Z1 Compact Android Development] [NUT]:
[MENTION=3975929]zxz0O0[/MENTION] if you could attach a 757 kernel to the thread I'll update the kernel version to that too while I'm at it...
[Xperia Z1 Compact Android Development] zxz0O0:
Here is kernel.sin extracted from 14.3.A.0.757 Generic NO unbranded NORDIC ( http://xdaforums.com/showthread.php?t=2711918 ). Thanks :good:
[Xperia Z1 Compact Android Development] [NUT]:
Uploading 119 now, thanks for the help and pointers, very appreciated! :)
[Xperia Z1 Compact Android Development] munch77:
Changed to .757 NO jst to test and 119 Philz recovery working great for me thanks m8 ;)
[Xperia Z1 Compact Android Development] albuah:
i got error/setup not finish, when install Z1C-lockeddualrecovery2.7.119-BETA.installer on .757
[Xperia Z1 Compact Android Development] zxz0O0:
Hi [NUT]

The error is caused because of "(Post #2)", it's not correctly parsed. Change to this ;)

echo If it fails, please check the development thread ^(Post #2^) on XDA for more details.

Besides that I think cmd gets confused of the "!menu_decision!", why don't you use "%menu_decision%" ?

Check this example code

@echo off
echo =============================================
echo Step3 : Setup of dual recovery.
echo =============================================
set menu_decision=3

if "!menu_decision!" == "1" (
echo Look at your device and grant supersu access!
echo Press any key to continue AFTER granting root access.
adb shell "/system/xbin/su -c /data/local/tmp/recovery/busybox ls -la /data/local/tmp/recovery/busybox"
pause
)

if NOT "!menu_decision!" == "3" (
adb shell "su -c /data/local/tmp/recovery/install.sh"
)

When I execute this, the last part (adb shell install.sh) is executed even though it's not supposed to be :confused:

But when you replace ! with % it's correct.
[Xperia Z1 Compact Android Development] [NUT]:
Actually, the ! gets interpreted correctly when you add "setlocal EnableDelayedExpansion" at the top of your script. But the escape sequence is indeed something I overlooked (I'm not a real batch scripter...)
[Xperia Z1 Compact Android Development] albuah:
Any work around/manual to install cwm or twrp on my z1c since the batch file got problem? Of course for locked bootloader.
[Xperia Z1 Compact Android Development] zxz0O0:
Download version 2.7.120 :good:
[Xperia Z1 Compact Android Development] albuah:
Owh new version is out? Didn't aware. Hehe ^_^
[Xperia Z1 Compact Android Development] aresbv2000:
so...for short...is there a version of philz or twrp wich can be flashed with flashtool?just a simple recovery(single) wich is fully funcional!
[Xperia Z1 Compact Android Development] [NUT]:
Simple answer: no.

There is a long answer but I can be short on that too: Sony does not have a recovery partition, period.

Either locked bootloader recoveries on the system partition or built in with the kernel on it's ramdisk. Which implies an unlocked bootloader because you won't be able to run a custom kernel if it was locked.
[Xperia Z1 Compact Android Development] albuah:
Ok, using the new .120, still no recovery install..

I don't know why. Usb debug already on.
[Xperia Z1 Compact Android Development] [NUT]:
That's easy: an installation on an unrooted rom is only supported on certain firmware versions. 757 is explicitly unsupported...
[Xperia Z1 Compact Android Development] OmarEinea:
Exactly what I was gonna say, but I have question for you in the same subject,

why doesn't your kernel work from Z1C-XZDRKernel2.7.120-BETA.flashable.zip after flashing it through flashtool??

or it shouldn't be flashed via flashtool ???
[Xperia Z1 Compact Android Development] [NUT]:
[MENTION=2905578]albuah[/MENTION]

Your only option is this:

http://xdaforums.com/showthread.php?t=2634196

Root and Dual Recovery for Locked Bootloader
[Xperia Z1 Compact Android Development] [NUT]:
Open the zip, look inside the tmp folder. Grab boot.img and flash it using fastboot/flashtool fastboot toolkit.

Then flash the zip (again) through recovery to install supporting files (NDRUtills).
[Xperia Z1 Compact Android Development] OmarEinea:
that is what I did, I extracted boot.img from zip/tmp and then flashed it through fastboot mode in flashtool,

everything went OK, then disconnected the phone and power on the device;

the device vibrates but then there is no Sony logo, no green light, nothing at all,

when ever I try to power it on it vibrates and then it powers off by it self!!!!
[Xperia Z1 Compact Android Development] [NUT]:
Heh, then your bootloader is still locked and your bootloader is refusing to boot the stored kernel.

Top Tip: when your device boots up from a power off state it will show the bootloader has been unlocked by turning on the led in the red color for a period until the kernel starts to boot.
[Xperia Z1 Compact Android Development] OmarEinea:
I checked and it says "Bootloader unlocked: Yes",

also I just tried DooMLoRD's kernel and it booted to CWM and to system,

and I have tried flashing CM11's kernel before and worked,

so I don't think it is really bootloader related,

if there were users who confirmed this method to be working, then there might be a problem in my phone:eek:
[Xperia Z1 Compact Android Development] [NUT]:
Hmm...

Anyone else able to test xzdrkernel 2.7.120?

Maybe the kernel is built incorrectly... But I don't have the device, I have no way to be sure...
[Xperia Z1 Compact Android Development] aresbv2000:
ok...so i have unlocked my bootloader.i have installed a boot.img wich contains a cwm recovery.but i am a fan of philz recovery.how can i flash the stock kernel wich contains only philz recovery.i don`t need 3 recoveries.just one...philz.can u make,please,a stock kernel for unlocked bootloaders with philz recovery inside it?Please.Thanks for your reply!Have a nice day!
[Xperia Z1 Compact Android Development] [NUT]:
I'm sorry but you will have to ask [MENTION=4675598]shoey63[/MENTION] to do so if he feels up to it, I am sticking to the usual xzdualrecovery setup.
[Xperia Z1 Compact Android Development] aresbv2000:
ok mate....thanks.keep up the good work.Have a nice day!
[Xperia Z1 Compact Android Development] sander151187:
I can confirm this problem. I also have an unlocked bootloader.
[Xperia Z1 Compact Android Development] albuah:
So this new .120 not support kitkat .757?

For locked bootloader & unroot...?
[Xperia Z1 Compact Android Development] [NUT]:
It does, we're talking about the kernel version.
[Xperia Z1 Compact Android Development] funiewski:
you can easily to it by yourself, use this tool: http://xdaforums.com/showthread.php?t=2073775

it´s pretty starightforward
[Xperia Z1 Compact Android Development] albuah:
I see, n i know you guys talking about kernel ^_^ , it just I don't know why my phone can't use your utility to install recovery.

I just got my phone this week, b4 playing with ray & ion. Both unlock bootloader & every rom/kernel tested... So it's like can't live without rooted phone haha..
[Xperia Z1 Compact Android Development] [NUT]:
Darn ... I wonder why nobody else noticed the 681 kernel to be broken as well, the fact the XZDRKernel doesn't boot is because I misconfigured my kitchen for the Z1 Compact ... :eek:

2.7.121 should be appearing online soon, which will be working fine.
[Xperia Z1 Compact Android Development] munch77:
757 fw system seems to be read only again with .121 recovery?
[Xperia Z1 Compact Android Development] [NUT]:
Depends, do you mean inside recovery or in the ROM?

Does /system/xbin/disableric exist?
[Xperia Z1 Compact Android Development] munch77:
/system/xbin/disableric is there, but copying a file from ext sd to system I now get read only error?

All i did was flash the latest 121 recovery with the previous 120 Philz and now have this issue
[Xperia Z1 Compact Android Development] [NUT]:
This is really getting ridiculous ... things keep breaking for no reason: I never changed anything on that part of XZDR's functionality ... most if not all of the functionality was changed in the recovery ramdisks ... :confused:
[Xperia Z1 Compact Android Development] kind3r:
Did you remount /system read-write ?

.121 works for me.

mount -o remount,rw /system
[Xperia Z1 Compact Android Development] munch77:
Everything worked fine with .120 but thought i should keep upto date with the recovery? Sorry

---------- Post added at 10:12 AM ---------- Previous post was at 10:11 AM ----------

Not exactly sure how to do that, will have a look when i get home from work ;)
[Xperia Z1 Compact Android Development] [NUT]:
Don't feel personally assaulted by that post please, you actually should keep updating... I was just venting off some frustration...
[Xperia Z1 Compact Android Development] munch77:
No offence taken bud, was just sorry you have to keep changing everything, must be doing your head in!
[Xperia Z1 Compact Android Development] [NUT]:
I'm actually walking around like this

I'm unable to wrap my head around that issue...
[Xperia Z1 Compact Android Development] munch77:
Hahaha

Have you still got a copy of 120 i could use, should all work again?
[Xperia Z1 Compact Android Development] [NUT]:
You know, just try, I really don't think it will matter... but please do test. It won't hurt, who knows... maybe I screwed something up...