yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Original Android Development] DooMLoRD:
This is a CWM-Based Recovery 6.0.4.6 Touch Recovery for Xperia Z1 Compact!

Credits and special thanks to Koush and everyone else involved in Cyanogenmod project!​

[ info ]

This Recovery is built from CWM 6.0.4.6 sources!

I dont have this device with me and I dont intend to buy one... my friend wanted root on his phone so I created this to help him out...

all the testing was done remotely on users devices...

[ PROOF ]

[ credits / special thanks ]

Koush - for the brilliant work & coding on CWM recovery

CyanogenMod and FreeXperia Team (especially jerpelea) for too many things *:)

special thanks to [MENTION=2334758]swedan[/MENTION] for helping out with testing and risking his devices for the sake of development!!! and NO, his phone was NOT damaged during testing ;)

ME for creating this for u guys!

[ Requirements ]

Bootloader unlocked

working fastboot

STOCK ROM FW:

4.4.2

14.3.A.0.757 - v04

14.3.A.0.681 - v03

4.3

14.2.A.1.142 - v02

14.2.A.1.114 - v01

or ROMS BASED ON THAT FIRMWARE

[ features ]

standard CWM recovery 6.0.4.6 - TOUCH RECOVERY!

kernel is insecure (ro.secure=0)

adb debugging is enabled by default in OS

TIP: if u are experiencing very slow backup in CWM do this

[ WARNING ]

for flashing this kernel you

WILL NEED TO UNLOCK BOOTLOADER!

Check this thread for more info (same steps as Xperia Z1 are used for Xperia Z1 Compact)

UNLOCKING BOOTLOADER WITHOUT TA BACKUP WILL LEAD TO IRREVERSIBLE LOSS OF DRM KEYS!!!

AND YES CAMERA STILL WORKS AFTER UNLOCKING BOOTLOADER!!!

[ known issues ]

adb is not working in recovery (can be fixed later)

[ how to flash this kernel ] (via fastboot)

download the kernel image

save the boot.img to the folder containing fastboot binary

flash the boot.img using fastboot:

fastboot flash boot boot.img

reboot from fastboot

fastboot reboot

the device should now start booting

enjoy!

[ how to enter recovery ]

when you see the Sony logo and the LED light turns pink/amber/orange keep tapping/pressing VOLUME UP key

[ how to Root ]

for instructions on how to root please check this post

[ sources ]

https://github.com/DooMLoRD/android_device_sony_honami

[ donations ]

if u feel that this work has helped u OR u think that the work i put into making this is worthy of donations, then click on the following link for buying me some coffee/beer/etc ;)

PAYPAL DONATION LINK

OR

you can buy one of my awesome apps from Play Store!

[ download links ]

PLEASE DO NOT MIRROR, REDISTRIBUTE, REPACK MY FILES

NEW:

Advance Stock Kernel with Recovery v04 (FW:14.3.A.0.757}

MD5HASH: d32053f9ae32210d84b9f03944b2296b

OLD:

Advance Stock Kernel with Recovery v03 (FW:14.3.A.0.681}

MD5HASH: 96649df409f10a5da596a2af1f747baf

Advance Stock Kernel with Recovery v02 (FW:14.2.A.1.142}

MD5HASH: ad86cffe69c22a332e44703c3eb29dd1

Advance Stock Kernel with Recovery v01 (FW:14.2.A.1.114}

MD5HASH: 85e4fe3589ec542fec6e56ec5a1b7661

enjoy!!!
[Xperia Z1 Compact Original Android Development] DooMLoRD:
Rooting Instructions

[ proof ]

[ how to root ]

once you have flashed the kernel from the 1st post

download the latest SuperSU update.zip from: http://download.chainfire.eu/supersu

save it on sdcard of device

reboot into recovery

flash the supersu update.zip

reboot from recovery into OS

you should now get proper root access!

[ installing busybox ]

it is highly recommended to install busybox after rooting!

just go to andorid play store and download the busybox installer.

once the installer is downloaded, install busybox in

/system/xbin

