yashsingh1/xdaforums huggingface dataset:
[Xperia Z Android Development] Cookie Ninja:
Read my post a couple of pages back. I got stuck there too. Do a backup of all data /apps and do a system reset /factory reset. You'll be able to root

Dead cookies leave no trails...
[Xperia Z Android Development] chrisftlse:
Thanks :p

Works perfectly now
[Xperia Z Android Development] thepoky:
works in my xperia JB FW 140 regards and thanks bro
[Xperia Z Android Development] jeffleev1:
Help !

Link broken for download this file ?

EasyRootingToolkit_XPERIA-Z_SO-02E_v101-ENGLISH_tkymgr.zip
[Xperia Z Android Development] DooMLoRD:
FYI this rooting procedure works on Xperia Tablet Z!

cheers!

shell@android:/ $ su
su
shell@android:/ # id
id
uid=0(root) gid=0(root) groups=1004(input),1007(log),1009(mount),1011(adb),1015(
sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw
_stats)
shell@android:/ # uname -a
uname -a
Linux localhost 3.4.0-g298631f-02042-gddbbce6 #1 SMP PREEMPT Mon Apr 1 17:52:05
2013 armv7l GNU/Linux
shell@android:/ # getprop ro.build.fingerprint
getprop ro.build.fingerprint
Sony/SGP311_1272-1907/SGP311:4.1.2/10.1.C.0.344/p35_rw:user/release-keys
shell@android:/ #
[Xperia Z Android Development] xxliftsupxx:
http://xdaforums.com/attachment.php?attachmentid=1797479&d=1363027312 ;)
[Xperia Z Android Development] godsavenger:
Hi,

I don't understand why but for me the script don't work :(

see below the result of the script, i'm blocked at the onload.sh

I'll try few time, always the same error

Please help me

thanks in advance

======================================================================

= This script will root your Android phone with adb restore function =

= Script by Bin4ry (thanks to Goroh_kun and tkymgr for the idea) =

= Idea for Tablet S from Fi01_IS01 =

= (20.04.2013) v28 =

======================================================================

Device type:

1) Normal

2) Special (for example: Sony Tablet S, Medion Lifetab)

3) New Xperia Root by Goroh_kun (Xperia Z, Xperia V [JellyBean] ...)

x) Unroot

Make a choice: 3

Please connect Xperia device with enabled USB-Debugging now to your Computer

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

Going to copy over some files ...

71 KB/s (442 bytes in 0.006s)

83 KB/s (170 bytes in 0.002s)

27 KB/s (57 bytes in 0.002s)

Starting restore operation, please look on your device and confirm restore!

after that press anykey here in the console

Now unlock your device and confirm the restore operation.

Appuyez sur une touche pour continuer...

After restore is confirmed please look on your device and choose "Service Tests

-> Display" in Service menu and WAIT THERE!"

Starting: Intent { act=android.intent.action.MAIN cmp=com.sonyericsson.android.s

ervicemenu/.ServiceMainMenu }

/data/local/tmp/onload.sh ...

more precision, i'll try :

with 3 different PC

with the v21 and v28 script version

with specific Z driver

removed virtual device

removed the service that not necessary

reactivated all the application

with another usb cable

I don't have flashtool, PC companion or any application with adb on my PC

always blocked at the same step

need your help....
[Xperia Z Android Development] lancebuks:
root won't work with 10.1.D.0.343 on docomo. !!!BEWARE!!!
[Xperia Z Android Development] FunFunBoy:
Same to me. 10.1.A.1.350
[Xperia Z Android Development] DooMLoRD:
u r using a different script...

please post in that thread
[Xperia Z Android Development] pbelcl:
Also did not work ;-((

here the log of the root Batch:

======================================================================
= This script will root your Android phone with adb restore function =
= Script by Bin4ry (thanks to Goroh_kun and tkymgr for the idea) =
= Idea for Tablet S from Fi01_IS01 =
= (20.04.2013) v28 =
======================================================================

Device type:
1) Normal
2) Special (for example: Sony Tablet S, Medion Lifetab)
3) New Xperia Root by Goroh_kun (Xperia Z, Xperia V [JellyBean] ...)

