yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 Original Android Development] 3f1f37:
No sir only V04, V05 is for 438 firmware.

Now onto my question...

Last night i panicked to the point of heart palipitations because, i dont know if I am understand this correctly or if I am not doing the process correctly.

I unlocked the bootloader, backed up TA first with TA-BackUp Tool and with Community Root before unlocking the bootloader.

Now coming from HTC, I'm new to how this process works but I eventually got the kernel to flash with Flashtool, unlocked bootloader and flashed a ROM and all is well, but now when I restored the TA the phone just went blank and i had a red flashing LED and the device would power on, this is when my heart started throbbing like a sledge hammer on a construction site.

No matter what i did, it wouldnt come on, so i put it back into fastboot and reflashed the kernel and the device booted again.

Now correct me if i am wrong here, Kernel/Recovery is based on stock .438 firmware which means that if I flash TA on top of this kernel, the device should be relocked.

Now i suspect that I had a soft brick..

I would appreciate if someone could just clarify if I should flash a different stock kernel or if they've flashed their TA back to their device with this kernel/recovery.

Also, If someone can perhaps link me to a thread where I can read up on how these Sony partitions and bootloaders work, I'd really appreciate it.

Been Rooting and flashing and S-Off'ing HTC devices since 2010 so this is a whole new ball game for me

Thanks :fingers-crossed:
[Xperia Z2 Original Android Development] kamalmawa:
Your device won't boot on a custom kernel with locked bootloader. Meaning you must flash stock kernel before restoring TA partition. Otherwise you will run into a soft brick. Just flash kernel only using Flashtool (Untick all in wipe options and tick all except for Kernel in Exclude options)

Read the Backup-TA thread FAQs.
[Xperia Z2 Original Android Development] padraigdoran:
How many pints would we have to buy someone to to change "bootloader unlock allowed" from "No" to "Yes". I'm just after getting my Z2 yesterday from Vodafone Ireland only to find out its bootloader is locked and not allowed to be unlocked. Yes, I could sell it and buy an unlocked one but I'd like to get the bootloader unlocked so I can install Cyanogenmod on this one. It's a lot easier, as you'd imagine.

