• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[D65XX] CWM-Based Recovery 6.0.4.7 + ROOT for Xperia Z2 [20141105]

Search This thread

Shudder123

Senior Member
Jul 4, 2012
1,042
140
All Z2s come with the bootloader locked, so yours will be locked.

The unlock and root procedure in the OP does NOT require root, so you can accomplish it as soon as you get your phone and have an unlocked, rooted phone. The warning is that you will not be able to do a TA backup (which is NOT necessary to complete the unlock and root procedure described) if you don't have root already, so you will lose your DRM keys which are needed for some special functions on the Z2. You may or may not care about the special functions.

Im not familiar with Sony's rooting routine. What exactly are the TA backup and the DRM Keys?
 

MasK

Senior Member
May 15, 2005
1,266
129
Singapore
www.imraneo.com
Thanks DoomLord. I am experiencing ZERO lag so far on v2..(only an hour or two). Will see about the battery tomorrow.

Please do revert with your experience!

Im not familiar with Sony's rooting routine. What exactly are the TA backup and the DRM Keys?

Yea, I'd like to know too. I know about DRM but why would you need to keep the keys? Is the bootloader able to be relocked?

There's too little activity here and that makes me reluctant to root my device. I am however dying to root it as I wanna change my dpi, navBar keys, block ads and allow SDcard writing :D
 

jiggyb21

Senior Member
Mar 25, 2013
297
85
Im not familiar with Sony's rooting routine. What exactly are the TA backup and the DRM Keys?
I'm certainly no expert but I've been forced to learn a little about Sony's DRM keys. First, I had started a thread on topic.
http://forum.xda-developers.com/showthread.php?t=2703032

Just Google DRM Keys Xperia Z or something similar to learn more.

While I don't understand the point of their existence, without them you lose certain functions, which are anything from OTA updates to camera functionality. On previous models the answer was to back up the TA partition and restore it after unlocking the bootloader. There is no method to do this yet. So the bottom line is if you must be rooted now you will lose the DRM keys and you can not get them back.

I am currently experimenting to find out exactly what it has done to the phone. The only thing I'm 100% sure of is that I've lost the ability to update the phones software using any official method.

There is so little activity here because the Z2 is not really available so the devs are probably few and far between. My advice would be to wait until someone figures out how to back up the TA partition and this is all a non-issue.

Sent from my D6503 using Tapatalk
 
Last edited:
  • Like
Reactions: Kombian
I'm certainly no expert but I've been forced to learn a little about Sony's DRM keys. First, I had started a thread on topic.
http://forum.xda-developers.com/showthread.php?t=2703032

Just Google DRM Keys Xperia Z or something similar to learn more.

While I don't understand the point of their existence, without them you lose certain functions, which are anything from OTA updates to camera functionality. On previous models the answer was to back up the TA partition and restore it after unlocking the bootloader. There is no method to do this yet. So the bottom line is if you must be rooted now you will lose the DRM keys and you can not get them back.

I am currently experimenting to find out exactly what it has done to the phone. The only thing I'm 100% sure of is that I've lost the ability to update the phones software using any official method.

There is so little activity here because the Z2 is not really available so the devs are probably few and far between. My advice would be to wait until someone figures out how to back up the TA partition and this is all a non-issue.

Sent from my D6503 using Tapatalk

As i know the Mobile engine X-Reality will not functional. Because My previos device Z ultra after BL the visual colour will be litter bit diffrent.

Sent from my SM-P605 using XDA Premium 4 mobile app
 

jiggyb21

Senior Member
Mar 25, 2013
297
85
Please do revert with your experience!

I think it's safe to say battery is not a problem for me. It's only been 4 hours since I started my day but I've been using the phone a lot. On the stock firmare 17.1.A.2.55 is was getting about 4.5% per hr battery drain and so far today is been 3.7.

I couldn't be more pleased. No lag and great battery. And root.



Sent from my D6503 using Tapatalk
 
  • Like
Reactions: MasK

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,191
39,700
Pune
I'm certainly no expert but I've been forced to learn a little about Sony's DRM keys. First, I had started a thread on topic.
http://forum.xda-developers.com/showthread.php?t=2703032

Just Google DRM Keys Xperia Z or something similar to learn more.

