yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 Original Android Development] PiskopatYazar:
My Wi-fi is not working now :S my 4g is working fine but wifi is not working rebooted 3 times still no luck. [MENTION=2784807]DooMLoRD[/MENTION]
[Xperia Z2 Original Android Development] :
Is anyone here experiencing random reboots? My Z2 seems to randomly reboot at random times when the screen turns off and it only started when I rooted my phone.

Edit: Never mind, I found the culprit. I got the random reboots after I granted lightflow root permissions.
[Xperia Z2 Original Android Development] hush66:
Yes, that's the correct file.
[Xperia Z2 Original Android Development] punkt:
Could this work on z1 too? Would trying do any harm?
[Xperia Z2 Original Android Development] strongylad28:
Loving reading all these but not done it yet haha. For me I'm waiting on Cwm so I don't want to tease myself too much. Amazing work guys. Hugely impressed by you all!
[Xperia Z2 Original Android Development] crazynewfie:
I'm rooted. Thanks for all the hard work guys. Time to get rid of these stock apps!
[Xperia Z2 Original Android Development] erikrh:
Hey, [MENTION=2784807]DooMLoRD[/MENTION] or anyone who can help me out, I got stuck in the process of rooting I really don't know what am I doing wrong, but this is what I did:

- I was on .402 so I downgraded to .69 (wiped everything)

- booted .69 and activated debugging and unknown sources

- executed the runme.bat script and this is what I got

C:\RootKit-v01>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.
5453 KB/s (348942 bytes in 0.062s)
pkg: /data/local/tmp/exploit.apk
Success
Copying small files...
7702 KB/s (1109128 bytes in 0.140s)
7578 KB/s (121260 bytes in 0.015s)
13 KB/s (13672 bytes in 1.000s)
0 KB/s (569 bytes in 1.000s)
9 KB/s (9496 bytes in 1.000s)
2 KB/s (2050 bytes in 1.000s)
0 KB/s (97 bytes in 1.000s)
854 KB/s (13672 bytes in 0.015s)
0 KB/s (505 bytes in 1.000s)
0 KB/s (404 bytes in 1.000s)
0 KB/s (764 bytes in 1.000s)
5208 KB/s (83364 bytes in 0.015s)
3 KB/s (3089 bytes in 1.000s)
0 KB/s (629 bytes in 1.000s)
0 KB/s (33 bytes in 1.000s)
7269 KB/s (2326385 bytes in 0.312s)
Copying BIG file... please have patience, this might take a while...
5539 KB/s (63931904 bytes in 11.270s)
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.
Presione una tecla para continuar . . .
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 }
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.
Presione una tecla para continuar . . .
Pulling TA backup
remote object '/data/local/tmp/TA.img' does not exist
Removing exploit app
Success
All done!

- the first "crash the service menu" goes ok and I get the "SD card safe to remove" on the phone

- but the second "crash" doesn't makes anything

- everything finishes but as it shows it doesn't backups TA.img and I don't get rooted

Any idea of whats wrong? any info is really appreciated, thanks!

EDIT: I was able to get the TA.img backup using the script from xsacha v10. but still can get root nor TA.img using DooMLoRD's
[Xperia Z2 Original Android Development] pacomicro:
this is what I think we should do, correct me if I'm wrong,please:

1º-Root with this Rootkit

2º-Flash XZDualRecovery

3º-Flash this http://http://xdaforums.com/showthread.php?t=2784757

but i have a question:

after making root, how do I restore the backup TA? and when?

thanks and sorry for my bad English
[Xperia Z2 Original Android Development] in_finity:
As this process does not require you to unlock your bootloader, you do not lose your TA (and therefore do not need to restore it). Rooting alone does not touch your TA, ONLY unlocking the BL does.
[Xperia Z2 Original Android Development] pacomicro:
perfectly clear.Thank you :good:
[Xperia Z2 Original Android Development] PiskopatYazar:
[MENTION=4904057][NUT][/MENTION] [MENTION=2784807]DooMLoRD[/MENTION] any idea why my wifi is not working?
[Xperia Z2 Original Android Development] kamalaggi:
Thanks man. I'm now rooted on .402 with locked bootloader :)