Cheers.
[Xperia Z2 Original Android Development] guhvanoh:
Nope it's not. It's easier just getting a Z2 that can have its bootloader unlocked than having to mess with that. And considering how easy they are to obtain, I don't think devs will be messing with that.
[Xperia Z2 Original Android Development] padraigdoran:
Ya, I totally get that, it's only the one I got was practically "free" on an upgrade of my contract. I don't want to be paying >400 euro for one to have an unlocked bootloader :(
[Xperia Z2 Original Android Development] BeetoCarvalho:
Thanks

V6 in 17.1.2.A.314 ???
[Xperia Z2 Original Android Development] wickednomad:
D6543 users

I ran into problems with WIFI in my Brazilian 2.55 version (DTV). Wifi MAC address desappeared,couldn't use it anymore. I'm writting just to help anyone whom have ranned into the same issue.

Using flashtool, start process to flash (choose Flashmode option) "D6543_17.1.A.2.55_Generic BR [1281-5466_R5A].ftf",using "flashtool-0.9.16.1-windows" but

untick

the following: WIPE APPSLOG, WIPE CACHE, WIPE DATA. You also need to

tick

Exclude: PARTITION, FOTA, SYSTEM, ELABEL. "No final verifications" and "Reset customizations" must also be

unticked

.

This is my contribution for those who want to keep root, dual recovery mode and no wifi issues in D6543.

Cheers from Brazil.:good:
[Xperia Z2 Original Android Development] eman2001:
Hey Doomlord, thanks for the CWM recoveries, but is there any chance that you could make one for the latest 314 firmware :good:
[Xperia Z2 Original Android Development] vital982:
+1
[Xperia Z2 Original Android Development] nourzoukar:
+1
[Xperia Z2 Original Android Development] jiggyb21:
Where the heck can I find the stock kernel? Thanks for the help. Is yours still slow too. Is yours still slow?
[Xperia Z2 Original Android Development] theclueless:
if you have the ftf, just flash the kernel.sin without wiping anything

the phone itself isn't too slow, but you can tell there is lag, and camera is unbearable...
[Xperia Z2 Original Android Development] jiggyb21:
Thanks again for the help. I flashed the stock kernel and kept the bootloader unlocked thus kept my root. It is much improved. No noticeable lag as far as apps and launcher are concerned. If I hadn't seen how blazing fast the camera opened and functioned yesterday I wouldn't think twice about that either......having said that it is way faster and totally acceptable. You should do it.

And I should add, thank you very much to the OP. It's hard to live without root!
[Xperia Z2 Original Android Development] theclueless:
i just finished downloading the ftf, and flashed the kernel only. all the lags are gone... so if anyone looks for root, flash the adv kernel from post #1, flash the SuperSU package, then flash the stock kernel (!) again.
[Xperia Z2 Original Android Development] jiggyb21:
I can't boot into recovery anymore.

EDIT- Tried updating with Rom Manager and reboot from there.. Must need Demons kernel to run CWM.
[Xperia Z2 Original Android Development] theclueless:
you flashed the stock kernel, that replaced the CWM recovery with the stock one.
[Xperia Z2 Original Android Development] dumbl3:
Hello DooMLoRD,

Will this be working for the z2 tablet as well ?
[Xperia Z2 Original Android Development] DooMLoRD:
No this won't work for tablet... But if you are interested to unlock bootloader of tablet then I can create a recovery kernel for testing...
[Xperia Z2 Original Android Development] jiggyb21:
Yeah of course. I was tired last night, brain not functioning.

Basically the only reason I "need" root is to run the Xposed Module and gravity box. And that's basically the only thing I can't install. I get an error. Might try to reflash Dooms Kernel and install just to see what happens.
[Xperia Z2 Original Android Development] MaluNoPeleke:
That would be great!

You could get beta testers here: http://xdaforums.com/showthread.php?t=2698829
[Xperia Z2 Original Android Development] Siema89:
Wasn't GravityBox incompatible with vendor modified ROMs, like Xperia one?
[Xperia Z2 Original Android Development] DooMLoRD:
Advanced Stock Kernel v02 released!

updated for firmware version 17.1.A.2.55
[Xperia Z2 Original Android Development] theclueless:
Weeeee! thanks! :D
[Xperia Z2 Original Android Development] jiggyb21:
Try it? Lag gone?
[Xperia Z2 Original Android Development] showlyshah:
Cant you people try a qucick fix option

Unlock bootloader- reboot ( it will wipe data)- flash advanced stock kernel v2 by doomlord ( thanks to the great dev)- reboot into recovery- flash latest super user zip( now you are rooted)- reboot phone, and check root.- lock the bootloader ( now you will be softbricked, becoz u are using custom kernel) - now using flashtool, flash the stock kernel ( remb not to wipe anything, also dont flash system and data partitions). Reboot and enjoy a stock rooted firmware. ( possibly u dont have lags now)
[Xperia Z2 Original Android Development] jiggyb21:
I'm not sure the reason for your post. You've outlined the exact steps myself and clueless have already taken with v1 of the kernel. We both are enjoying a rooted Z2 with no lag because we did reflash the stock kernel afterwards. My question to clueless was about v2 and whether it fixed the lag present in v1.
[Xperia Z2 Original Android Development] DooMLoRD:
i think i know the reason for that lag... will test a few things and post another kernel soon...

BTW: the Z2 Tablet users who were willing to test: please check your p.m. you will have test kernel for your tablets :)
[Xperia Z2 Original Android Development] theclueless:
with the v2 kernel, the lag is still present, but not really noticeable, much much faster than v1; however, the device does run warmer and battery drain faster than on stock (3% per hour on stock vs 11% per hour on v2, both time on completely new flashed system including data wipe).
[Xperia Z2 Original Android Development] Zanr Zij:
Works great! A bit laggy when pull notification bar!

Thank you!

Sent from D6503
[Xperia Z2 Original Android Development] jiggyb21:
Thanks DoomLord. I am experiencing ZERO lag so far on v2..(only an hour or two). Will see about the battery tomorrow.
[Xperia Z2 Original Android Development] effective:
+2
[Xperia Z2 Original Android Development] DooMLoRD:
yes updating for the latest 17.1.2.A.0.xxx

regards,

DooMLoRD
[Xperia Z2 Original Android Development] cr0wnest:
I flashed the kernel via fastboot, now I cant boot into android at all. It keeps going into the purple/orange LED light mode where im supposed to keep pressing vol up to go into recovery. Wiping and flashing a custom ROM doesnt help. what do i do? coming from stock 17.1.2.A.0.314
[Xperia Z2 Original Android Development] daymon:
This version isn't for. 314