reboot device after install and thats it!

regards,

DooMLoRD
[Xperia Z1 Compact Original Android Development] Joe_Mama:
And will be for locked bootloader?
[Xperia Z1 Compact Original Android Development] m_zet:
Look in the OP (below [WARNING] sign) there's a link to how to unlock bootloader.
[Xperia Z1 Compact Original Android Development] Joe_Mama:
Not so fast and easy. "Allowed: no" (i've z1f).
[Xperia Z1 Compact Original Android Development] monkeydrufy:
thanks a lot but I'm a little confused

For the moment I would like just to root the phone

is that possible without unlocking the bootloader?

because if it is not possible, I would like to make a TA backup but it needs root :S
[Xperia Z1 Compact Original Android Development] DooMLoRD:
There is currently no known exploit which works for this device...
[Xperia Z1 Compact Original Android Development] c_c_c_66:
You have frozen me! :crying:

I have pre-ordered this device just yesterday!

But I have faith in you (like for SP!!) ;)
[Xperia Z1 Compact Original Android Development] timberwolf60:
My z1 came with 267 firmware. So I downgraded to 534. Used kingo root to root it. Then backup TA. and used this thread: http://xdaforums.com/showthread.php?t=2261606

So my phone was rooted on 4.3 with locked bootloader. Enjoy!

Send from GT-I9506 using Tapatalk

Devices: Samsung GT-I9506 and Sony Z1 C6903
[Xperia Z1 Compact Original Android Development] artojeda1988:
Will this work for tmobile z1 c6916?
[Xperia Z1 Compact Original Android Development] kingOfTheLab:
Please tell me you are kidding...
[Xperia Z1 Compact Original Android Development] dragnan:
Do I understand you right: there is no way to root this device BEFORE unlocking the bootloader and flashing the Kernel you have provided in first post?

And therefore it is not possible (at the moment) to root/install CWM without loosing TA partition?
[Xperia Z1 Compact Original Android Development] artojeda1988:
I'll take that as a yes.
[Xperia Z1 Compact Original Android Development] DooMLoRD:
Unfortunately as of now there is no exploit that currently works for this device...

So either you can wait for an exploit or unlock bootloader and flash away :)

Well he ment NO!

:P
[Xperia Z1 Compact Original Android Development] dragnan:
Thanks man :)

I guess, I will wait some weeks. Just got the Z1 Compact D5503 yesterday and though I hate that Sony UI and bloat stuff, I'll try to live with that for some time until an Exploit has been found. Anyway, there is no ROM for it yet....

And keep up the good work. :good::good:
[Xperia Z1 Compact Original Android Development] Koenig77:
So what can we (the not so very experienced in programming/hacking) do to help getting a working exploit for this device?

Or should I ask who we should buy beers to for stimulation of his/hers genious?
[Xperia Z1 Compact Original Android Development] DooMLoRD:
Bounty thread could be one idea... May be the Xperia Z1s & Z1 Compact users can come together and create such a thread...