Is there anyway to disable the double vibrate on the sony logo when starting up phone.
[Xperia Z2 Original Android Development] SwiftSmoke:
I was just wondering guys if I root and then want to factory reset will this lose root? Do I need to do exploit everytime I factory reset to gain root again?

edit:- Also ive now got root but im trying to setup titanium backup to backup to external sdcard but when trying to set it up, the app is telling me "folder not writable" I thought root sorted this out?
[Xperia Z2 Original Android Development] poo-tang:
Now you rooted this will sort out the External SD R/W issue on 4.4 :)

https://play.google.com/store/apps/details?id=nextapp.sdfix

Ps. You won't lose root if factory reset as it won't wipe Su binarys and apk, these are stored in "system". Factory reset only wipes user "data".
[Xperia Z2 Original Android Development] xsacha:
If you got TA.img using my script, you will also have root. Please check.
[Xperia Z2 Original Android Development] Anakha56:
[MENTION=3384395]erikrh[/MENTION] You have no idea how happy you have just made me :P. I thought I was the only one with the problem. :) BTW what phone do you have the 602 or the 603? I have never upgraded to .402 so I don't think it is that. I think the late phones have a different address for the vulnerability. When I get home tonight I will try to find it...
[Xperia Z2 Original Android Development] erikrh:
Weird, I'm quite sure I didn't get rooted, but after flashing .69 again now I can't even get the backup! it generates the TA.img file under "/data/local/tmp/" but I can't pull the file, now I get the "permission denied" message

LOL! I have a 603 downgraded to .69 and .55 but neither worked, I even executed the scripts manually and got stuck on the writekmem part (unable to open or something like that) so I think you're maybe right :good:
[Xperia Z2 Original Android Development] triggaz:
Microsoft Windows [Version 6.3.9600]

(c) 2013 Microsoft Corporation. Wszelkie prawa zastrzeżone.

E:\>cd root

E:\root>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.

3241 KB/s (348942 bytes in 0.105s)

pkg: /data/local/tmp/exploit.apk

Success

Copying small files...

7144 KB/s (1109128 bytes in 0.151s)

7343 KB/s (121260 bytes in 0.016s)

3336 KB/s (13672 bytes in 0.004s)

523 KB/s (569 bytes in 0.001s)

4629 KB/s (9496 bytes in 0.002s)

331 KB/s (2050 bytes in 0.006s)

31 KB/s (97 bytes in 0.003s)

2645 KB/s (13672 bytes in 0.005s)

245 KB/s (505 bytes in 0.002s)

189 KB/s (404 bytes in 0.002s)

371 KB/s (764 bytes in 0.002s)

6767 KB/s (83364 bytes in 0.012s)

3010 KB/s (3089 bytes in 0.001s)

609 KB/s (629 bytes in 0.001s)

16 KB/s (33 bytes in 0.002s)

6377 KB/s (2326385 bytes in 0.356s)

Copying BIG file... please have patience, this might take a while...

4770 KB/s (63931904 bytes in 13.087s)

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!

E:\root>

Only one crush service menu was possible, after step 1 the script went till the end without root and backup Any ideas?
[Xperia Z2 Original Android Development] erikrh:
Ok so after a factory reset I managed to get the TA.img file again but I can confirm that I didn't get root, what should I try now?:silly:
[Xperia Z2 Original Android Development] mattdufrene:
You should wait for an easier method. Yes it will void your warranty.
[Xperia Z2 Original Android Development] DevShaft:
Copy/paste the full output here, it's hard to help without all the info you can give us.

---------- Post added at 06:04 AM ---------- Previous post was at 06:00 AM ----------

This already is the easier method and this rooting toolkit will NOT let you void the warranty!
[Xperia Z2 Original Android Development] erikrh:
I've already posted the full output a few posts ago, from where can I get v2?
[Xperia Z2 Original Android Development] DevShaft:
I meant the full output of your last try where you did get the TA.img file.

v02 is not released yet, I thought it already did.
[Xperia Z2 Original Android Development] norti:
@DooMLoRD:

I think we should give more user input (pause) and more detailed explanations for the service info crash (which seems to be the hardest to determine or understand for most of the users) to the batch file (unhide some adb commands maybe?), to be able to find and correct (user/input) errors. Or create and pull a log automatically, which would be more detailed on the device side. What do you think about this?

