yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 Original Android Development] jiggyb21:
​

I really don't want to hijack this thread and turn it into something it's not. For now I think it belongs because I'm not 100% sure if it's the kernel or unlocked bootloader slowing my phone down. I flashed the kernel from page 1.... 'Advance Stock Kernel with Recovery v01 (FW:17.1.A.2.36}".

I relocked the bootloader using flashtool. It said it was successful but upon rebooting it soft bricked and the only thing I could do was get into flashmode again. Went back to flashtool and relocked the bootloader again and the phone rebooted no problem, just slowly. Not sure what else to do. Can I reflash the stock kernel?
[Xperia Z2 Original Android Development] theclueless:
if you flashed the kernel from the first post, you will need to flash the stock kernel after relock the bootloader
[Xperia Z2 Original Android Development] xnknown:
cool thanks
[Xperia Z2 Original Android Development] reignzy:
Whats up people.

I will be getting my new Z2 in just over a week so if anyone needs me to help with development PM me :victory:
[Xperia Z2 Original Android Development] lanc3lot:
Hello mate, i meant having a root that will work also with locked bootloader. Is that something likely to happen in the future? So we won't loose DRM Keys, in case of emergency.

I will receive my Z2 on Wednesday, from Amazon.de, and i assume it will have locked bootloader. Root is very nice to have, especially for me, for the Adfree app!
[Xperia Z2 Original Android Development] pvyParts:
KK is pretty secure but wonders never cease to amaze.
[Xperia Z2 Original Android Development] CHUPACAPRA71:
What happens if I unlock and loose the drm keys? What's about the camera quality? I miss root so much. Thx
[Xperia Z2 Original Android Development] FloydQue:
Disadvantages of Unlocking Bootloader

Although I have already unlocked the bootloader of my Z2 and also rooted it, I would like to ask if what disabilities will my phone suffer if the bootloader is unlocked?

Are there specific features that I cannot enjoy or experience if my bootloader is unlocked?

Is there a way to return my phone to Stock Recovery in-case I want it fresh. Although I understand that unlocking bootloader is a point of no return, but is it still possible to unroot my phone and just keep the bootloader unlocked?

Cheers!
[Xperia Z2 Original Android Development] dany20mh:
- Losing functionality on Z2 still unknown, some would say X-Reality engine, some would say camera quality, ....

- You can lock your bootloader again.

- Your phone will not be same as the first one, because you lost your TA partition that holding DRM Keys.

- So back to the last point even if you lock your bootloader again and want to have a repair or something on it, if they check that you don't have that TA partition, you completely out of luck again.
[Xperia Z2 Original Android Development] FloydQue:
So there's no use locking the bootloader again. I'm just wondering why Sony would make unlocking its bootloader official BUT cannot specify certain disabilities if bootloader is unlocked.

And for my last question, is there a way to "unroot" the Z2 like restoring to stock and getting rid of CWM.

Thanks
[Xperia Z2 Original Android Development] dany20mh:
That official is for a developer not for us that want to mess with the phone, so don't expect a phone maker company come and tell you this and that.

If you wait a little and have some patient you will get full functional root soon, because this phone is just started to get on devs hands like DooMLord or other people ( like faux getting it too ).
[Xperia Z2 Original Android Development] FloydQue:
Actually I don't have to wait coz I already Unlocked my bootloader and rooted it already... Hehehe

All I need to verify is if there is really some sort of "not functioning" feature or disability from the phone's functions.

Also if ever in the future will there be a chance to recover those DRM keys or its impossible?

Thanks!
[Xperia Z2 Original Android Development] DooMLoRD:
Once unlocked ? no more DRM keys ...

Dont worry I have been on unlocked Bootloader on all my Xperia phones and honestly there is no functionality that I missed ;)
[Xperia Z2 Original Android Development] FloydQue:
Thanks DooMLoRD! You're the best!
[Xperia Z2 Original Android Development] spuri78:
What about x-reality? Is it broken once you unlock the bootloader?

Thanks
[Xperia Z2 Original Android Development] pvyParts:
I concur with Doom here i have never noticed a feature that i needed after unlocking.

and i have not noticed any drop in photo quality etc once i unlocked my z2
[Xperia Z2 Original Android Development] tpcastelli:
100% Good

Got my unlock code, flashed per Doom, forgot to reboot, re flashed + reboot, flashed SU, installed busybox. Ive been on 11 hrs 44 min w/ 46% remaining. No problems what so ever :D