x) Unroot

Make a choice: 3
Please connect Xperia device with enabled USB-Debugging now to your Computer
Going to copy over some files ...
0 KB/s (442 bytes in 1.000s)
0 KB/s (170 bytes in 1.000s)
3 KB/s (57 bytes in 0.015s)
Starting restore operation, please look on your device and confirm restore!
after that press anykey here in the console
Now unlock your device and confirm the restore operation.
Drücken Sie eine beliebige Taste . . .
After restore is confirmed please look on your device and choose "Service Tests
-> Display" in Service menu and WAIT THERE!"
Starting: Intent { act=android.intent.action.MAIN cmp=com.sonyericsson.android.s
ervicemenu/.ServiceMainMenu }
/data/local/tmp/onload.sh ...
Ok nice ...
1559 KB/s (1096224 bytes in 0.686s)
Stopping RIC
2 KB/s (38 bytes in 0.015s)
83 KB/s (1331 bytes in 0.015s)
0 KB/s (105 bytes in 1.000s)
Pushing su ...
3970 KB/s (380532 bytes in 0.093s)
cannot stat 'stuff/.su': No such file or directory
Running next steps
intall /system/xbin/busybox ...
2141+1 records in
2141+1 records out
1096224 bytes transferred in 0.071 secs (15439774 bytes/sec)
install /system/bin/su ...
743+1 records in
743+1 records out
380532 bytes transferred in 0.028 secs (13590428 bytes/sec)
mkdir failed for /system/bin/.ext, File exists
/data/local/tmp/.su: cannot open for read: No such file or directory
intall /system/etc/install-recovery.sh ...
0+1 records in
0+1 records out
57 bytes transferred in 0.001 secs (57000 bytes/sec)
0+1 records in
0+1 records out
38 bytes transferred in 0.001 secs (38000 bytes/sec)
Installing Superuser apk
3064 KB/s (1468798 bytes in 0.468s)
pkg: /data/local/tmp/Superuser.apk
Failure [INSTALL_FAILED_ALREADY_EXISTS]
Running final step
Cleaning up
rm failed for /data/local/tmp/.su, No such file or directory
Ok rebooting lets hope it worked!
To fix NFC we need to remove a folder, please confirm Superuser Access on Device
now
Rebooting last time now
You can close all open command-prompts now!
After reboot all is done! Have fun!
Bin4ry
Drücken Sie eine beliebige Taste . . .
[Xperia Z Android Development] kingvortex:
Read Doomlord's post above yours. That is bin4ry's script so post in his thread for support. ;)
[Xperia Z Android Development] pbelcl:
Thanks for this hint, sorry for posting in wrong thread ....
[Xperia Z Android Development] godsavenger:
Oups Sorry :(

I'll try many script and i m always blocked at the same step :(

Below the log of your script ;)

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

Easy rooting Toolkit for XPEIRA Z SO-02E (ver 1.0.1)

from [MENTION=2526007]goroh_kun[/MENTION] idea

by HUHKA (@huhka_com)

ENGLISH Translation thanks to tkymgr@XDA

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

[*] To do:

(1) get root access

(2) intall busybox

(3) install su

(4) disable /sbin/ric

[*] Tested version:

üE10.1.D.0.317

üE10.1.D.0.322

[*] To be prepared in advance:

(1) install USB driver in your PC

Accès refusé.

Accès refusé.

(4) connect your phone to PC

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

Appuyez sur une touche pour continuer...

### beginüI ###

waiting for device

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

transfer files to your phone part1

143 KB/s (442 bytes in 0.003s)

83 KB/s (170 bytes in 0.002s)

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

[*] description:

1. press the button to restore the data in your phone operation.

