yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 Original Android Development] Anakha56:
After doing a factory reset, I ran the new script and I rebooted the phone with no Superuser icon present. I am busy going through the restore process and I will then try to download superuser from play store and see what happens. I did also get this error in my run of the script, highlighted in bold:

C:\android\sdk\android\platform-tools>runme.bat
# Semi-Automated script written by Sacha.
# With exploit method developed by GranPC.
# I assume you have adb installed, etc etc..
# I also assume you are using a Z2 on .69 firmware
# with contributions from DooMLoRD, norti and RyokoN
Installing exploit app.
3112 KB/s (348942 bytes in 0.109s)
pkg: /data/local/tmp/exploit.apk
Success
Copying small files...
5227 KB/s (1109128 bytes in 0.207s)
828 KB/s (121260 bytes in 0.142s)
1660 KB/s (13672 bytes in 0.008s)
32 KB/s (569 bytes in 0.017s)
1324 KB/s (9496 bytes in 0.007s)
400 KB/s (2050 bytes in 0.004s)
31 KB/s (97 bytes in 0.003s)
1483 KB/s (13672 bytes in 0.008s)
164 KB/s (505 bytes in 0.003s)
78 KB/s (404 bytes in 0.005s)
149 KB/s (764 bytes in 0.004s)
3243 KB/s (83364 bytes in 0.025s)
603 KB/s (3089 bytes in 0.004s)
153 KB/s (629 bytes in 0.004s)
10 KB/s (33 bytes in 0.003s)
4055 KB/s (2326385 bytes in 0.560s)
Copying BIG file... please have patience, this might take a while...
4347 KB/s (63931904 bytes in 14.362s)
Correcting permissions...
Starting Part 1
--- DooMing device: PART 1!
--- Correcting permissions
--- Running services
406 0 asec operation failed (No such file or directory)
200 0 asec operation succeeded
Starting: Intent { act=android.intent.action.MAIN cmp=com.sonyericsson.android.s
ervicemenu/.ServiceMainMenu }
Test VDC #1:
Success
PART 1 complete!
Complete!
----------------[ ATTENTION ]----------------
Please 'crash' the Service Menu app to complete.
For example: Service Info - Configuration.
The screen will probably blink when it has worked.
Press any key to continue . . .
Starting Part 2
--- DooMing device: PART 2!
--- remounting hack
200 0 asec operation succeeded
--- Running services
Starting: Intent { act=android.intent.action.MAIN cmp=com.sonyericsson.android.s
ervicemenu/.ServiceMainMenu }
Warning: Activity not started, its current task has been brought to the front
Test VDC #2:
Success
PART 2 complete!
----------------[ ATTENTION ]----------------
Please 'crash' the Service Menu app to complete.
For example: Service Info - Configuration
The screen will probably blink when it has worked.
Press any key to continue . . .
Pulling TA backup
[b]remote object '/data/local/tmp/TA.img' does not exist[/b]
Removing exploit app
Success
All done!

It would seem I am unable to get a backup of my TA partition. Any ideas?
[Xperia Z2 Original Android Development] DjeMBeY:
Congrats guys!!! Very well done! :)

Any chance to make it work on "old" Z1 (C6903)??? I've tried it, scripts and TA backup worked just fine but no SuperSU, no root... :(
[Xperia Z2 Original Android Development] nosidefcp:
same. tried to root and system folder...

anyone else can test this?
[Xperia Z2 Original Android Development] xsacha:
It will work in v2.

For now, you can use my v10 script which works for getting root on Z2 Tablet. http://xdaforums.com/showthread.php?t=2781109