Thanks Doom (:
[Xperia Z2 Original Android Development] fribriz:
Will restore using adb restore return the phole into original factory state, ie, TA partition, etc?
[Xperia Z2 Original Android Development] pvyParts:
nope. AFAIK adb backup is only system and apps
[Xperia Z2 Original Android Development] Ryanrioz:
Haha... For me

The best among of Sony Phone best ever is use, Z2(D6503) > Z (C6603) > S (ST25I)

and so far quite satisfied the battery life to compared w My note 3 as well :P

Send my Signature Phone to XDA with bad grammar
[Xperia Z2 Original Android Development] 050177e:
hi! is there any way to unlock my bootloader even if the rooting status bootloader unlock allowed says no...? thanks in advance...
[Xperia Z2 Original Android Development] DooMLoRD:
No, in that case bootloader CANNOT be unlocked
[Xperia Z2 Original Android Development] prazvt:
It looks like that might be the case. I don't see a difference in photos when I toggle X-Reality on/off. But I never specifically looked at that features before I unlocked the bootloader. I guess we'd have to go back to stock and relock the bootloader to see..?
[Xperia Z2 Original Android Development] Ryanrioz:
that's weird about on your phone man.. :confused:

n can u refer Aur's rom post??

couse someone replied unlocked BL Should be works well on stock rom nor custom rom...
[Xperia Z2 Original Android Development] prazvt:
I'll take a look at Aur's thread and see what folks are saying. Do you mean that on his rom, X-Reality is working?

EDIT: I flashed back to the stock ROM and x reality is working. Will try and root again tomorrow and retest..
[Xperia Z2 Original Android Development] Lolento:
I could not get Miracast, Screen Mirroring to work after rooting.
[Xperia Z2 Original Android Development] deepflash:
Hi guys,

I have a little problem since I installed the Kernel.

Somehow my mounting point of my external SD card isn't working 100%.

Although I can access it via total commander under /storage/sdcard1, although total commander doesnt show the SD card.on the front page. Before rooting procedure it was shown there. I think some apps can't write to the external card too, like for example Titanium Backup. I can select the folder to set it up as Backup Folder, but TA says it does not have write acess which is stupid since it has root.

Any help?

Sent with Tapatalk through my Sony Z2
[Xperia Z2 Original Android Development] prazvt:
Mine doesn't appear to be working either.
[Xperia Z2 Original Android Development] JMonkeYJ:
Could someone test if the USB over WiFi connectivity still works after rooting? It's the last option in the "Xperia Connectivity" settings. Thanks!
[Xperia Z2 Original Android Development] mcall_r:
My phone says unlock bootloader: no in the settings! :( Is there anything I can do to root?
[Xperia Z2 Original Android Development] [NUT]:
Nope, you will have to wait for locked bootloader root.
[Xperia Z2 Original Android Development] lanc3lot:
Is that something do-able? I haven't in my property any other Sony in the past, is that something that have been achieved in the past, lets say in Z1 or Z?
[Xperia Z2 Original Android Development] Mano1982:
Not working for me..
[Xperia Z2 Original Android Development] JMonkeYJ:
It worked for someone here:

http://xdaforums.com/showthread.php?p=52670111

Maybe something went wrong when you were setting it up?
[Xperia Z2 Original Android Development] Mano1982:
Perhaps.. You have given me a hope :D

I have actually tried 3-4 times, never worked for me.
[Xperia Z2 Original Android Development] lanc3lot:
Its mandatory to use the custom kernel in order to root your phone? It would be nice on the 1st thread, to have all the problems the root can bring. Except the DRM Keys, what other apps doesn't work anymore.

Ty in advance!
[Xperia Z2 Original Android Development] zeguym:
is it possible ? i mean for rooting with locked bootloader
[Xperia Z2 Original Android Development] Faz1980:
Apparently so:

http://www.ibtimes.co.uk/root-xperi...81-kitkat-locked-unlocked-bootloaders-1441461

I'm not sure how long it took though. You could try asking a dev in the Z1 forum but things will probably have changed and given the limited availability of the device a time frame would be impossible to guess. The sooner this phone gets a global release and more dev's get their grubby little mitts on it, the faster things will move.

I'd personally rather wait for a locked solution but I'm getting itchy. :D
[Xperia Z2 Original Android Development] nos1609:
Maybe it's easier trying to find the exploit on z1 and z1 compact, already having official kitkat and widespread through users? Because I'm sure the exloit will be exactly the same as for the z2-series. So far since we aren't able to downgrade to any of pre 4.4 rom cause it doesn't exist probably it might be a faster solution, rather waiting for sony to produce enough phones for everybody. Or maybe I'm wrong?
[Xperia Z2 Original Android Development] lovemyram4x4:
Does this work for anyone?

I'm thinking it might have to do with losing DRM keys. I can't even get my still locked Z2 to work with my miracast single I have for my app radio due to HDCP error.

I'm having a hard time living with out root but I guess I'll hold off on unlocking for now if it won't be possible to use miracast(I don't want have get a MHL adapter and undo a flap everytime I get into the car).

Sent from my D6503 using Xparent Red Tapatalk 2
[Xperia Z2 Original Android Development] Lolento:
I don't think it has to do with the DRM keys because I read on other Xperia forums that relocking the bootloader brings back the ability.

You can research yourself cuz it's late and I don't remember where I found it; I googled "mirroring Xperia HDCP".

Further research show that Galaxy device owners were able to patch a lib file to enable this ability (skip HDCP check) but this means we need Devs to look into it.
[Xperia Z2 Original Android Development] roninr1c:
Hello all, if you have an already unlocked Z2; will i lose my DRM keys or any additional functionality if i tried this root method?

Thanks.
[Xperia Z2 Original Android Development] DooMLoRD:
once u unlock bootloader, DRM keys are lost forever
[Xperia Z2 Original Android Development] roninr1c:
Even if you bought it as an unlocked phone?
[Xperia Z2 Original Android Development] DooMLoRD:
there is no already "UNLOCKED" phone sold...

phones are sold as:

UNLOCKABLE => (can be UNLOCKED)

NOT-UNLOCKABLE => (permanently LOCKED)...
[Xperia Z2 Original Android Development] roninr1c:
Oh. So basically we are all screwed until this DRM thing is figured out? :eek:
[Xperia Z2 Original Android Development] trial_attorney:
Am I right, that if I root my phone now, I will lose DRM keys, and:

1. X-Reality function will be lost forever.

2. Screen mirroring will be lost forever.

3. Anything else?
[Xperia Z2 Original Android Development] DooMLoRD:
this DRM issue has been there for many years now...

there is nothing to be screwed about...

you can hold on to unlocking bootloader and if a root exploit is found u can take TA backup and then unlock bootloader...

actually its nothing more than a tradeoff of functionality & features you are going to get by unlocking bootloader vs not unlocking...

i for one prefer unlocked bootloader always as it allows me to be always rooted and i can install any ROM/kernel i like... and I keep getting leaks so i can always test out what Sony is working on currently :D
[Xperia Z2 Original Android Development] roninr1c:
Excellent! Thank you so much for your help. I love the Z2 but in my opinion, i feel we need the added functionality and customizations from custom kernels/ROMS to get the most out of this phone.
[Xperia Z2 Original Android Development] DooMLoRD:
X-Reality will still work irrespective of DRM keys

Dont have the hardware to test for Screen Mirroring

and thats about it so far...
[Xperia Z2 Original Android Development] trial_attorney:
Thank you, my friend!

If the x-reality function works irrespective of DRM, now I don't have any doubts to get a root.

I don't ever use the screen mirroring, and if no other disadvantages are recognised up to rooting a device, then it is even not worth to doubt.

I like the x-reality effect, so I was bothering If i lose it. but if you say it will work - I'll unlock my bootloader immediately)

Thanks for good news :cowboy:
[Xperia Z2 Original Android Development] Jackos:
I think this might be this same case as with Samsung phones - a lib detects if the phone software has been modified and terminates the Screen Mirroring connection if so.

Easy to fix.
[Xperia Z2 Original Android Development] DooMLoRD:
interesting... so there was a library which we identified (in the Xperia Z) to check unlock status... may be someone can investigate similar file for the Z2?
[Xperia Z2 Original Android Development] Jackos:
In Samsung phones the file was libWFD_ENGINE.so

Ref: http://xdaforums.com/showthread.php?t=2542509

Needs some research using IDA Pro. I could do that, but unfortunately my TV with Screen Mirroring is in another city...
[Xperia Z2 Original Android Development] DooMLoRD:
on the Z this was the file:

/system/lib/lib_get_rooting_status.so

its there on the Z2 also... we need to fix out a way to patch this so that this Screen Mirroring will work..
[Xperia Z2 Original Android Development] Jackos:
This file is also preset on the Z2. This might be indeed a fix.
[Xperia Z2 Original Android Development] Jackos:
I did a quick research and I think this library only affects the Enterprise service. In my opinion the Screen Mirroring driver uses his own methods to check if the device is rooted/unlocked etc.
[Xperia Z2 Original Android Development] DooMLoRD:
Sony does a lot of modular work/coding... so its very much possible that there is some other library/app which is used to check DRM/Bootloader status....
[Xperia Z2 Original Android Development] Jackos:
I noticed that already. Do you got a clue which .so lib is used for the screen mirroring?
[Xperia Z2 Original Android Development] DooMLoRD:
as i said i dont have any hardware to test that so have never used it till date :p
[Xperia Z2 Original Android Development] zic1:
Hi,

please, can you tell what we can expect from phone with BL permanently locked? After few android phones in past I can not "live" with phone with stock ROM only and without root. I think that my provider is offering Z2 with permanently locked BL and in next week or two I must sign new contract but considering this I must gave up from Z2 and choose another phone...

Cheers
[Xperia Z2 Original Android Development] DooMLoRD:
permanently locked phones cant do much...

if you are lucky someone may release a rootkit... after rooting you will be able to install some Stock kernel based custom ROMs... AOSP/CM/Omni ROMs wont be available (basically roms which need flashing custom kernel).... may be someone will work out solution to run these ROMs on stock sony kernel (has happened before) but that again is far-fetched...

BTW DO NOT EXPECT A BOOTLOADER HACK TO UNLOCK YOUR PHONE!
[Xperia Z2 Original Android Development] zic1:
Thanks for info! But this phone with unlockable BL is made by my local provider, right? Not from factory? Let's say if I have somebody in our authorised Sony service here, do they can remove this unlocking posibilty in my phone?
[Xperia Z2 Original Android Development] lovemyram4x4:
I'd send you mine if you lived closer, since it doesn't even work with my bootloader still locked. Shipping would probably cost as much as the unit(cheap non-bit brand miracast dongle) and/or take forever to get.

If you're willing to work on it I'm sure we could order you a miracast dongle from an ebay dealer or store near you to work with.

Sent from my D6503 using Xparent Red Tapatalk 2
[Xperia Z2 Original Android Development] DooMLoRD:
Well I will be getting a Chromecast soon... Dont know if that serves the same purpose
[Xperia Z2 Original Android Development] lovemyram4x4:
Hardware wise it's same/similar but the software side is quite different.

I came across the new Ezcast M2 dongle and looks just like the Chromecast one. I was thinking of picking one up since it's spec to support several different cast formats.

Sent from my D6503 using Xparent Red Tapatalk 2
[Xperia Z2 Original Android Development] 3lastic:
First thanks a lot

I searched thru this thread can't find it.

Using a Nordic Version of Z2 on 17.1.A.2.55

Don't know why they havn't updated it.

What happens if i run this?

Any known issues or is it backward compatible?

Can't find 17.1.A.2.69 for Nordic countries, the other ones comes with chinese letters and popups not so keen on that.
[Xperia Z2 Original Android Development] DooMLoRD:
u can use the kernel posted on any firmware .36/.55/.69 as all those kernels use SAME kernel source...
[Xperia Z2 Original Android Development] dilema:
One question, is screen mirroring that same as throw/allcast?
[Xperia Z2 Original Android Development] lyndonguti:
Doomlord so for now its impossible to root without unlocking ? Or its impossible forever?
[Xperia Z2 Original Android Development] enrique71:
This has been asked and answered several times, right now they only way to root is through a custom kernel which means you absolutely need an UL bootloader.

Who knows if in time another method will be made available, I would think so but we also need to be aware that Google designers closed several exploits in the latest software.
[Xperia Z2 Original Android Development] waynekirby:
No it isn't, I can still throw videos to my Xbox360 w/ unlocked bootloader.
[Xperia Z2 Original Android Development] DooMLoRD:
with the inbuilt "Throw" or some other mirroring software?
[Xperia Z2 Original Android Development] poo-tang:
The inbuilt "Throw" still works fine with unlocked. But Xperia Screen Mirror I am yet to find out.

If he's connecting to X-box it will be DNLA (Media server sort of thing). Xperia Screen Mirror needs a Mirrorcast compatible device.

Edit my colleague is coming over later with a Z2 tablet, apparently it has a built in Mirrorcast receiver so will test and report back.
[Xperia Z2 Original Android Development] savi0023:
X-reality not work even get back to stock rom with full wipe :eek:

Any solution? :confused:
[Xperia Z2 Original Android Development] nobnut:
Relock your bootloader.
[Xperia Z2 Original Android Development] enrique71:
Hi.

17.1.1.A.0.402 is beginning to roll out
[Xperia Z2 Original Android Development] DooMLoRD:
Post kernel.sin :)
[Xperia Z2 Original Android Development] Jackos:
Here ya go mate.