[MENTION=2376614]jcase[/MENTION] & [MENTION=4229979]djrbliss[/MENTION] could be likely devs who can break this as they are THE BEST AND MOST EXPERIENCED ones on XDA!!!
[Xperia Z1 Compact Original Android Development] lilfire:
Not working for me :(
[Xperia Z1 Compact Original Android Development] AndroPlus:
Xperia Z1 f (Japanese version Xperia Z1 Compact, locked only:crying:) could boot with Z1 14.1.G.1.534 and can be rooted.

If Z1 Compact also boot with Z1 14.1.G.1.534 AND Z1 f 14.1.H.1.281, there's hope for locked Z1 Compact.

→funiewski confirmed it's booting without problems!

Here's how-to, but I can't confirm so it's risky.

DO NOT DO THIS IF YOU CAN'T RECOVER FROM BRICK.

Requirements

SO-02F_14.1.H.1.281_docomo.ftf

C6903 14.1.G.1.534 ftf and prerooted zip renamed to "cwm_prerooted_Z1.zip" (Put it in internal storage)

prerooted zip for Z1 Compact 14.2.A.1.114

XZDualRecovery + rootkitXperia

XZDualRecovery

1. Flash SO-02F_14.1.H.1.281_docomo.ftf

Wipe: Check all Exclude: Uncheck all

2. Boot and enable USB debugging and Unknown sources

3. Flash C6903 14.1.G.1.534

Wipe: Uncheck all Exclude: Check all but system and kernel

4. Boot and wait 5 minutes.

Display will be blank, but don't worry, you can see screen with DDMS if you want.

5. Run XZDualRecovery + rootkitXperia's install.bat.

This will root with CVE-2013-6282 and install recovery.

It will reboot automatically when completed.

6. Press volume up to enter to CWM

cwm_prerooted_Z1.zip will automatically installed and reboot when completed.

7. Shutdown with volume up + power long press, then enter to flashmode

8. Flash SO-02F_14.1.H.1.281_docomo.ftf's kernel and rpm.sin

Wipe: Check all Exclude: Check all but kernel

9. Boot and install XZDualRecovery

10. Install prerooted zip for Z1 Compact 14.2.A.1.114 (and flash stripped ftf?)

11. Done!
[Xperia Z1 Compact Original Android Development] jcase:
Can you not unlock the bootloaders on these devices through official means?
[Xperia Z1 Compact Original Android Development] twilliams08:
You need to request the boot unlock code from Sony and follow the instructions on the Sony website to unlock your bootloader before installing the custom kernel. The screen you have included shows that you can unlock your bootloader but that it is locked at the moment.
[Xperia Z1 Compact Original Android Development] tramp20:
Thank you.

I wanted to avoid this :(

Why is the bootloader locked even after reboot?

Can I flash/repair the latest firmware with SUS so this loader.sin will be flashed too?
[Xperia Z1 Compact Original Android Development] twilliams08:
This thread covers rooting and installation of CWM using Doomlords Kernel - this can only be done with the bootloader already unlocked.

There is a however a method for rooting while retaining a locked bootloader, have a look at the following threads:

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

http://xdaforums.com/showthread.php?t=2642081
[Xperia Z1 Compact Original Android Development] DooMLoRD:
please follow the official procedure to unlock bootloader
[Xperia Z1 Compact Original Android Development] tramp20:
Thank you.

If I remember correct we cannot go back to an earlier firmware since .757 :(
[Xperia Z1 Compact Original Android Development] Lasantha:
Can we get tap2wake on this Kernal Please ????

---------- Post added at 07:12 PM ---------- Previous post was at 07:09 PM ----------

I remember when using HTC I was able to flash a zip with recovery to get a new kernel. Is it not possible with Sony?
[Xperia Z1 Compact Original Android Development] twilliams08:
As far as I'm aware it is still possible to downgrade to earlier firmware by flashing the relevant ftf file with flashtool. Basically the method for rooting with locked bootloader involves downgrading to an older version of android for the z1 which is then rooted and upgraded back to the later z1c firmware while retaining root.
[Xperia Z1 Compact Original Android Development] gaga66:
Hi,

have the following problem:

My Z1C has an open BL.

I have rooted the device with the firmware 14.3.A.0.681 - v03.

I have tried to update the kernel to the 14.3.A.0.757 - v04 by the following method:

{!} KitKat [D550X] CWM-Based Recovery 6.0.4.6 + ROOT for Xperia Z1 Compact [20,140,410] - xda-developers

"fastboot flash boot boot.img" and then "fastboot Reeboot"

As boot.img I've loaded as described the "Z1c_DooMLoRD_AdvStkKernel_FW-757_v04.img" and renamed boot.img.

After reeboot launched the Z1C at the blue graphic it started again and again (loop).

Now I have the old version of this "Z1c_DooMLoRD_AdvStkKernel_FW-681_v03.img" performed again and it works again but just with the old kernel.

Does anyone have an idea what I did wrong.

I do not want to reinstall the settings and the apps. I'd just update. Is that possible?

Thank you.
[Xperia Z1 Compact Original Android Development] thermalboyz:
I think you need to Flash the .757 tft first, the boot loop is you have .681 and flash .757 kernel which it doesn't work.

STEPS:

1) Unlock Bootloader - Guidance http://xdaforums.com/showthread.php?t=2440597

2) Flash Kitkat tft - http://xdaforums.com/showthread.php?t=2710848

3) Flash CWM Kernel - http://xdaforums.com/showthread.php?t=2620794