Now unlock your device and confirm the restore operation.

if Restoring data is complete,

Appuyez sur une touche pour continuer...

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

[*] description:

1. Dial *#*#7378423#*#* and select "Service tests" in your phone operation.

2. select "Display" in your phone operation.

* Screen is white until completion of restart

Starting: Intent { act=android.intent.action.MAIN cmp=com.sonyericsson.android.s

ervicemenu/.ServiceMainMenu }

executing /data/local/tmp/onload.sh ...

thanks for your support
[Xperia Z Android Development] DooMLoRD:
Did u open service menu on phone and go to display?
[Xperia Z Android Development] mitsosoft:
Works like a charm (SGP312 / 10.1.C.0.344)! :good:

Thanks m8! :)
[Xperia Z Android Development] eagle1977:
Wisch File?

Thx in advance
[Xperia Z Android Development] MinnesotaVikings1961:
Just to be completly sure, with V21 I can root Xperia Z, without unlocking bootloader and loosing NFC?
[Xperia Z Android Development] DooMLoRD:
if Bin4ry is sure then i am 110% sure :D
[Xperia Z Android Development] robogo1982:
Well, I flashed his file, now my apps don't have root access anymore.

I don't know what went wrong and where.

EDIT: and now I can't re-root using goroh_kun's method anymore.
[Xperia Z Android Development] krabappel2548:
Good job guys, I just released TWRP Touch recovery, so I'll be working on recovery for locked bootloaders from now on :)
[Xperia Z Android Development] SudaDreamS:
Thanks guys

I rooted 1st

then I tried to root again to fix NFC

i got

Starting: Intent { act=android.intent.action.MAIN cmp=com.sonyericsson.android.s

ervicemenu/.ServiceMainMenu }

Åêù¥Æå /data/local/tmp/onload.sh ...

nothing happens after that
[Xperia Z Android Development] DooMLoRD:
easy NFC fix:

http://xdaforums.com/showthread.php?p=39030221#post39030221
[Xperia Z Android Development] SudaDreamS:
DooMLoRD, great thanks

1 more question

if i do repair through the PC Comanion in order to have (unlockable: yes) as I had before rooting, will I loose root then?
[Xperia Z Android Development] DooMLoRD:
Yes
[Xperia Z Android Development] xl VipeR lx:
Any help?

usb debugging is enabled, i dont get any prompt to install drivers when i plug in, and adb devices does not list my device!

so cannot root
[Xperia Z Android Development] brambizimski:
Does this mean i can use clockwork to flash cerberus now? And the black nav/statusbar?
[Xperia Z Android Development] MafiaManV:
Not just yet . We will have to wait for awhile . "krabappel2548" and probably others are working on it :good::good:

Awesome work to all you guys
[Xperia Z Android Development] AMoosa:
I cannot get past the turn on and off stage. The command prompt does not progress. Any tips?

Edit:

I ran the version from here and used option 3 and it worked great! :)

http://xdaforums.com/showthread.php?t=1886460
[Xperia Z Android Development] DakiX:
Many thanks for this great work!!
[Xperia Z Android Development] mercury_beta:
tested on my Xperia V JB 9.1.A.0.490, working great. Internal Storage not wipe. Thank you for hard working
[Xperia Z Android Development] kbadone:
Re: [ROOT] Xperia Z for LOCKED bootloaders! [Exploit by: goroh_kun & huhka_com]

Thanks a lot!

Good to know BE2 still works, what about DRM keys like music info in walkman?
[Xperia Z Android Development] Kallb123:
Followed all steps exactly and everything worked perfectly :)

Windows 8 x64
[Xperia Z Android Development] xl VipeR lx:
You will not lose any DRM Keys or BE2 as the bootloader was not unlocked,