You need to flash stock rom using flashtools or maybe PC Companion
[Xperia Z2 Original Android Development] cr0wnest:
Alright fixed it, my fault for not checking beforehand. Thanks!
[Xperia Z2 Original Android Development] DooMLoRD:
Advanced Stock Kernel v06 released!

[ changelog ]

updated core kernel to 17.1.2.A.0.314 firmware kernel

updated ramdisk to 17.1.2.A.0.314 firmware sources

download links at first post!

regards,

DooMLoRD
[Xperia Z2 Original Android Development] poo-tang:
Nice work Doom can finally upgrade without to much hassle. Although mite wait for DooMKernal still as lost without Fauxsound and some overclock time to time, been on 402 so long now because of this :(.
[Xperia Z2 Original Android Development] DooMLoRD:
posting update in 5 mins ;)
[Xperia Z2 Original Android Development] warrior75:
Hi,

how can I get Recovery and root with stock 17.1.2.A.0.323 firmware (unlocked BL) ? :D

Thanks!

EDIT:

Solved! :good:

http://xdaforums.com/showthread.php?t=2785598
[Xperia Z2 Original Android Development] xerwudjohn:
give us some proof

can you give me proof if x-reality is still works after loosing DRM keys?
[Xperia Z2 Original Android Development] DooMLoRD:
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
[Xperia Z2 Original Android Development] Envious_Data:
X-Reality Stops Working

Everything Else continues to work aleast from my Xperiance
[Xperia Z2 Original Android Development] Bumblecito:
After Root z2 can i just restore TA Partition to lock again the bootloader without missing root?

EDIT:

Well I tested by myself and I'm able to tell you that you can re-lock your BL without missing root if you restore you TA part and flash only the stock kernel again
[Xperia Z2 Original Android Development] epr:
I rooted my Z2 on 4.4.4 by installing DooMKernel v07 and flashing SuperSU via recovery.

Then I flashed original kernel from ftf and relocked bootloader by restoring TA.

Everything seemed to be OK, but I can't Mount System R/W and because of this I can't install dualrecovery.

Any Ideas what went wrong?
[Xperia Z2 Original Android Development] Bumblecito:
Now that you mention. Neither do i can mount rw system
[Xperia Z2 Original Android Development] silencer51:
I did the same - unlock, flash ASK, flash stock kernel, relock. I also can't mount system as RW. Busybox installation also fails for the same reason.
[Xperia Z2 Original Android Development] Bumblecito:
I think we need a kernel exploit to make it adbd insecure (ro.secure=0) to be able to mount r/w system
[Xperia Z2 Original Android Development] epr:
Finally got it working:

- On rooted .314 backup TA

- update to .167 (PCC)

- unlock bootloader

- flash doomkernel v07

- root by flashing supersu (CWM)

- install busybox from playstore

- flash dualrecovery (CWM)

- flash .167 stock kernel

- copy disableric from dualrecovery (ZIP) to /system/xbin

- set peemissions to 755

- run disableric

- restore TA

- done, /system can be mounted r/w

This way it worked for me...
[Xperia Z2 Original Android Development] arjun.arora:
How to flash dualrecovery (CWM)..
[Xperia Z2 Original Android Development] VitoVava:
- flash dualrecovery (CWM), as stated, you get cwm when you flash doomlord kernel
[Xperia Z2 Original Android Development] arjun.arora:
I did that, now how to run disableric??

I set the permissions to 755
[Xperia Z2 Original Android Development] epr:
Install with CWM when still on DooMKernel.
[Xperia Z2 Original Android Development] arjun.arora:
How to run disableric??

I set the permissions to 755 and copied disableric to /system/xbin.
[Xperia Z2 Original Android Development] Bumblecito:
Tnahks dude ! It's working like a charm !

For whom asking how to run disaberic just select it on root explorer and select "Linux Script Hanlder" then "Execute"
[Xperia Z2 Original Android Development] epr:
Yup, select Linux Script Handler and then execute.
[Xperia Z2 Original Android Development] tazoman:
If I backup my DRM keys on .314 on locked bootloader, update to .167, unlock the boot loader, flash CWM and root with the methods given here and then again restore my DRM keys and relock the bootloader... Will i have a rooted locked bootloader device with X-reality, Track ID, OTA update working with CWM? Is there there anything I m missing on the steps needed? Is it even possible?