Same to you. It will work in my v10 script. It should work in this one for v2.
[Xperia Z2 Original Android Development] DooMLoRD:
working on something
[Xperia Z2 Original Android Development] saiarkar:
It is work perfectly on my xperia z2 .69 firmware :) Thanks [MENTION=2784807]DooMLoRD[/MENTION] You are the great for sony !! :) Again Thanks :)
[Xperia Z2 Original Android Development] Spellbound_91:
After root I successfully delete several app's from System/App with Root Explorer!
[Xperia Z2 Original Android Development] DooMLoRD:
thanks for the confirmation!
[Xperia Z2 Original Android Development] Anakha56:
[MENTION=2784807]DooMLoRD[/MENTION] any suggestion for my problem on the previous page? I don't mind unlocking my bootloader on Sony's site but I would love to get a copy of my ta partition.
[Xperia Z2 Original Android Development] DooMLoRD:
you have some remant files on /data

try running this before u run the exploit:

adb shell rm -r /data/local/tmp/*
[Xperia Z2 Original Android Development] RedSkyRoad:
I'm stuck. I cannot find any .65 firmware online for my device.

Customization Version : 1281-8112

Software Version : 1278-4770_17.1.1.A.0.402

Country : South Africa
[Xperia Z2 Original Android Development] nosidefcp:
i flashed rom from scratch aplied the exploit again and will try again also

---------- Post added at 07:54 PM ---------- Previous post was at 07:52 PM ----------

you wont find it might because .65 doesnt exist. ;)

check .69
[Xperia Z2 Original Android Development] Anakha56:
[MENTION=2784807]DooMLoRD[/MENTION] after doing a complete factory reset (erase internal memory as well), I ran that script and it returned:

C:\android\sdk\android\platform-tools>adb shell rm -r /data/local/tmp/*
rm failed for /data/local/tmp/*, No such file or directory

So I ran your script and this was my output:

C:\android\sdk\android\platform-tools>runme.bat
# Semi-Automated script written by Sacha.
# With exploit method developed by GranPC.
# I assume you have adb installed, etc etc..
# I also assume you are using a Z2 on .69 firmware
# with contributions from DooMLoRD, norti and RyokoN
Installing exploit app.
3402 KB/s (348942 bytes in 0.100s)
pkg: /data/local/tmp/exploit.apk
Success
Copying small files...
4564 KB/s (1109128 bytes in 0.237s)
4230 KB/s (121260 bytes in 0.027s)
3350 KB/s (13672 bytes in 0.003s)
185 KB/s (569 bytes in 0.003s)
2228 KB/s (9496 bytes in 0.004s)
1001 KB/s (2050 bytes in 0.001s)
47 KB/s (97 bytes in 0.001s)
943 KB/s (13672 bytes in 0.014s)
164 KB/s (505 bytes in 0.003s)
195 KB/s (404 bytes in 0.002s)
66 KB/s (764 bytes in 0.011s)
4738 KB/s (83364 bytes in 0.017s)
1011 KB/s (3089 bytes in 0.002s)
306 KB/s (629 bytes in 0.002s)
16 KB/s (33 bytes in 0.002s)
4510 KB/s (2326385 bytes in 0.503s)
Copying BIG file... please have patience, this might take a while...
4230 KB/s (63931904 bytes in 14.757s)
Correcting permissions...
Starting Part 1
--- DooMing device: PART 1!
--- Correcting permissions
--- Running services
406 0 asec operation failed (No such file or directory)
200 0 asec operation succeeded
Starting: Intent { act=android.intent.action.MAIN cmp=com.sonyericsson.android.s
ervicemenu/.ServiceMainMenu }
Test VDC #1:
Success
PART 1 complete!
Complete!
----------------[ ATTENTION ]----------------
Please 'crash' the Service Menu app to complete.
For example: Service Info - Configuration.
The screen will probably blink when it has worked.
Press any key to continue . . .
Starting Part 2
--- DooMing device: PART 2!
--- remounting hack
200 0 asec operation succeeded
--- Running services
Starting: Intent { act=android.intent.action.MAIN cmp=com.sonyericsson.android.s
ervicemenu/.ServiceMainMenu }
Warning: Activity not started, its current task has been brought to the front
Test VDC #2:
Success
PART 2 complete!
----------------[ ATTENTION ]----------------
Please 'crash' the Service Menu app to complete.
For example: Service Info - Configuration
The screen will probably blink when it has worked.
Press any key to continue . . .
Pulling TA backup
remote object '/data/local/tmp/TA.img' does not exist
Removing exploit app
Success
All done!

Still no ta.img and no SU is pushed onto the phone. It would seem I have a different model? My model number reads: D6503. Could this be the problem?
[Xperia Z2 Original Android Development] RedSkyRoad:
That's what I meant... Can't find it...
[Xperia Z2 Original Android Development] Anakha56:
I don't think we have .69 for us just yet...
[Xperia Z2 Original Android Development] RedSkyRoad:
vuk. Can't I just flash any .69?
[Xperia Z2 Original Android Development] ravdo:
I've downgraded my phone from .402 to .69 without wiping data. And this rootkit works flawlessly.

I've kept all my data and settings intact and I got SuperSU/Root :D

Thank you, DooMLoRD ^^
[Xperia Z2 Original Android Development] DooMLoRD:
this is where the issue is happeneing:

406 0 asec operation failed (No such file or directory)

i am working on a v02... lets see if that fixes your issues
[Xperia Z2 Original Android Development] PiskopatYazar:
I have never rooted my phone or unlocked my bootloader.

One thing I dont get from the instructions is "make sure u have installed adb drivers for ur device" how do I know if I have this or not?

My build number is 17.1.A.2.55.

Will this void my warranty?
[Xperia Z2 Original Android Development] thebiker:
Could you write the process? I'm on 402 right now..

Thanx!
[Xperia Z2 Original Android Development] Anakha56:
Okay cool. Let me know if you need my help in testing. I will do one more factory reset with wipe and await v2 :).
[Xperia Z2 Original Android Development] nosidefcp:
[MENTION=2784807]DooMLoRD[/MENTION] i also succefully deleted sstem apps and writed to system folder. something was wrong but with a fresh rom flash and explot again solved
[Xperia Z2 Original Android Development] DooMLoRD:
you seem to have run the script too many times...

do this

adb shell
cd /data/local/tmp
rm -rf vlib
rm *
[Xperia Z2 Original Android Development] RedSkyRoad:
Please link the .69 firmware you used...
[Xperia Z2 Original Android Development] Anakha56:
What can I say I am persistent :P.

Running the above commands gets me this:

C:\android\sdk\android\platform-tools>adb shell
shell@D6503:/ $ cd /data/local/tmp
cd /data/local/tmp
shell@D6503:/data/local/tmp $ rm -rf vlib
rm -rf vlib
shell@D6503:/data/local/tmp $ rm *
rm *
rm failed for *, No such file or directory
255|shell@D6503:/data/local/tmp $ rm -rf vlib rm *
rm -rf vlib rm *
shell@D6503:/data/local/tmp $ dir
dir
/system/bin/sh: dir: not found
127|shell@D6503:/data/local/tmp $

Ignore the dir bit. I was curious to see if a dos command would work in adb :p.
[Xperia Z2 Original Android Development] ravdo:
Just flash any .69 ftf (i'm using unbranded TW) with Flashtool (untick DATA).

After it finished, reboot your phone and run the rootkit. Simple as that :)
[Xperia Z2 Original Android Development] ahvipardik:
Install Mobile Companion with Z2 drivers, install android SDK (PC) , download and install flashtool, download. 55/.69 firmware. Shut down the mobile, open flashtool on pc, hold down vol down button while plugging in the USB cable to phone (other end connected to pc) green led should lit and stay lit if so then put phone firmware to flashtool/firmware folder and then klick on flash button, select right firmware and wipe the data you want to delete (or anything at all). Also make sure that USB debugging is turned on in the phone.

Although I'm not completely sure if the green led should stay lit or not, mine flashes green and then flashtool shows that device is connected but in about 2min it disconnects automatically. This could mean that it could happen in the middle of flashing and brick the device.
[Xperia Z2 Original Android Development] Anakha56:
I have not used any .69 firmware. I have downloaded this one: http://xdaforums.com/showthread.php?t=2762853 but I am first curious to see if [MENTION=2784807]DooMLoRD[/MENTION] could get this working on our version of .55.
[Xperia Z2 Original Android Development] idumbakumar:
Hi

I absolutely appreciate the hardwork for obtaining the root.

Here i tried with .402 but i am unable to succeed.it says permission denied for changing permissions.

So anyone succeeded in rooting .402? Or the tool doesn't support?
[Xperia Z2 Original Android Development] :
.402 is patched, you can only root older firmwares. Read the first post entirely.
[Xperia Z2 Original Android Development] :
i told u i already have tested on .55 FW

run the script again after u finish removing the files under /data/local/tmp (and reboot once before u try script)
[Xperia Z2 Original Android Development] :
If I backup my TA and unlock and root the 402 via the usual way, will flashing back the TA backup re-lock the device but still keep root?
[Xperia Z2 Original Android Development] :
My apologies I misunderstood the problem. Sadly I still get the same error after running your commands :(.

*edit*

I reran the remove commands and this is the output now:

C:\android\sdk\android\platform-tools>runme.bat
# Semi-Automated script written by Sacha.
# With exploit method developed by GranPC.
# I assume you have adb installed, etc etc..
# I also assume you are using a Z2 on .69 firmware
# with contributions from DooMLoRD, norti and RyokoN
Installing exploit app.
3573 KB/s (348942 bytes in 0.095s)
pkg: /data/local/tmp/exploit.apk
Success
Copying small files...
5093 KB/s (1109128 bytes in 0.212s)
4360 KB/s (121260 bytes in 0.027s)
696 KB/s (13672 bytes in 0.019s)
277 KB/s (569 bytes in 0.002s)
2318 KB/s (9496 bytes in 0.004s)
1000 KB/s (2050 bytes in 0.002s)
47 KB/s (97 bytes in 0.002s)
3258 KB/s (13672 bytes in 0.004s)
507 KB/s (505 bytes in 0.000s)
197 KB/s (404 bytes in 0.002s)
373 KB/s (764 bytes in 0.001s)
4488 KB/s (83364 bytes in 0.018s)
1506 KB/s (3089 bytes in 0.002s)
307 KB/s (629 bytes in 0.002s)
10 KB/s (33 bytes in 0.003s)
4704 KB/s (2326385 bytes in 0.482s)
Copying BIG file... please have patience, this might take a while...
3970 KB/s (63931904 bytes in 15.724s)
Correcting permissions...
Starting Part 1
--- DooMing device: PART 1!
--- Correcting permissions
--- Running services
200 0 asec operation succeeded
200 0 asec operation succeeded
Starting: Intent { act=android.intent.action.MAIN cmp=com.sonyericsson.android.s
ervicemenu/.ServiceMainMenu }
Test VDC #1:
Success
PART 1 complete!
Complete!
----------------[ ATTENTION ]----------------
Please 'crash' the Service Menu app to complete.
For example: Service Info - Configuration.
The screen will probably blink when it has worked.
Press any key to continue . . .
Starting Part 2
--- DooMing device: PART 2!
--- remounting hack
200 0 asec operation succeeded
--- Running services
Starting: Intent { act=android.intent.action.MAIN cmp=com.sonyericsson.android.s
ervicemenu/.ServiceMainMenu }
Warning: Activity not started, its current task has been brought to the front
Test VDC #2:
Success
PART 2 complete!
----------------[ ATTENTION ]----------------
Please 'crash' the Service Menu app to complete.
For example: Service Info - Configuration
The screen will probably blink when it has worked.
Press any key to continue . . .
Pulling TA backup
remote object '/data/local/tmp/TA.img' does not exist
Removing exploit app
Success
All done!

Still no ta.img and after reboot no supersu either :?.
[Xperia Z2 Original Android Development] :
Yes, it will keep root :).
[Xperia Z2 Original Android Development] :
will be there a easy way to root z2 with .402 update?
[Xperia Z2 Original Android Development] :
no
[Xperia Z2 Original Android Development] :
...and be locked as if it was never unlocked?
[Xperia Z2 Original Android Development] :
yup
[Xperia Z2 Original Android Development] :
Wonderfulllllll!!!!!!!!!! Thank you all for this hard job!!

It's working like a charm!

No I can enjoy 320 DPI !!! I'm so happy ^^
[Xperia Z2 Original Android Development] :
Successfully rooted on 55, can I now ota to 402 and keep root?

Sent from my D6503
[Xperia Z2 Original Android Development] Carphedon:
What is the difference with this or root with unlocked bootloader? Doesn't unlocking bootloader make everything way easier? I don't get why everyone wants root on locked bootloader except for the people that have a unlockable device.

Anyway, thanks for hard work, good to see progress! :D
[Xperia Z2 Original Android Development] kobz1973:
Thank you soooo much for this amazing HACK ... i have been waiting since day1 for this ....

now for a stupid question ....

How do i restore the TA partition??
[Xperia Z2 Original Android Development] Spellbound_91:
what is the meaning of this?Backup TA,unlock BL and use your device :) .One day,if you need warranty just relock your BL and done.It's simple :)

Today I get root acces with this tool,now I can make backup of TA partition and next step for me is to unlock BL,then i'll flash Doomlord kernel and all will be done.

sry for my bad english :p
[Xperia Z2 Original Android Development] nEUTRon666:
I don't get it..always the same questions, over and over ..is it so hard to read at least the first page of the thread ? If you read 3 pages, all questions are answered....
[Xperia Z2 Original Android Development] DooMLoRD:
now you can take TA backup and then go ahead and unlock bootloader!

just check the BackupTA thread by [MENTION=5261329]DevShaft[/MENTION]
[Xperia Z2 Original Android Development] avilve:
do i lose DRM y X-Reality by this way?
[Xperia Z2 Original Android Development] RedSkyRoad:
01] Unlocked bootloader breaks stuff - I want everything to work as it should...

02] I don't want other kernels and ROMs - I just want the stock ROM with root so I can use Xposed, etc...
[Xperia Z2 Original Android Development] DooMLoRD:
Xperia Tablet Z2 support is coming!

just finished testing v02 on Tablet Z2 :)

working flawlessly!

regards,

DooMLoRD
[Xperia Z2 Original Android Development] thebiker:
Thank you!!
[Xperia Z2 Original Android Development] thecrunked:
is there a way to downgrade my wifi z2 tablet from .402 to a version that the exploit works with?
[Xperia Z2 Original Android Development] maxouffr:
Hello !

To update on .402 firmware, can i flash like Z1 and other Xperia 2013 devices ?

I mean, if i install XZDR, and on TWRP, i flash this rom for example. After (always in TWRP, without reboot), i flash SuperSU update Zip and Flashable XZDR. To finish,, with flashtool, i flash .402 FTF without system (i exclude it),

It's works or not ?

PS : Sorry for my very bad english
[Xperia Z2 Original Android Development] jjpro45:
Thank you, thank you, thank you!

Know I'll have my Z2 AND Tablet Z2 rooted with locked bootloader! :)
[Xperia Z2 Original Android Development] RedSkyRoad:
If I have my TA partition backed up, will this enable me to go back to unrooted, locked Sony OTAs via PC Companion or will I be at the mercy of downloading stock ROMs off XDA from here on then?
[Xperia Z2 Original Android Development] SB13X:
Has anyone tried this on: 17.1.1.A.0.402 firmware?? Or have I been a muppet by installing it before checking here?
[Xperia Z2 Original Android Development] daymon:
Root perfect on .55

But I can´t install .402 by OTA. Fail verification after download.
[Xperia Z2 Original Android Development] ahvipardik:
Hi,I´m trying to flash .55 firmware, but I´m not sure if my device is correclty in flash mode. When I connect it to pc, first red led blinks and then a green one, shouldn´t it be a constant green light? In fastboot mode blue led remains lit. I have succrssfully installed fastboot drivers from doomlords packgage and also from flashtool folders. SDK is working as well. In flashmode it says device connected in flash mode, but when i don´t do anything, phone turns on in about 1-2 min. Im afraid that that could happen in the middle of flashing. Should the green light remain on constantly?
[Xperia Z2 Original Android Development] qlulp:
When you do, please provide your ftf (.69) file.. the only one I could find for my SGP511 is .36.. I knew I did the right thing by waiting before unlocking bootloader :). Thanks
[Xperia Z2 Original Android Development] Mrimstad:
seems to be working nicely.

Thank you for all the effort, to all of you!

One question, do i loose root if i now uppdate to 402?
[Xperia Z2 Original Android Development] alinghi100:
Good work Doom! Now I have to wait to see .402 rooted by the exploit. I updated long time ago..

Inviato dal mio D6503 utilizzando Tapatalk
[Xperia Z2 Original Android Development] carluchok:
Great Work! Looking forward to v2 to root my tablet :)

BTW I have a question: If I root my device, I would still be able to grab OTA updates? Or at least I will be able to update to .402 without losing root? Thanks in advance!
[Xperia Z2 Original Android Development] HeartUnderBlade:
[MENTION=2784807]DooMLoRD[/MENTION] Just to clarify, if we already rooted our phones using the old method you posted back then (through fastboot, etc. etc.), then is there a point in using this method at all?
[Xperia Z2 Original Android Development] E!ch0:
Big shouts for the devs, u did an awesome job!

thx for the effort and for not giving up its highly appreciated.

one question tough, my device heats up like a mad on the .55 and .69 firmwares, will u release a version that works on .402 too in the future?
[Xperia Z2 Original Android Development] nEUTRon666:
Great :) Now have a fully rooted .402 Firmware with default kernel and locked bootloader.
[Xperia Z2 Original Android Development] arabman:
Toooooo late. hahaha. Infinite thanks tho, the Z2 devs and community are awesome.
[Xperia Z2 Original Android Development] nosidefcp:
How about cwm? Any news?thanks
[Xperia Z2 Original Android Development] changkho1908:
i just root on 69 fw and then that show "The SU binary need to be updated. Continue?"

what can i have to do now?
[Xperia Z2 Original Android Development] nEUTRon666:
Red alert! I can't remount /system as rw ?! Even any file manager doesn't work...is that because of the default kernel and re-locked bootloader ?

Would it help to unlock bootloader again, push my stuff to /system and re-lock the bootloader ?
[Xperia Z2 Original Android Development] optic-XPERIA:
Hey! Doomlord can you mod this script to work in Z1 compact?
[Xperia Z2 Original Android Development] hush66:
Most likely OTA will not work.
[Xperia Z2 Original Android Development] manu44:
Bro, if you read the OP carefully it is mentioned there that this does not work on .402. You need to downgrade to .69

I dont understand why is it hard for everyone to understand this simple thing.

Before you root your phone just take out 5 minutes to read around 5-6 pages of the post to make sure you have everything you need before you proceed

To reiterate again.

this would not work on .402 version you need to downgrade to .69 for this exploit to work.

---------- Post added at 05:58 AM ---------- Previous post was at 05:57 AM ----------

Restart the phoen and wait for 2-3 minutes and try again. It is confirmed working.

---------- Post added at 06:00 AM ---------- Previous post was at 05:58 AM ----------

This exploit would not work on .402. The DEVS have already tried very hard to get us this and i dont think so they would work on getting .402 to root.

BTw, how hard is it for you to downgrade to .69 and run the exploit?