The kernel is different and hotbooting kernels based on .69 won't work.

Edit: File too large for xda-upload.

http://leidel.pl/files/kernelnew.zip
[Xperia Z2 Original Android Development] enrique71:
Thanks, I tried the .69 kernel and I got a bootloop ..
[Xperia Z2 Original Android Development] DooMLoRD:
Thanks! Give me some 30 mins or so... Will upload a blind test release... Can't download the entire firmware right now...
[Xperia Z2 Original Android Development] Shidapu:
Can't wait for the update :)
[Xperia Z2 Original Android Development] Jackos:
Nice! I volunteer for testing :)
[Xperia Z2 Original Android Development] Shidapu:
Same here! :)
[Xperia Z2 Original Android Development] DooMLoRD:
here you go:

http://doomlord.xperia-files.com/private/z2/boot-0.402.img

md5sum: 38028160483a93943d4ee4386422a02c

test kernel with recovery for the newest firwmare .402

i cant test it fully on the .69 firmware...

( damn just over 30 mins :p )
[Xperia Z2 Original Android Development] Jackos:
I tried to hotboot this kernel, but the purple led just shows up and the device doesn't boot at all.
[Xperia Z2 Original Android Development] DooMLoRD:
Z2 cant hotboot

do full flash:

fastboot flash boot boot.img
[Xperia Z2 Original Android Development] Jackos:
Why is that?
[Xperia Z2 Original Android Development] Jackos:
Okey, tested and seems to work fine. Booted into recovery without problems and also the device boots to android flawless.
[Xperia Z2 Original Android Development] DooMLoRD:
some weird issue...
[Xperia Z2 Original Android Development] Shidapu:
Damn you beat me to it. Same here. Also did a SuperSU update. :) Works great. Thanks [MENTION=2784807]DooMLoRD[/MENTION]
[Xperia Z2 Original Android Development] DooMLoRD:
Advanced Stock Kernel v04 released!