Sent from my D6503
[Xperia Z2 Original Android Development] epr:
Yea...everything same as stock unrooted but with root and custom recovery. OTA...don't know we'll see when next update arrives.
[Xperia Z2 Original Android Development] xmontix:
Why overheats after flashing the kernel v07?
[Xperia Z2 Original Android Development] lodger:
I unlocked my bootloader went to fastboot flash but its telling me remote command not allowed, any ideas save me reading the whole thread...

ohhh i am on .167 rooted fully busybox etc..

Edit:....I found my bootloader had not unlocked first time around, Quick fashtool again, and worked great....
[Xperia Z2 Original Android Development] Bazooka Tooth:
I'm trying to flash this via flash tool but it keeps coming up with the error message:

'FAILED <data transfer failure <Unknown error>>

I don't understand I've done this before and it worked fine the 1st time
[Xperia Z2 Original Android Development] Bazooka Tooth:
Never mind, turns out a couple of my usb's were playing up Sorted it now
[Xperia Z2 Original Android Development] MonsterMMORPG:
how do we get these 2 ?

Bootloader unlocked

working fastboot

i am at official 4.4.4
[Xperia Z2 Original Android Development] bluheart:
Google them buddy!
[Xperia Z2 Original Android Development] omg_penguin:
Fastboot is as simple as having the fastboot/adb drivers installed on your computer, and the fastboot files in the same directory as the kernel you're trying to flash.

And as for bootloader unlock, instructions are detailed on the sony developerworld website. :)
[Xperia Z2 Original Android Development] cr0wnest:
Installed the recovery via the fastboot method, then booted into recovery and flashed SuperSu and rebooted to find my phone rooted. Works like a charm, thanks! Finally got back root on 4.4.4 :good:
[Xperia Z2 Original Android Development] Hussainally:
Hey..thanks for this ..is the battery life better after this kernel on.167?
[Xperia Z2 Original Android Development] guhvanoh:
Er, what exactly does recovery have to do with battery life??? Are you sure you're in the right thread?
[Xperia Z2 Original Android Development] nazix:
It is easy to use. Thank you very much.
[Xperia Z2 Original Android Development] Mikey94:
I just read, that there is a Trimm Area, called TA.

Im really sure i made a backup some month ago, before i unlocked my BL. But i got a new PC and i don't think i kept my Backup.

Warranty is not needed, cause i replaced LCD myself, so i have no warranty. Do i need this backup for anything else? I don't need DRM keys for Sony Movies or Music. :D

Edit: Just found a TA-backup-20140915.114303.zip in my e-mail account, i sent to myself. Im not as dumb as i meant before xD (but its only 280 KB, is it corrupted, or are TA backups that small?)
[Xperia Z2 Original Android Development] waynekirby:
[MENTION=2192945]Mikey94[/MENTION] no that's about the right size. :)
[Xperia Z2 Original Android Development] leiros:
How is the battery on v7 compared to stock? Just got the phone and Im pretty satisfied with the stock battery capacity.
[Xperia Z2 Original Android Development] xrenoix:
thank's @doomlord

no change man !!! change log in op !!! juste recovery + root !!!

[ features ]

standard CWM recovery 6.0.4.7!

kernel is insecure (ro.secure=0)

disabled kernel level RIC

adb debugging is enabled by default in OS

TIP: if u are experiencing very slow backup in CWM do this
[Xperia Z2 Original Android Development] DooMLoRD:
updating the recovery kernel now...

regards,

DooMLoRD
[Xperia Z2 Original Android Development] DooMLoRD:
its ready :)
[Xperia Z2 Original Android Development] skittishwind:
+1
[Xperia Z2 Original Android Development] twy_2000:
I am waiting silently
[Xperia Z2 Original Android Development] xrenoix:
great

big thank's [MENTION=2784807]DooMLoRD[/MENTION]
[Xperia Z2 Original Android Development] DooMLoRD:
there are some issues right now related to modem/baseband not working... the tad_static service is crashing... working on fixing this issue..

<3>[ 448.634742] init: cannot execve('/sbin/tad_static'): Permission denied
[Xperia Z2 Original Android Development] xrenoix:
thank's for your good jod
[Xperia Z2 Original Android Development] TheFerhatKing:
[MENTION=2784807]DooMLoRD[/MENTION] we missed you maaan :)
[Xperia Z2 Original Android Development] xrenoix:
+1 :good:
[Xperia Z2 Original Android Development] DooMLoRD:
This seems to be affecting camera too (camera not focusing/not able to take pics)