4) Go to recovery - Flash Supersu

Hope this will work for you
[Xperia Z1 Compact Original Android Development] gaga66:
Thank you.

But this also means that I have to make all settings new and reinstall the apps.

Is there a way that I can keep the settings and the apps?

Thx
[Xperia Z1 Compact Original Android Development] thermalboyz:
U can use backup apps such as titanium backup from playstore to restall all ur app settings and data. U need rooted tho.
[Xperia Z1 Compact Original Android Development] poolmaker:
Root isn't mandatory.

Titanium backup also (paid or pirated version).

Stock app "Back up & restore" included in firmware works well without root and it's free.
[Xperia Z1 Compact Original Android Development] gaga66:
Hi,

Thx .

For all who are interested in what I did following:

First backup created with "Backup and Restore" from the Sony tools

2 with Flash Tool I have the D5503_14.3.A.0.757_GenericDE_ (1279-6978). Flashed ftf.

3 flashed with fastboot the kernel Z1c_DooMLoRD_AdvStkKernel_FW-757_v04.img

4 on the recovery mode run the SuperSU-v1.93.zip. (Root)

5 Backup restored with "Backup and Restore" from the Sony tools

6 Minor adjustments made - done.

Am now with root on 14.3.A.0.757
[Xperia Z1 Compact Original Android Development] tania247260:
hello friend,do I need bootloder unlocked?
[Xperia Z1 Compact Original Android Development] TheQwertiest:
Yes, you do. You can't flash custom kernel with locked bootloader.
[Xperia Z1 Compact Original Android Development] tania247260:
how is the battery life after all?
[Xperia Z1 Compact Original Android Development] gaga66:
Hi,

battery is ok no problems until now.

Unlock bootloader, go to:

http://unlockbootloader.sonymobile.com/

or go to

http://xdaforums.com/showthread.php?t=2440597
[Xperia Z1 Compact Original Android Development] freddestarfighter:
Format data? Problem mounting.

I cannot do a proper Wipe/Factory reset because it says it cannot mount sd-card. Is there a solution to this problem?

\F
[Xperia Z1 Compact Original Android Development] Tobi@s:
Can confirm that.
[Xperia Z1 Compact Original Android Development] Tuga_Droid:
Hello all,

I'm new user on sony and i want to root my phone. I'm on the last firmware 4.4.2. Sorry but i don't understand how to root, someone can explain me please?

Can't unlock bootloader.

Thanks
[Xperia Z1 Compact Original Android Development] madlive:
Check this out: http://xdaforums.com/showthread.php?t=2688933