[ changelog ]

updated stock kernel to 17.1.1.A.0.402

updated ramdisk to 17.1.1.A.0.402 firmware

download links at first post!

Please do consider donating if you like my work!

regards,

DooMLoRD
[Xperia Z2 Original Android Development] Jackos:
Same kernel as the testing version?
[Xperia Z2 Original Android Development] DennisDD78:
Sorry, guys, can`t get, new kernel is in zip, do i have to unzip boot.img and flash via fastboot to get stock advanced kernel with recovery on new f/w ? There are some files in zip with kernel, what should i do with them ?
[Xperia Z2 Original Android Development] DooMLoRD:
just unzip and use boot.img to flash using fastboot :)
[Xperia Z2 Original Android Development] DennisDD78:
DooMLoRD, done, all fine! Thanx! :)
[Xperia Z2 Original Android Development] reignzy:
I finally got my Z2 today, will take a day or 2 to see what it can do then i will kindly offer mine for helping with devs.
[Xperia Z2 Original Android Development] arjun.arora:
Please solve my problem, I can't update my Z2 to the 17.1.1.A.0.402 version. PC companion and Update service both say modified software can't be updated. Can I relock bootloader, get the update and then unlock the bootloader again.
[Xperia Z2 Original Android Development] enrique71:
yes
[Xperia Z2 Original Android Development] dandv:
Does X-Reality actually work after unlocking?

[MENTION=2784807]DooMLoRD[/MENTION], can you please update your OP to mention whether X-Reality still works with an unlocked bootloader? (Your thread made front page and someone there reports that X-reality won't work without DRM keys.)
[Xperia Z2 Original Android Development] nobnut:
Mine worked just fine on .69 with an unlocked bootloader. It has stopped working however on .402.

I don't like X-reality, but thought I would test. I have seen other posts saying the same, that it was working on .69 and then stopped after the .402 update.
[Xperia Z2 Original Android Development] spuri78:
I unlocked the boot loader on my sony xperia z2, the device booted fine afterwards but then as soon as I flashed the CWM-Based Recovery 6.0.4.7 Touch Recovery and selected reboot and root the sony logo appears but then there is just a black screen, I am on version 17.1.A.2.55. Sorry, I should have read it that the latest kernel update is for .402. Anyway, how can power off the phone to be able to get into fastboot. The phone is booted and when I press the volume up/down button I can hear the sound but obviously, with black screen, I can't power off.
[Xperia Z2 Original Android Development] spuri78:
Ignore, worked it out!!
[Xperia Z2 Original Android Development] Chefproll:
Why don't you tell other readers how you solved the problem? Could be of quite some help for others running into the same or similar problems.
[Xperia Z2 Original Android Development] spuri78:
Well, I thought I worked it out but I'm back to square one and can't seem to install any rom. It's always stuck at the black screen. I guess the thing I worked it out is how to get back into fastboot/recovery. when you open the sim card slow, there's a little red hard reset button.