Any D6502 (India, Singapore, Vietnam) users: does the root work on these devices?
[Xperia Z2 Original Android Development] erikrh:
I was able to get the TA.img file with xsacha's script v10, but I can't get rooted but there are no error messages :eek:
[Xperia Z2 Original Android Development] DevShaft:
So you never got TA.img with this community tool v01? Are you sure that you actually crashed it before pressing a key to continue? Your full output looks good except for the fact that you do not have the TA.img file in /data/local/tmp.

What is your output of: adb shell ls -la /system/xbin/
[Xperia Z2 Original Android Development] erikrh:
nope, just with xsacha's script, the first couple of times I tried it the service didn't crashed after Part 2, but after several attempts I was able to crash it in both parts, as I mentioned before I even tried executing the script manually line by line, and I got stuck on the writekmem part :rolleyes:
[Xperia Z2 Original Android Development] NoeVermilion:
ASK

is this work for Sony Xperia Z C6603 with 10.5.A.0.230 firmware?? Thanks Sir
[Xperia Z2 Original Android Development] xsacha:
My script doesn't have writekmem? Writekmem is the method used in this script (community v1) which only works on z2 phone.

If you use my v11 script it should just work for all devices. Tested it a few times on a clean z2 and clean z2 tablet.

Hopefully v2 community version will be the same.

No /system/xbin/su at all? I can't reproduce this :\

Linux or Windows version?
[Xperia Z2 Original Android Development] erikrh:
oh I'm sorry I was referring to the community version on the writekmem thing...

just tried v11 (windows) and yes I get /system/xbin/su but then when trying to update the SU binary through SuperSU I get the "installation failed! reboot and try again" but after rebooting the same happens, installed a couple of apps that use root they ask for root permission and after granted they don't seem to work (unable to write to system folders) :(
[Xperia Z2 Original Android Development] DooMLoRD:
thats the bootloader DEFAULT behaviour...

no idea... this shouldnt touch wifi...

still under construction...

ya we will make it cleaner... busy with urgent office work...
[Xperia Z2 Original Android Development] xsacha:
I get that 'installation failed' as well (v11 mine or v2 community, doesn't matter). Just installing it manually works.

All my root apps seem to work though. If you can't write to system folders, that'd be because it's mounted ro. If you can't remount rw, that would mean ric is enabled. Although seeing as you have su, it should be disabled.

Think about it: the only way you can get /system/xbin/su is if you were able to write to /system ;)
[Xperia Z2 Original Android Development] erikrh:
Oh I see, so, how do I manually update the SU binary?

Is it possible that ric gets somehow re-enabled? :confused:
[Xperia Z2 Original Android Development] packetlos:
I have the same SU is installed but I cannot write anything to /system, the this is on 402 with the stock kernel.
[Xperia Z2 Original Android Development] harrymason37:
Now it's time to share the good news
[Xperia Z2 Original Android Development] xsacha:
Do you have root?

If so, run /system/xbin/busybox sh /system/xbin/rickroll.sh

Then mount should work. It runs this on boot though so I'm not sure what's happening there. Is that with community v1?
[Xperia Z2 Original Android Development] packetlos:
Hey xsacha.

Unfortunately I don't have busybox installed in xbin and I cannot install it because ric is enabled ...
[Xperia Z2 Original Android Development] Adam86:
Is it possible to put my name forward to test the version for the Xperia Tablet Z2, just bought one yesterday :)
[Xperia Z2 Original Android Development] hush66:
For the Xperia Z running KitKat, you can use Towelroot.
[Xperia Z2 Original Android Development] nEUTRon666:
It's what i said some pages earlier. If you run the exploit und update to .402 afterwards, not with NUT's version but using a normal stock ftf, the stuff that disables RIC is gone. Since no one told me what i need to implement manually to get around this, i just installed XZDualRecovery which also re-installed the needed stuff to have ric disabled and so i can mount /system writeable now.
[Xperia Z2 Original Android Development] vdanh:
Hi Doomlord,

First, need to thanks for your contribution to provide the root for our Z2 :laugh:

Second, I got this message when click in Super SU:

"If you have custom recovery like TWRP or CWM, that can be used to ( try to) install the SU binary. This is recommended for HTC device. How would you like to install the SU binary

Which one should I select? Normal or TWRP/CWM.