Thanks Binary for your script, worked a treat, so glad to be rooted again!
[Xperia Z Android Development] DennisDD78:
This is really so great to have a root oppotrunity without BL breaking! So happy, really! :D Thank you so much, Developers, you are the GODS! :)
[Xperia Z Android Development] sacredsoul:
No data lost. BE intact. Root gained. Awesome!

I guess I still can't install recovery yet? Without the BL being unlocked?
[Xperia Z Android Development] Pandemic:
Does this work in Xperia P with the new JB update?
[Xperia Z Android Development] kingvortex:
No, as this is the same exploit used in bin4ry's tool and that doesn't work according to a few posters in his thread.
[Xperia Z Android Development] gbil:
This will not work on newer Z ROMs. I assume because it was based on the emergency call service menu bug which has been removed in newer software versions.

Hopefully I'm just wrong and only small modifications will be needed to work again.
[Xperia Z Android Development] mitsosoft:
Same here! It doesn't work with the newer Z SW.
[Xperia Z Android Development] zippy01:
What version?
[Xperia Z Android Development] mitsosoft:
10.1.1.A.1.253
[Xperia Z Android Development] Wahad:
Do you have CWM when root is done or you need to install it separately?
[Xperia Z Android Development] mitsosoft:
You need to install... Something like this will work http://xdaforums.com/showthread.php?t=2187363
[Xperia Z Android Development] civilization:
I did not get restore command on my Sony Z?
[Xperia Z Android Development] rohit25:
Okay just to be sure..... This process would root my phone but my bootloader would remain locked..... It won't unlock like once I register to Sony site and get the unlock code
[Xperia Z Android Development] DooMLoRD:
only roots.. doesn't touch lock/unlock code
[Xperia Z Android Development] rohit25:
Just one last question..... I would be able to install any Rom... Without the need for checking.... Okay this is for locked bootloader.... This is for unlocked one.....

This is just confusing me.... So a lil help is appreciated....

What I mean is would I be able to load cyanogenmod10.1
[Xperia Z Android Development] schaggo:
No, this is root only. Bootloader remains untouched, read the message right above yours for gods sake.

If you want to run anything else than stock Sony or (slightly) modified stock Sony, you need to unlock.
[Xperia Z Android Development] rohit25:
++ THANKS schaggo i get that this is root only..... the reason is that i want to install cyanogen and want a way for me not to goto sony site and get the unlock code.......

my bootloader unlock is allowed it shows YES..... thats what is my main question was.....

please do give a sarcastic answer

.....
[Xperia Z Android Development] schaggo:
If you'd take maybe 10 minutes, maybe less, to quickly flick through the top-topics in the dev section you'd stumble on a thread which would reveal that a) my answer above contains zero percent sarcasm and b) what you ask for is not possible.
[Xperia Z Android Development] godsavenger:
Of course !

I'll try manually and auto, but nothing happen.

I'll try an update with SEUS, and he tell me to upgrade in a new version ? my Z have a 434 version, strange....

Ok I'm going..... after i see that i m always in 434

I'll try one more time the root after the SEUS upgrade and well done !! al is good !!

I don't understand why but my Z is rooted now :)

Thanks for your support
[Xperia Z Android Development] CiscoX:
Hi.

Version 1.02 is released "EasyRootingToolkit_XPEIRAZ_SO-02E_v102.zip" from http://blog.huhka.com/2013/03/root-xperia-z-so-02e-rootingkit.html
[Xperia Z Android Development] FingerMove:
I'm really sorry to ask this, but I just got a Xperia Z and my previous phones were Galaxy or Nexus ones and reading the whole thread didn't help at all since I already rooted successfully. How is it possible to flash the .zip file with a locked bootloader so that I can unlock it?

Do I have to install CWM, TWRP or use the Flashtool for it? I already made a backup of my TA partition, so there won't be any problems I hope.

Sorry again and thanks in advance!

FingerMove
[Xperia Z Android Development] shem2409:
First root the phone. Than install recovery (easiest way is to get the TWRP apk from forum thread). Reboot into recovery and install zip.
[Xperia Z Android Development] FingerMove:
Thanks, worked without problems and the bootloader is unlockable again :)