While I don't understand the point of their existence, without them you lose certain functions, which are anything from OTA updates to camera functionality. On previous models the answer was to back up the TA partition and restore it after unlocking the bootloader. There is no method to do this yet. So the bottom line is if you must be rooted now you will lose the DRM keys and you can not get them back.

I am currently experimenting to find out exactly what it has done to the phone. The only thing I'm 100% sure of is that I've lost the ability to update the phones software using any official method.

There is so little activity here because the Z2 is not really available so the devs are probably few and far between. My advice would be to wait until someone figures out how to back up the TA partition and this is all a non-issue.

Sent from my D6503 using Tapatalk

You can relock bootloader using Flashtool to get ability to update software using official ways :)

Sent from my C6902 using xda app-developers app
 

ogdobber

Inactive Recognized Developer
Nov 4, 2008
3,257
1,827
@DooMLoRD thanks for this. just one thing, didn't see reading up. the swipe functions dont work in recovery. (d6503)

then for everyone else. 6502 roms dont work on 6503. breaks the radio.
Mine came on 1.2. I was able to relock and take the ota after flashing back to 1.2 after the failed 6502 2.55 flash
then unlocked again (didnt wipe out device) and root again
(using flashtool)
 

Siema89

Senior Member
Nov 19, 2013
182
74
Can I assume that relocking does not guarantee that your device retains the warranty since Sony knows about it?

If you didn't backup/restore DRM keys (which is impossible for now), Sony will see them missing even after relocking.
And since they can't be removed without unlocking/rooting, it'd be quite obvious for them :p

From what I know, when there's unlockless root exploit with which DRM keys can be backed up and restored, we will be able to restore the phone to full stock, undistinguishable from unmodified one.
 
  • Like
Reactions: Kombian

benengyj

Senior Member
Jun 14, 2009
118
26
If you didn't backup/restore DRM keys (which is impossible for now), Sony will see them missing even after relocking.
And since they can't be removed without unlocking/rooting, it'd be quite obvious for them :p

From what I know, when there's unlockless root exploit with which DRM keys can be backed up and restored, we will be able to restore the phone to full stock, undistinguishable from unmodified one.