Please help...
[Xperia Z2 Original Android Development] SE_iCEQB:
I think he's referring to the Dual Recovery vibration that signals the user to make a choice.

[MENTION=819594]kamalaggi[/MENTION]: check out "dualrecovery.sh" at line 101, it says:

# Vibrate to alert user to make a choice
ECHOL "Trigger vibrator"
echo 150 > /sys/class/timed_output/vibrator/enable
usleep 300000
echo 150 > /sys/class/timed_output/vibrator/enable

Setting a "#" before every line comments that function so this part of the script gets ignored during runtime.

Or you can delete this part all together ;)

Regards,

iCEQB
[Xperia Z2 Original Android Development] norti:
Normal. For the TWRP/CWM you will need a working recovery first.
[Xperia Z2 Original Android Development] [NUT]:
But, if you edit the scripts and make a mistake, you are on your own. My support on it will end right there and then.
[Xperia Z2 Original Android Development] SE_iCEQB:
As long as he only touches those 4 lines nothing bad should happen right? :)
[Xperia Z2 Original Android Development] xsacha:
You can use v11 of my script. It does what v2 will do. Tablet Z2 is my primary device so I can confirm it works fine.
[Xperia Z2 Original Android Development] Adam86:
Ok thanks I'll take a look xsacha, havent done a great amount of reading into it yet! which ROM are you using?

Mine is still one out of the box and there is an update to apply.
[Xperia Z2 Original Android Development] alinghi100:
Will there be a method to root .402? However thanks for the great works guys!

Inviato dal mio D6503 utilizzando Tapatalk
[Xperia Z2 Original Android Development] gravtec:
At the moment no way to direct root .402 LB, you need go tru this method first and after done pls go here http://xdaforums.com/showthread.php?t=2784757 for get .402 rooted...
[Xperia Z2 Original Android Development] tq959:
I could not access the

http://cubeundcube.blogspot.jp/2013/07/xperiaperfswevent.html#more

websit.

Could u send the file to me？

My.email is wakin2000@hotmail.com
[Xperia Z2 Original Android Development] hypnostick:
Perfectly working on .55. Got root, recovery and finally RomAur v3.3.

Awesome work dudes. Congrats, ty :good:.
[Xperia Z2 Original Android Development] SANGER_A2:
Don't do this if you're not already a coding & linux guru.

You would change it to look like the code below:-

# Vibrate to alert user to make a choice
# ECHOL "Trigger vibrator"
# echo 150 > /sys/class/timed_output/vibrator/enable
# usleep 300000
# echo 150 > /sys/class/timed_output/vibrator/enable

But if you mess up the permissions it will break.

do cp dualrecovery.sh dualrecovery.old first to make a backup.

Also, do LS -l in the terminal emulator in the folder that the dualrecovery.sh file is stored in before editing it, there should also be a dualrecovery.old file in there now.

BE CAREFUL if doing this in Windows!!! install Notepad++ to do this under windows as Notepad etc can mess up files that Linux/android needs to read. If you make a mistake, just close it without saving and open again, don't try and fix the mistakes.

After edting/saving the file, do ls -l again on the tablet to check it has the same permissions as before (the rw-rrw..). If it doesn't, use chmod to change the permissions.
[Xperia Z2 Original Android Development] alinghi100:
I'm newbie with sony's modding so I think I'll wait for the 402 without downgrade, thanks sir :)

Inviato dal mio D6503 utilizzando Tapatalk
[Xperia Z2 Original Android Development] SE_iCEQB:
It might never happen, so I would recommend to downgrade your device ;)

Be glad that you actually CAN downgrade the device to an exploitable FW w/o doing anything to the bootloader etc ... that's actually a miracle for itself.
[Xperia Z2 Original Android Development] DooMLoRD:
thats a VERY old exploit... already patched in Z2
[Xperia Z2 Original Android Development] SE_iCEQB:
Do you know if towelroot also uses the ASEC vuln ?
[Xperia Z2 Original Android Development] DooMLoRD:
TowelRoot is using Futex vuln
[Xperia Z2 Original Android Development] alinghi100:
Is there a guide or something like that to downgrade before following this exploit? I knew Odin for s3 and S4, it's all new to me with Sony