In other ontopic related news. I am on the latest KK rom and used the kernel made by d00ml0rd (thanks for that mate). Unfortunately my camera stopped working since. It keeps on hanging when I actually try to take a picture. No issues with the front cam, only with the back cam. Any one else faced this issue?
[Xperia Z1 Compact Original Android Development] zxz0O0:
Try the kernel from [NUT] ( http://nut.xperia-files.com/ ) and see if camera works. Then you know if the problem is kernel related. My front camera works (using kernel from NUT)
[Xperia Z1 Compact Original Android Development] morphisto:
Same problem here - camera freeze if i try to take a picture...can this be fixed?
[Xperia Z1 Compact Original Android Development] MrMmmkay:
Nothing like that here...
[Xperia Z1 Compact Original Android Development] wizwith:
Camera Freezing on KitKat

I have the same problem with the camera. It freezes and doesn't take a picture. I can get it unfrozen by clicking the power button or swiping around. But no picture Front camera works, and so does the main camera when running the diagnostics.

Have an unlocked bootloader, rooted, and 757 firmware. Tried factory reset, reroot, etc.

Unless I can get it to work, I may have to try to downgrade back to JB. Or wait for 761.

Any thoughts?
[Xperia Z1 Compact Original Android Development] LSI:
Just a question, I try to update phone to last Sony firmware but Pc compagnion saids my phone doesn't have original ROM. It's because of cwm or it's because of I modify/delete some system app ?

Thanks
[Xperia Z1 Compact Original Android Development] funiewski:
If you want to update the official way you have to relock your bootloader
[Xperia Z1 Compact Original Android Development] LSI:
So, what's the right way to update my phone ?

I backup all data with titanium backup because i think i will lost all ...

Thanks for the procedure

(it's can be great to have this information in beginning of thread)
[Xperia Z1 Compact Original Android Development] LSI:
So i arrive to update my phone with sony PC Companion.

With flash tool, i go back to original FTF (i restore all, but now i thinks just boot and kernel are enougth) and i relock phone

After I update phone

I unlock again with flash tool

And i install again boot (Phone doesn't want start in fastboot mode, i try a lot of time to arrive to get fastboot)

All works nice on phone for this moment, camera includes.
[Xperia Z1 Compact Original Android Development] schaan383:
Please help- Boot loop

Hello, I seem to be stuck in a boot loop that won't let me load CWR.

I used your guide to unlock my device's bootloader and install a new kernel with CWM. Everything was working fine at this point. Unfortunately, when I used your guide to gain root access, something went wrong.

I installed the superSU.zip through recovery, and didn't receive any error messages. However, upon rebooting, I ended up in a constant boot loop.

The phone loads past the Sony logo, but restarts soon after the swaying background loads. If I try to load into recovery, the CWM logo and background appear, but that too resets before I can actually make any changes.

I do still have access to fastboot, thankfully. I tried reinstalling the recovery kernel, but that didn't help. Any help you could offer would be greatly appreciated!

Never mind, I managed to fix the issue by installing version 4 of the recovery kernel.
[Xperia Z1 Compact Original Android Development] paolopaulpaul:
Help :(

Hello everyone, I installed the Advance Stock Kernel with Recovery v04 (FW:14.3.A.0.757} but the camera does not autofocus. What can I do? :crying:
[Xperia Z1 Compact Original Android Development] fujirio:
ok so i unlocked boot loader and rooted but when it reboots it just goes into a loop of rebooting any help would be awesome
[Xperia Z1 Compact Original Android Development] MScorpionZ:
Thanks, it works, the problem was due to Sony RIC

One can disable Sony RIC on locked bootloader and stock kernel with root?
[Xperia Z1 Compact Original Android Development] DooMLoRD:
thats why i have posted this advanced stock kernel :)

it has the patches to disable Sony RIC
[Xperia Z1 Compact Original Android Development] MScorpionZ:
How do you respond quickly :)

I corrected the post: I am interested in locked bootloader, not unlocked....

I found this method:

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

But it does not work in the locked bootloader because they do not create file "enable" in the folder "sony_ric"
[Xperia Z1 Compact Original Android Development] eddvys:
Just flashed this kernel etc. And hard bricked my phone ;| neither fastboot recovery or power on button works. So yee what's up :D

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

So I just realize that the phone is working but the screen is completely black and can see a thing. Just got a message and LED is blinking. Made a call and also can hear it. Bad ass help needed D:
[Xperia Z1 Compact Original Android Development] Darkimmortal:
Tried holding power+vol up for a few seconds?
[Xperia Z1 Compact Original Android Development] eddvys:
I did indeed. So the thing is phone reacts into everything I do. Can use adb, there is a pink LED when turning on but cant access recovery because of black screen. Possible to restore phone using adb/fastboot/etc to earliest working point? :confused:
[Xperia Z1 Compact Original Android Development] Darkimmortal:
If you can access adb there is a remote screen feature, but that probably won't help you get any further unless it works in recovery (doubtful)
[Xperia Z1 Compact Original Android Development] eddvys:
All sorted. Using flashtool simply flashed stock kernel and boom its all good! :)
[Xperia Z1 Compact Original Android Development] brocnical:
What is this RIC thing? Can I disable it just by hot-booting and without flashing?

In a previous post you said that you can just hotboot and then just install the superuser zip from recovery to gain root, but this is not true.
[Xperia Z1 Compact Original Android Development] DooMLoRD:
better flash this kernel for a more permanent solution ;)
[Xperia Z1 Compact Original Android Development] MrMmmkay:
Hi Doom!