Now I just have to unlock the bootloader and see how I can install CyanogenMod.
[Xperia Z Android Development] Alcatrazx:
Sir

Could you kindly explain some things to me re this mobile? I have the exact same model on the exact same carrier (sim unlocked) but bootloader locked of course. Do I get a bootloader fully unlocked by using the fix?

I am a bit concerned because I don't want to brick this phone. Also could you tell me if you water tested the phone ? I heard that some do leak water indeed!

Regards

Al
[Xperia Z Android Development] shem2409:
The fix is for people who have unlockable bootloader and whose bootloader status changed to No after going through the rooting procedure (it's a bug). This fix will NOT work for locked bootloaders. I don't think that there is a method to unlock a non unlockable bootloader (such that in service configuration you see "bootloader unlock allowed: NO" ) yet.
[Xperia Z Android Development] Alcatrazx:
So you are telling me that your phone had an unlocked bootloader and is from the same carrier as my phone? So basically it said "Yes" near bootloader unlock allowed? Because it seems like you have managed to put some stock rom on your phone without unlocking the bootloader and also managed to gain root access . Correct me if I am wrong ....
[Xperia Z Android Development] shem2409:
I think that you are confusing me with someone else. My phone was carrier-free so I had "bootloader unlock allowed: Yes" since I bought it.

But yes you don't need to unlock the bootloader to root the phone those are 2 separate things. You need to have an unlocked bootloader to be able to flash custom Kernels and ROMs built on custom kernels (cyanogenmod etc)

You can root, flash recovery and enjoy stock based ROMs
[Xperia Z Android Development] fareeed:
If your bootloader is locked then there's nothing that can be done I'm afraid. Flashing this won't make a difference, sorry
[Xperia Z Android Development] FingerMove:
My bootloader was unlockable from the start and I just unlocked it. The thing that just confuses me at the moment is how to flash custom roms without bricking the Xperia Z. On my older Galaxy Nexus I just needed to have the files on the phone and flash them with TWRP. Everything I read here is fastboot and boot.img. But I'll definitely get CyanogenMod running without bricking, even if it takes years.

Thanks for the flashable .zip earlier, worked really great :)
[Xperia Z Android Development] Alcatrazx:
I am really sorry, you are correct ! I did confuse you with someone else sir

So as of now there is no way 100% to unlock bootloader? Can't this exploit / fix work to unlock the bootloader

Mine is on 3 and has bootloader locked.

So Custom firmware based on stock kernels will work ? and bravia engine will work if I basically debrand the phone (to use official stock rom) ?
[Xperia Z Android Development] shem2409:
BE2 will stay on your phone as long as you don't unlock the bootloader (which in your case is NOT possible at the moment I am afraid :crying:)

At least if you just root the phone without unlocking the bootloader you do not loose the warranty as long as you reverse to stock firmware afterwards (if you had to)

You can root the phone, flash custom recovery and try ROMs based on stock firmware. There is quite a few available for you to try. Here is a couple:

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

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

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

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

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

A few weeks back I have also recorded a video which shows a few things you can try after rooting your phone:

http://youtu.be/2s6O-MetAhM
[Xperia Z Android Development] Alcatrazx:
what is "BE2"? excuse my ignorance :( I'm doomed with locked bootloader no custom firmware ...............:crying::crying::crying:

At least you are saying that

(a) I can still root it like any other phone (aka completely)

(b) I can at least debrand the phone using a stock rom rather than the one full of crapware I got now and CANNOT uninstall

(c) Bravia engine / nfc and the rest will all still work on it ?

Just asking because I want to get it first time right ... I'm coming from an HD2 world ... so I love 100% unlocked phones .... until it decided to die on me (touch screen problem)

One last question which flash tool do I use? I would not like to use CWM ....
[Xperia Z Android Development] shem2409:
A) Yes you can root like I said before rooting and unlocking bootloader are 2 completely different things. Check out my youtube channel for guidance