Inviato dal mio D6503 utilizzando Tapatalk
[Xperia Z2 Original Android Development] hasona:
Wihoo just saw the awesome news! Finally some Root godness even though Sony has made one heck of a job making a Rom extremely good and stable.

So thanks a bunch devs!
[Xperia Z2 Original Android Development] qlulp:
I was in the same boat as you.. been using odin for years and suddenly everything is diffrent with Sony. But trust me, it's not that hard.

Few days ago I was on .402 (with my Z2 tablet) stock unrooted. Little research and it all worked out. All I did is:

1. Make a (.ftf) backup of my stock firmware using pc companion (or you could use sony update service).

2. Downloaded a .69 stock firmware (for your device model)

4. Installed flashtool drivers and put device in flashmode

3. Flash the rom, using flashtool

4. Run xsacha v11 to gain -read/system su and run community rootkit to gain -read-write/system su
[Xperia Z2 Original Android Development] CAL7:
Can you point me to the .69 ftf you used for your SGP511?
[Xperia Z2 Original Android Development] qlulp:
The .69 for the SGP511 was little hard to come by, I just uploaded it to you on google drive. Not sure if I am allowed to share a gdrive link on xda, but I'll send you the link on pm.
[Xperia Z2 Original Android Development] alinghi100:
I know this is multiple answered above but just to make it clear:

Will I loose warranty? If yes, can I revert? This guide will only root my phone and not install a custom recovery right? Thanks man, xda over the top

Inviato dal mio D6503 utilizzando Tapatalk
[Xperia Z2 Original Android Development] qlulp:
Yea exactly! Your warranty will be lost only if you unlock bootloader. And this script will only root and backup TA. You can even unroot easily using supersu and send the device to sony service.

Additionally, the rootkit will not only keep your warranty, but create a backup of your TA partition (which includes you DRM keys). So even if you unlock your bootloader in the future. You can restore it (TA) later and it will relock your bootloader and restores your warranty.
[Xperia Z2 Original Android Development] Benobis:
It works !

Thank you very much !!!
[Xperia Z2 Original Android Development] manu44:
Just to let everyone know.

I rooted my .402 Fw without downgrading anything

Head over to this thread http://xdaforums.com/showthread.php?t=2784900 and follow the instructions you need to make changesto install.bat as mentioned and Voila its rooted.
[Xperia Z2 Original Android Development] vdanh:
Hi,

I checked my Z2 under Service Menu -> Info -> Configuration. The Unlock bootloader allowed: YES. I have a question, if I unlock the bootloader. Will I lost the the warranty? Because this phone is allowed to unlock bootloader?

After rooted my Z2, I found there is a file named TA.img inside the root tool folder. Is this TA backup file? Do I need to perform the manual backup TA from this thread one again? http://xdaforums.com/showthread.php?t=2292598

Thanks all.
[Xperia Z2 Original Android Development] sbr_23:
The ta.img is your ta backup. You don't need to backup again. If you unlock your bootloader you will lose warranty but with the ta backup you can lock your bootloader to get back warranty.
[Xperia Z2 Original Android Development] alinghi100:
Deleted for error

---------- Post added at 08:44 AM ---------- Previous post was at 08:42 AM ----------

No difference with the downgrading method? Can others confirm that it works? And all I Have to do is the backup of the keys after root? If yes, how? Thanks in advantage :)

Inviato dal mio D6503 utilizzando Tapatalk
[Xperia Z2 Original Android Development] adamsmth663:
yep confirmed working on my .402

no need to downgrade
[Xperia Z2 Original Android Development] colacin:
I'm not able to get the service menu to crash... I get this when running the script.

# 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 fir

# with contributions from DooMLoRD, norti and

Installing exploit app.

* daemon not running. starting it now on port

* daemon started successfully *

3640 KB/s (348942 bytes in 0.093s)

pkg: /data/local/tmp/exploit.apk

Failure [INSTALL_FAILED_UID_CHANGED]

Copying small files..

If I try to install the exploit.apk via adb command "adb shell install" I get the same failure error message Failure [INSTALL_FAILED_UID_CHANGED]

EDIT: I'll leave this here in case someone else has the same problem... I was able to root with the Towelroot method.
[Xperia Z2 Original Android Development] evilfox7:
Yep, it is working with z2 D6503