Could you please provide a recovery package like you did to the Z1 Kernel V19? I got problems with the v19 unofficial Kernel for the Z1C and want to go back to v18...
[Xperia Z1 Compact Original Android Development] DooMLoRD:
please ask the person who has posted the unofficial port to create it...
[Xperia Z1 Compact Original Android Development] brocnical:
OK, I figured out for myself what the RIC thing was all about.

To obtain root with HotBoot method allowing you to still keep stock kernel:

1. Unlock bootloader if not already.

2. Download Koush Superuser or SuperSU zip file to phone.

3. HotBoot DoomLord's kernel downloaded from the OP of this thread (hotbooting means that it will only boot once with the selected custom kernel image, and will not be saved permanently to your phone). Connect phone in fast-boot-mode (hold volume up and connect USB cable).

Then:

EITHER: with fastboot command (in x10flasher_lib directory if you are using FlashTool):

fastboot boot boot.img

(where "boot.img" is DoomLord's kernel image name)

OR: even easier with FlashTool GUI:

Flash->fastboot mode->"Select kernel to HotBoot"->choose DoomLord's .img file from OP of this thread.

4. When DoomLord's Kernel boots, enter into CWM recovery by pressing volume up key when you see the violet LED.

5. Install Koush Superuser or SuperSU zip file in CWM recovery, remove USB cable and reboot.

6. The proprietary Sony "RIC" security feature on Sony stock ROMs means that you will only be partially rooted and do not have access to write to the system partition. To fix, you have two options:

SIMPLE OPTION: Run the following command as root at every boot to disable it:

echo 0 > /sys/kernel/security/sony_ric/enable

This option 6.1 can be automated at boot by using an app like scriptmanager, as described here and in more detail here (though I don't think that second extra mount command that he has added should be there)

OR: Install something like the NUT dual recovery which prevents the RIC service from starting in the first place at boot by hacking the "chargemon" code (as well as permanently installing Clockworkmod/Teamwin/Philz Recovery) in your your /system partition.

DONE!

I think running an init script (using option 6.1) is really a "more permanent solution" as it means that I can use pure stock ROMs/kernels and don't have to wait for a custom kernel update for every single little stock Sony firmware update! :p:D It also means I can avoid any bugs added by "tweaks" in custom kernels or chargemon hacks :p
[Xperia Z1 Compact Original Android Development] DooMLoRD:
hey guys I have updated my Xperia SDCARD Mounter app to support this phone!

what does the app do?

It will allow you to connect the external SDCARD as a USB Mass Storage device....

so basically the sdcard will act as a USB stick/pen drive...

you can use the classic/advanced copy manager (TotalCopy, etc) which gives u greater level of control and possibly better copy speeds (though this is debatable)...

also the internal sdcard will be now be easily mounted on linux devices which have issues recognizing MTP connection...

hope you like it!

regards,

DooMLoRD
[Xperia Z1 Compact Original Android Development] thermalboyz:
I found WIFI not working anymore when i flash back Stock Kernel from using Doom's Kernel V19. I know the WLan changed in Doom's V19 and can anyone share some guidance to Revert back to stock and if possible a Flashable Stock Kernel .ZIP would be very grateful.

I think to re-flash the whole ROM again can be avoided. (Used RomAur v3)
[Xperia Z1 Compact Original Android Development] John.D..:
Hi, doom, could you make a kernel with recovery for this new firmware ..?) 14.3.Е.0.1

Here, the kernel from this firmware :)

View attachment 2785326