B) Yes you can flash stock ROM or any stock based ROM (I have listed a few in my previous post)

C) BE2 is Bravia Engine 2

I think you mean recovery :) I prefer TWRP. Once you have rooted your phone get the apk from here and install it on your phone. Then click install recovery and it will be done for you.

http://xdaforums.com/showthread.php?t=2190936
[Xperia Z Android Development] Alcatrazx:
So you are saying that you had an unlockable bootloader and you unlocked it ? It said "no" near your "bootloader unlock allowed" property?

Could you please tell me how you managed? I am really after that ... I am confused now! Some people are saying it cannot be done ... some others (you) are saying that it can be unlocked ?

If so could you kindly share how you managed to do it ?
[Xperia Z Android Development] shem2409:
If your phone reads "Bootloader unlock allowed NO" it means that there is

no way

at the moment that it can be unlocked.

People who root their phones with unlockable bootloaders get a status change to Bootloader unlock allowed NO even though their bootloader is unlockable. This is a bug and there is a fix for that.
[Xperia Z Android Development] Alcatrazx:
I know that you said there is no way but the other guy in previous post said it was ... and it's weird cos I and him have the same carrier ... same phone ... and if I am not mistaken if a phone is on a carrier they have a bootloader that cannot be unlocked so that is odd really. ... now it's either as you said ... that bootloader was unlocked in the firstplaced ... flashed ... then got his locked due to bug and unlocked again through fix ... or he's just kidding ....
[Xperia Z Android Development] shem2409:
I think that you are reffering to Fingermove and he is in fact on Vodafone Germany ....
[Xperia Z Android Development] FingerMove:
I'm unsure whether I managed to unlock it or not. Is there any way to verify that?

The Xperia Z I own has a T-Mobile branding, even though I'm using Vodafone. I followed this Video to unlock the bootloader: http://www.youtube.com/watch?v=Vs2iPY0J4ZA but my Xperia Z doesn't boot into CWM. I also made a mistake when flashing Doomlord Kernel I think: .

The older Kernel "worked" as you can see, but I still have no CWM.

But I can safely say that my Xperia Z was unlockable before I even considered rooting or flashing something.
[Xperia Z Android Development] Alcatrazx:
Hi again sir!

Thanks for your patience... this is what confused me ....

Now ... phones on carriers (as quoted on Sony's official website) have a locked bootloader ..... and this seemed to confirm this but he also stated that the phone has been unlocked even though it was locked from the start ... maybe I took this too literally.....if only fingermove could kindly confirm!
[Xperia Z Android Development] shem2409:
Not all carriers lock bootloaders I come from Poland and one of the biggest carriers here called PLAY does not lock bootloaders. If you buy from Phones 4 You in the UK the bootloader is also unlocked. It does depend on the carrier. I used to live in the UK for 3 years and know for a fact that 3 is really bad when it comes to bloatware and bootloader locking.

I am afraid that you will have to wait for a solution to unlock UNLOCKABLE bootloader my friend (but that could be a while). For now I would suggest that you root your phone and just enjoy the stock based ROMs.
[Xperia Z Android Development] Alcatrazx:
it's a real pity I did not buy the second phone I got (xperia z) from phones 4 u :( I bought my first one from there.... big mistake ....! Anyways those who have factory unlockable bootloader so to speak ...will still have everything (including BE2) working if the flash something like Cyanogen on their phones?

Also could I use doomlord's flash tool to flash stock rom ?
[Xperia Z Android Development] shem2409:
No, as soon as you unlock the bootloader you loose Bravia Engine 2

forever

. There currently isn't a way to bring it back. So if you unlock the bootloader and flash Cyanogenmod you can enjoy all of its features but not BE2 ever again.

Yes you can use flashtool to flash any stock rom that you like