wont be releasing anything till these things are sorted...
[Xperia Z2 Original Android Development] xrenoix:
[MENTION=5169444]AndroPlus[/MENTION] work with you !!!
[Xperia Z2 Original Android Development] alexdonwarez:
+1
[Xperia Z2 Original Android Development] xrenoix:
news for fix ??? or wait sony sources 23.1.A.0.690 ??? thank's [MENTION=2784807]DooMLoRD[/MENTION]
[Xperia Z2 Original Android Development] Alhaddad:
we don't have to wait for sony's sources just for root, but we do have to wait for DoomLord to do his magic... please wait
[Xperia Z2 Original Android Development] xrenoix:
magic with source code
[Xperia Z2 Original Android Development] Alhaddad:
Yeah that's obvious, but root can be gained without sources, which btw takes a long time to get released, doomlord have been providing root in the past in no time.. Sony has increased the security in LP as [MENTION=410007]Nut[/MENTION] mentioned. Patience my friend if you need recovery, root is fully working now with Nut's method, At least for me.
[Xperia Z2 Original Android Development] xerwudjohn:
working on lollipop?

Hey guys any feedback if this is working on lollipop? if not can you help to give me some link on how to install recovery on lollipop?
[Xperia Z2 Original Android Development] Alhaddad:
No, and no recovery for lollipop as of yet.
[Xperia Z2 Original Android Development] xrenoix:
@DooMLoRD

hello [MENTION=2784807]DooMLoRD[/MENTION] how are you ???? look this bro

http://developer.sonymobile.com/dow...rchives/open-source-archive-for-23-1-a-0-690/

thank's you !!!
[Xperia Z2 Original Android Development] FreezzY1337:
Any way to get the Kernel? The provided link isn't working anymore...
[Xperia Z2 Original Android Development] piterdemon:
Coz it's 3 years old...?! Install TWRP instead

Wysłane z mojego Xperia Z2 przy użyciu Tapatalka
[Xperia Z2 Original Android Development] amnsfax:
download link expired

NEW:

Advance Stock Kernel with CWM Recovery v07 (FW: 23.0.1.A.0.167}

MD5HASH: ade2fd4d1edf9355089170ecfbf72d2d

it seem to me that the download link are expired because when i acced to the download page they told me error page not found or connexion timed out

plz can you renew the link i really need to install cwm you made and im still keeping the old version v6 (sorry for my terrible english)

thanks you so much
[Xperia Z2 Original Android Development] TrollDroid:
Hi, could someone help me to get the file from this thread ?

Z2_DooMLoRD_AdvStkKernel_FW-167-v07.zip

DoomLord's server is off..

Thanks
[Xperia Z2 Original Android Development] Shudder123:
Im not familiar with Sony's rooting routine. What exactly are the TA backup and the DRM Keys?
[Xperia Z2 Original Android Development] MasK:
Please do revert with your experience!

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
[Xperia Z2 Original Android Development] jiggyb21:
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://xdaforums.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.
[Xperia Z2 Original Android Development] kkkok8051:
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.
[Xperia Z2 Original Android Development] DooMLoRD:
You can relock bootloader using Flashtool to get ability to update software using official ways :)
[Xperia Z2 Original Android Development] ogdobber:
[MENTION=2784807]DooMLoRD[/MENTION] 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)
[Xperia Z2 Original Android Development] MasK:
Can I assume that relocking does not guarantee that your device retains the warranty since Sony knows about it?
[Xperia Z2 Original Android Development] Siema89:
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.
[Xperia Z2 Original Android Development] benengyj:
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. :(
[Xperia Z2 Original Android Development] dany20mh:
If anybody already root the phone , can pm me I want to ask a few question.
[Xperia Z2 Original Android Development] yeeson:
Android 4.4 Xperia series from the beginning, which will unlock does not affect any functions, including X-Reality, but only affect the warranty！
[Xperia Z2 Original Android Development] hasenbein1966:
?? Where do you know this from? Source?

And did you unlock? Did your device retain Sony DRM and X-Reality?
[Xperia Z2 Original Android Development] yeeson:
Inside information, and some test！

But only Android 4.4！