In that respect I really hope someone figures out an exploit that would allow us to root without unlocking the BL soon...my Z2 is looking at me sadly every day. :(
 

yeeson

Senior Member
May 2, 2010
682
113
Shanghai
Android 4.4 Xperia series from the beginning, which will unlock does not affect any functions, including X-Reality, but only affect the warranty!
 

hillbicks

Senior Member
Jun 13, 2012
146
29
So let me get this straight:

If I use this custom recovery I obviously loose my DRM keys, but they're only used for three things:

- "voiding of warranty" (which I don't care about since I'm in the EU for one thing and secondly because my carrier provides me with an insurance for a broken device
- I'm no longer able to play DRM content from Sony, which I wouldn't do anyway.
- I'm no longer able to output HD content over MHL, which, again, I wouldn't do anyway.

Everything else, meaning video recording and playback, colour quality will be the same as before?
 

hasenbein1966

Senior Member
Aug 9, 2011
1,118
332
Yeeson says that with Android 4.4 no functionality is lost, only warranty...

But I find that very dubious. On my Tablet Z2 (unlocked and rooted) I can tick / untick "X-Reality" in the settings, but when I play a Youtube Video there is absolutely no difference, so obviously X-Reality functionality is lost.
 

jiggyb21

Senior Member
Mar 25, 2013
297
85
Yeeson says that with Android 4.4 no functionality is lost, only warranty...

But I find that very dubious. On my Tablet Z2 (unlocked and rooted) I can tick / untick "X-Reality" in the settings, but when I play a Youtube Video there is absolutely no difference, so obviously X-Reality functionality is lost.

On my z2 I, nor anyone I show it to, can differentiate between x reality on and off. I've looked at pictures and videos.

Sent from my D6503 using Tapatalk
 

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,191
39,700
Pune
That functionality is only for Album & Movie app... I don't think it works in other apps...

Sent from my C6902 using xda app-developers app
 
  • Like
Reactions: Kombian

jiggyb21

Senior Member
Mar 25, 2013
297
85
So unless I'm interested in using DRM content or streaming HD over MHL there is no need for me to keep waiting for an exploit that would allow me to backup the TA partition?

I haven't found any reason to regret doing it day one. I installed gravity box and it works flawlessly for the few mods I installed.

Sent from my D6503 using Tapatalk
 

Top Liked Posts

  • There are no posts matching your filters.
  • 76
    CWM-Based Recovery 6.0.4.7 Recovery for Xperia Z2!



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






    [ info ]

    This Recovery is built from CWM 6.0.4.7 sources!



    [ PROOF ]


    BkHfBuqCEAE0pIo.jpg:large




    [ 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 @yeeson 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.4
        • 23.0.1.A.0.167 - v07
      • 4.4.2
        • 17.1.2.A.0.314 - v06
        • 17.1.1.A.0.438 - v05
        • 17.1.1.A.0.402 - v04
        • 17.1.A.2.69 - v03
        • 17.1.A.2.55 - v02
        • 17.1.A.2.36 - v01
      or ROMS BASED ON THAT FIRMWARE



    [ features ]

    1. standard CWM recovery 6.0.4.7!
    2. kernel is insecure (ro.secure=0)
    3. disabled kernel level RIC
    4. adb debugging is enabled by default in OS
    5. TIP: if u are experiencing very slow backup in CWM do this




    [ WARNING ]




    ITS HIGHLY RECOMMENDED TO FIRST ROOT ON LOCKED BOOTLOADER AND TAKE TA BACKUP BEFORE BOOTLOADER UNLOCK!


    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 Z2)


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


    AND YES CAMERA STILL WORKS AFTER UNLOCKING BOOTLOADER!!!



    [ known issues ]


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





    [ how to install my kernel ] (via recovery) [RECOMMENDED]

    1. download the kernel package
    2. save it to the sdcard
    3. reboot into recovery
    4. flash the kernel package using recovery
    5. reboot from recovery into system
    6. the device should now start booting
    7. enjoy the kernel ;)



    [ how to flash this kernel ] (via fastboot)

    1. download the kernel image
    2. save the boot.img to the folder containing fastboot binary
    3. flash the boot.img using fastboot:
      Code:
      fastboot flash boot boot.img
    4. reboot from fastboot
      Code:
      fastboot reboot
    5. the device should now start booting
    6. 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

    for now recovery is same is same as honami


    [ donations ]


    Please do consider donating as I plan to get this device!

    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 CWM Recovery v07 (FW: 23.0.1.A.0.167}
    MD5HASH: ade2fd4d1edf9355089170ecfbf72d2d


    OLD:




    Advance Stock Kernel with CWM Recovery v06 (FW:17.1.2.A.0.314}
    MD5HASH: 9dda203d813ac6ff7f2b80d85f4de2c5


    Advance Stock Kernel with CWM Recovery v05 (FW:17.1.1.A.0.438}
    MD5HASH: 1857871ed72fc5c2c665c24e30cfd2c4



    Advance Stock Kernel with CWM Recovery v04 (FW:17.1.1.A.0.402}
    MD5HASH: 629761c9b73cad8ae177b7ad9edcb196


    Advance Stock Kernel with CWM Recovery v03 (FW:17.1.A.2.69}
    MD5HASH: a0d584009b50b19b3b965ccf339f7d86


    Advance Stock Kernel with CWM Recovery v02 (FW:17.1.A.2.55}
    MD5HASH: a0d584009b50b19b3b965ccf339f7d86


    Advance Stock Kernel with CWM Recovery v01 (FW:17.1.A.2.36}
    MD5HASH: 6e0c418d299780bd0ac74e69ff46a199
    ...







    icon8.gif



    enjoy!!!
    37
    Rooting Instructions


    [ proof ]

    BkHkADiCEAAe2xq.jpg:small





    [ 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
    11
    Advanced Stock Kernel v05 released!



    [ changelog ]


    • updated core kernel to 17.1.1.A.0.438 firmware kernel

    • updated ramdisk to 17.1.1.A.0.438 firmware sources


    download links at first post!


    regards,

    DooMLoRD
    11
    Advanced Stock Kernel v07 released!


    now compatible with KitKat 4.4.4 Firmware 23.0.1.A.0.167


    download link in OP!


    regards,

    DooMLoRD